|
35 | 35 | #ifndef BOOTLOADER_INC_BOARDS_CONFIG_H_ |
36 | 36 | #define BOOTLOADER_INC_BOARDS_CONFIG_H_ |
37 | 37 |
|
38 | | -/* LED configuration for board available on the market */ |
39 | | - |
40 | | -#ifdef MATEK_H743_SLIM |
| 38 | +#ifdef NUCLEO_H755ZI |
| 39 | +#define LED1_Pin GPIO_PIN_0 |
| 40 | +#define LED1_Port GPIOB |
| 41 | +#define LED2_Pin GPIO_PIN_1 |
| 42 | +#define LED2_Port GPIOE |
| 43 | +#define LED_ON GPIO_PIN_SET |
| 44 | +#define LED_OFF GPIO_PIN_RESET |
| 45 | +#define BL_BUTTON_Pin GPIO_PIN_13 //!< Button for entering in BL if pressed at boot time |
| 46 | +#define BL_BUTTON_Port GPIOC |
| 47 | +#define BL_BUTTON_ON GPIO_PIN_SET |
| 48 | +#define BL_BUTTON_OFF GPIO_PIN_RESET |
| 49 | +#define BL_BUTTON_PRESS_TIME 500u //!< Time in [ms] needed for button to be pressed to enter in BL |
| 50 | +#define PWR_SUPPLY PWR_DIRECT_SMPS_SUPPLY |
| 51 | +#elif MATEK_H743_SLIM |
41 | 52 | #define LED1_Pin GPIO_PIN_4 //!< Pin defined for green LED |
42 | 53 | #define LED1_Port GPIOE |
43 | 54 | #define LED2_Pin GPIO_PIN_3 //!< Pin defined for blue LED |
44 | 55 | #define LED2_Port GPIOE |
45 | 56 | #define LED_ON GPIO_PIN_RESET |
46 | 57 | #define LED_OFF GPIO_PIN_SET |
| 58 | +#define PWR_SUPPLY PWR_LDO_SUPPLY |
47 | 59 | #elif defined(PIXHAWK4) |
48 | 60 | #define LED1_Pin GPIO_PIN_6 //!< Pin defined for green LED |
49 | 61 | #define LED1_Port GPIOC |
50 | 62 | #define LED2_Pin GPIO_PIN_7 //!< Pin defined for blue LED |
51 | 63 | #define LED2_Port GPIOC |
52 | 64 | #define LED_ON GPIO_PIN_RESET |
53 | 65 | #define LED_OFF GPIO_PIN_SET |
| 66 | +#define PWR_SUPPLY PWR_LDO_SUPPLY |
54 | 67 | #else |
55 | 68 | #define LED1_Pin GPIO_PIN_13 |
56 | 69 | #define LED1_Port GPIOC |
|
63 | 76 | #define BL_BUTTON_ON GPIO_PIN_SET |
64 | 77 | #define BL_BUTTON_OFF GPIO_PIN_RESET |
65 | 78 | #define BL_BUTTON_PRESS_TIME 500u //!< Time in [ms] needed for button to be pressed to enter in BL |
| 79 | +#define PWR_SUPPLY PWR_LDO_SUPPLY |
66 | 80 | #endif |
67 | 81 |
|
68 | 82 |
|
69 | 83 | #endif /* BOOTLOADER_INC_BOARDS_CONFIG_H_ */ |
| 84 | + |
0 commit comments