api-hal-resources.h 547 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #pragma once
  2. #include <stm32wbxx.h>
  3. #include <stm32wbxx_ll_gpio.h>
  4. #ifdef __cplusplus
  5. extern "C" {
  6. #endif
  7. #define I2C_SCL_Pin LL_GPIO_PIN_9
  8. #define I2C_SCL_GPIO_Port GPIOA
  9. #define I2C_SDA_Pin LL_GPIO_PIN_10
  10. #define I2C_SDA_GPIO_Port GPIOA
  11. #define POWER_I2C I2C1
  12. /* Input Keys */
  13. typedef enum {
  14. InputKeyUp,
  15. InputKeyDown,
  16. InputKeyRight,
  17. InputKeyLeft,
  18. InputKeyOk,
  19. InputKeyBack,
  20. } InputKey;
  21. /* Light */
  22. typedef enum {
  23. LightRed,
  24. LightGreen,
  25. LightBlue,
  26. LightBacklight,
  27. } Light;
  28. #ifdef __cplusplus
  29. }
  30. #endif