furi-hal-resources.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. #pragma once
  2. #include <stm32wbxx.h>
  3. #include <stm32wbxx_ll_gpio.h>
  4. #include <furi-hal-gpio.h>
  5. #ifdef __cplusplus
  6. extern "C" {
  7. #endif
  8. #define POWER_I2C_SCL_Pin LL_GPIO_PIN_9
  9. #define POWER_I2C_SCL_GPIO_Port GPIOA
  10. #define POWER_I2C_SDA_Pin LL_GPIO_PIN_10
  11. #define POWER_I2C_SDA_GPIO_Port GPIOA
  12. #define POWER_I2C I2C1
  13. /* Timing register value is computed with the STM32CubeMX Tool,
  14. * Fast Mode @100kHz with I2CCLK = 64 MHz,
  15. * rise time = 0ns, fall time = 0ns
  16. */
  17. #define POWER_I2C_TIMINGS 0x10707DBC
  18. /* Input Keys */
  19. typedef enum {
  20. InputKeyUp,
  21. InputKeyDown,
  22. InputKeyRight,
  23. InputKeyLeft,
  24. InputKeyOk,
  25. InputKeyBack,
  26. } InputKey;
  27. /* Light */
  28. typedef enum {
  29. LightRed,
  30. LightGreen,
  31. LightBlue,
  32. LightBacklight,
  33. } Light;
  34. extern const GpioPin vibro_gpio;
  35. extern const GpioPin ibutton_gpio;
  36. extern const GpioPin gpio_cc1101_g0;
  37. extern const GpioPin gpio_rf_sw_0;
  38. extern const GpioPin gpio_subghz_cs;
  39. extern const GpioPin gpio_display_cs;
  40. extern const GpioPin gpio_display_rst;
  41. extern const GpioPin gpio_display_di;
  42. extern const GpioPin gpio_sdcard_cs;
  43. extern const GpioPin gpio_nfc_cs;
  44. extern const GpioPin gpio_spi_d_miso;
  45. extern const GpioPin gpio_spi_d_mosi;
  46. extern const GpioPin gpio_spi_d_sck;
  47. extern const GpioPin gpio_spi_r_miso;
  48. extern const GpioPin gpio_spi_r_mosi;
  49. extern const GpioPin gpio_spi_r_sck;
  50. extern const GpioPin gpio_ext_pc0;
  51. extern const GpioPin gpio_ext_pc1;
  52. extern const GpioPin gpio_ext_pc3;
  53. extern const GpioPin gpio_ext_pb2;
  54. extern const GpioPin gpio_ext_pb3;
  55. extern const GpioPin gpio_ext_pa4;
  56. extern const GpioPin gpio_ext_pa6;
  57. extern const GpioPin gpio_ext_pa7;
  58. extern const GpioPin gpio_rfid_pull;
  59. extern const GpioPin gpio_rfid_carrier_out;
  60. extern const GpioPin gpio_rfid_data_in;
  61. extern const GpioPin gpio_irda_rx;
  62. extern const GpioPin gpio_irda_tx;
  63. extern const GpioPin gpio_usart_tx;
  64. extern const GpioPin gpio_usart_rx;
  65. #ifdef __cplusplus
  66. }
  67. #endif