mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-10 15:04:19 +00:00
add forgotten header
This commit is contained in:
parent
364a8e6f6c
commit
aa3ac5b242
1 changed files with 29 additions and 0 deletions
29
firmware/targets/local/Inc/input_priv.h
Normal file
29
firmware/targets/local/Inc/input_priv.h
Normal file
|
@ -0,0 +1,29 @@
|
|||
#ifndef __INPUT_PRIV_H
|
||||
#define __INPUT_PRIV_H
|
||||
|
||||
#include "main.h"
|
||||
#include "flipper_hal.h"
|
||||
|
||||
#define DEBOUNCE_TICKS 10
|
||||
|
||||
const GpioPin input_gpio[] = {
|
||||
{"Up", 0},
|
||||
{"Down", 0},
|
||||
{"Right", 0},
|
||||
{"Left", 0},
|
||||
{"Ok", 0},
|
||||
{"Back", 0},
|
||||
{"Charg", 0}
|
||||
};
|
||||
|
||||
const bool input_invert[] = {
|
||||
false, // {BUTTON_UP_GPIO_Port, BUTTON_UP_Pin},
|
||||
false, // {BUTTON_DOWN_GPIO_Port, BUTTON_DOWN_Pin},
|
||||
false, // {BUTTON_RIGHT_GPIO_Port, BUTTON_RIGHT_Pin},
|
||||
false, // {BUTTON_LEFT_GPIO_Port, BUTTON_LEFT_Pin},
|
||||
false, // {BUTTON_OK_GPIO_Port, BUTTON_OK_Pin},
|
||||
false, // {BUTTON_BACK_GPIO_Port, BUTTON_BACK_Pin},
|
||||
true, // {CHRG_GPIO_Port, CHRG_Pin}
|
||||
};
|
||||
|
||||
#endif /* __INPUT_PRIV_H */
|
Loading…
Reference in a new issue