fix pre-commit

Signed-off-by: Zixun LI <admin@hifiphile.com>
This commit is contained in:
Zixun LI
2025-12-16 12:29:04 +01:00
parent d768735e0c
commit c130fc07c6
10 changed files with 13 additions and 17 deletions

View File

@ -27,4 +27,4 @@ function(update_board BOARD_TARGET)
target_include_directories(${BOARD_TARGET} PUBLIC
${BOARD_DIR}/flash_config
)
endfunction()
endfunction()

View File

@ -41,8 +41,8 @@
// LED - Green channel of RGB LED
#define LED_GPIO BOARD_INITLEDPINS_LED_GREEN_PERIPHERAL
#define LED_CLK kCLOCK_HsGpio0
#define LED_PIN BOARD_INITLEDPINS_LED_GREEN_PIN
#define LED_PORT BOARD_INITLEDPINS_LED_GREEN_PORT
#define LED_PIN BOARD_INITLEDPINS_LED_GREEN_PIN
#define LED_PORT BOARD_INITLEDPINS_LED_GREEN_PORT
#define LED_STATE_ON 0
// WAKE button (Dummy, use unused pin
@ -72,5 +72,3 @@ static inline void board_uart_init_clock(void) {
#endif
#endif

View File

@ -167,4 +167,3 @@ void BOARD_BootClockRUN(void)
/*!< Set SystemCoreClock variable. */
SystemCoreClock = BOARD_BOOTCLOCKRUN_HCLK;
}

View File

@ -113,4 +113,3 @@ void BOARD_BootClockRUN(void);
#endif /* _CLOCK_CONFIG_H_ */

View File

@ -53,7 +53,7 @@ BOARD_InitPins:
/* FUNCTION ************************************************************************************************************
*
* Function Name : BOARD_InitPins
* Description :
* Description :
*
* END ****************************************************************************************************************/
/* Function assigned for the Cortex-M33 */

View File

@ -54,7 +54,7 @@ void BOARD_InitBootPins(void);
/* @} */
/*!
* @brief
* @brief
*
*/
void BOARD_InitPins(void); /* Function assigned for the Cortex-M33 */

View File

@ -51,7 +51,7 @@ void board_init(void) {
// Init button pin, LED pins, SWD pins & UART pins
BOARD_InitBootPins();
// Init Clocks
BOARD_InitBootClocks();
@ -86,8 +86,8 @@ void board_init(void) {
// Enable USB Clock
CLOCK_EnableClock(kCLOCK_Usb);
// Enable USB PHY
// Enable USB PHY
CLOCK_EnableUsbhsPhyClock();
}

View File

@ -81,7 +81,7 @@ function(family_configure_example TARGET RTOS)
if (CMAKE_C_COMPILER_ID STREQUAL "GNU")
target_link_options(${TARGET} PUBLIC
"LINKER:--script=${LD_FILE_GNU}"
--specs=nosys.specs
--specs=nosys.specs
--specs=nano.specs
)
endif()
@ -99,4 +99,4 @@ function(family_configure_example TARGET RTOS)
# Flashing & Binary Generation
family_add_bin_hex(${TARGET})
family_flash_jlink(${TARGET})
endfunction()
endfunction()

View File

@ -13,7 +13,7 @@ CFLAGS += \
-DSERIAL_PORT_TYPE_UART=1 \
-DBOARD_TUD_MAX_SPEED=OPT_MODE_HIGH_SPEED \
-DBOARD_TUH_MAX_SPEED=OPT_MODE_HIGH_SPEED \
# mcu driver cause following warnings
CFLAGS += -Wno-error=unused-parameter -Wno-error=old-style-declaration -Wno-error=redundant-decls
@ -35,7 +35,7 @@ SRC_C += \
$(SDK_DIR)/drivers/flexcomm/fsl_flexcomm.c \
$(SDK_DIR)/drivers/flexcomm/usart/fsl_usart.c \
$(SDK_DIR)/drivers/flexspi/fsl_flexspi.c \
INC += \
$(TOP)/$(BOARD_PATH) \
$(TOP)/lib/CMSIS_5/CMSIS/Core/Include \

View File

@ -199,7 +199,7 @@
// NXP LPC MCX
#define OPT_MCU_MCXN9 2300 ///< NXP MCX N9 Series
#define OPT_MCU_MCXA15 2301 ///< NXP MCX A15 Series
#define OPT_MCU_RW61X 2302 ///< NXP RW61x Series
#define OPT_MCU_RW61X 2302 ///< NXP RW61x Series
// Analog Devices
#define OPT_MCU_MAX32690 2400 ///< ADI MAX32690