Skip to content

Commit db6b5d4

Browse files
committed
Add support for NUCLEO-N657X0-Q board
1 parent 99c904b commit db6b5d4

20 files changed

+3069
-19
lines changed

LedBlink/Inc/boards_config.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,14 @@
6767
#define LED_ON GPIO_PIN_RESET
6868
#define LED_OFF GPIO_PIN_SET
6969
#define PWR_SUPPLY PWR_DIRECT_SMPS_SUPPLY
70+
#elif defined(NUCLEO_N657X0_Q)
71+
#define LED1_Pin GPIO_PIN_8 //!< Pin defined for blue LED
72+
#define LED1_GPIO_Port GPIOG
73+
#define LED2_Pin GPIO_PIN_10 //!< Pin defined for red LED
74+
#define LED2_GPIO_Port GPIOG
75+
#define LED_ON GPIO_PIN_RESET
76+
#define LED_OFF GPIO_PIN_SET
77+
#define PWR_SUPPLY PWR_DIRECT_SMPS_SUPPLY
7078
#else
7179
#define LED1_Pin GPIO_PIN_13
7280
#define LED1_GPIO_Port GPIOC

LedBlink/Inc/main.h

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,18 @@ extern "C" {
4444
#include "system_clock.h"
4545
#include "boards_config.h"
4646

47-
#ifdef STM32L4xx
48-
#include "stm32l4xx.h"
49-
#include "stm32l4xx_hal.h"
50-
#elif STM32H7xx
51-
#include "stm32h7xx.h"
52-
#include "stm32h7xx_hal.h"
53-
#elif STM32F7xx
47+
#if defined(STM32F7xx)
5448
#include "stm32f7xx.h"
5549
#include "stm32f7xx_hal.h"
50+
#elif defined(STM32H7xx)
51+
#include "stm32h7xx.h"
52+
#include "stm32h7xx_hal.h"
53+
#elif defined(STM32L4xx)
54+
#include "stm32l4xx.h"
55+
#include "stm32l4xx_hal.h"
56+
#elif defined(STM32N657xx)
57+
#include "stm32n6xx.h"
58+
#include "stm32n6xx_hal.h"
5659
#endif
5760

5861

0 commit comments

Comments
 (0)