api-hal-resources.h 680 B

123456789101112131415161718192021222324252627282930313233
  1. #pragma once
  2. #include "main.h"
  3. #include <furi.h>
  4. /* Input Related Constants */
  5. #define INPUT_DEBOUNCE_TICKS 20
  6. /* Input Keys */
  7. typedef enum {
  8. InputKeyUp,
  9. InputKeyDown,
  10. InputKeyRight,
  11. InputKeyLeft,
  12. InputKeyOk,
  13. InputKeyBack,
  14. } InputKey;
  15. typedef struct {
  16. const GPIO_TypeDef* port;
  17. const uint16_t pin;
  18. const InputKey key;
  19. const bool inverted;
  20. } InputPin;
  21. extern const InputPin input_pins[];
  22. extern const size_t input_pins_count;
  23. extern const GpioPin led_gpio[3];
  24. extern const GpioPin backlight_gpio;
  25. extern const GpioPin sd_cs_gpio;
  26. extern const GpioPin vibro_gpio;
  27. extern const GpioPin ibutton_gpio;
  28. extern const GpioPin cc1101_g0_gpio;