summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZixun LI <[email protected]>2025-12-16 12:29:04 +0100
committerZixun LI <[email protected]>2025-12-16 12:29:04 +0100
commitc130fc07c628a0b2d79f35b743857aa53d79130b (patch)
tree09effb738059b6fad3ee77f8fc17bfc5a1b639c2
parentd768735e0cacbd370bf1b8cc023caaef600b7ddc (diff)
fix pre-commit
Signed-off-by: Zixun LI <[email protected]>
-rw-r--r--hw/bsp/rw61x/boards/frdm_rw612/board.cmake2
-rw-r--r--hw/bsp/rw61x/boards/frdm_rw612/board.h6
-rw-r--r--hw/bsp/rw61x/boards/frdm_rw612/clock_config.c1
-rw-r--r--hw/bsp/rw61x/boards/frdm_rw612/clock_config.h1
-rw-r--r--hw/bsp/rw61x/boards/frdm_rw612/pin_mux.c2
-rw-r--r--hw/bsp/rw61x/boards/frdm_rw612/pin_mux.h2
-rw-r--r--hw/bsp/rw61x/family.c6
-rw-r--r--hw/bsp/rw61x/family.cmake4
-rw-r--r--hw/bsp/rw61x/family.mk4
-rw-r--r--src/tusb_option.h2
10 files changed, 13 insertions, 17 deletions
diff --git a/hw/bsp/rw61x/boards/frdm_rw612/board.cmake b/hw/bsp/rw61x/boards/frdm_rw612/board.cmake
index 09feb0cab..7d77956fa 100644
--- a/hw/bsp/rw61x/boards/frdm_rw612/board.cmake
+++ b/hw/bsp/rw61x/boards/frdm_rw612/board.cmake
@@ -27,4 +27,4 @@ function(update_board BOARD_TARGET)
target_include_directories(${BOARD_TARGET} PUBLIC
${BOARD_DIR}/flash_config
)
-endfunction() \ No newline at end of file
+endfunction()
diff --git a/hw/bsp/rw61x/boards/frdm_rw612/board.h b/hw/bsp/rw61x/boards/frdm_rw612/board.h
index ebb357c29..fd9eec8b6 100644
--- a/hw/bsp/rw61x/boards/frdm_rw612/board.h
+++ b/hw/bsp/rw61x/boards/frdm_rw612/board.h
@@ -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
-
-
diff --git a/hw/bsp/rw61x/boards/frdm_rw612/clock_config.c b/hw/bsp/rw61x/boards/frdm_rw612/clock_config.c
index 513e40f66..9ad78fe43 100644
--- a/hw/bsp/rw61x/boards/frdm_rw612/clock_config.c
+++ b/hw/bsp/rw61x/boards/frdm_rw612/clock_config.c
@@ -167,4 +167,3 @@ void BOARD_BootClockRUN(void)
/*!< Set SystemCoreClock variable. */
SystemCoreClock = BOARD_BOOTCLOCKRUN_HCLK;
}
-
diff --git a/hw/bsp/rw61x/boards/frdm_rw612/clock_config.h b/hw/bsp/rw61x/boards/frdm_rw612/clock_config.h
index 3b467d869..57e3bbb4d 100644
--- a/hw/bsp/rw61x/boards/frdm_rw612/clock_config.h
+++ b/hw/bsp/rw61x/boards/frdm_rw612/clock_config.h
@@ -113,4 +113,3 @@ void BOARD_BootClockRUN(void);
#endif /* _CLOCK_CONFIG_H_ */
-
diff --git a/hw/bsp/rw61x/boards/frdm_rw612/pin_mux.c b/hw/bsp/rw61x/boards/frdm_rw612/pin_mux.c
index 49b74b2bb..eba6b4123 100644
--- a/hw/bsp/rw61x/boards/frdm_rw612/pin_mux.c
+++ b/hw/bsp/rw61x/boards/frdm_rw612/pin_mux.c
@@ -53,7 +53,7 @@ BOARD_InitPins:
/* FUNCTION ************************************************************************************************************
*
* Function Name : BOARD_InitPins
- * Description :
+ * Description :
*
* END ****************************************************************************************************************/
/* Function assigned for the Cortex-M33 */
diff --git a/hw/bsp/rw61x/boards/frdm_rw612/pin_mux.h b/hw/bsp/rw61x/boards/frdm_rw612/pin_mux.h
index f4c9a9127..c43b304d5 100644
--- a/hw/bsp/rw61x/boards/frdm_rw612/pin_mux.h
+++ b/hw/bsp/rw61x/boards/frdm_rw612/pin_mux.h
@@ -54,7 +54,7 @@ void BOARD_InitBootPins(void);
/* @} */
/*!
- * @brief
+ * @brief
*
*/
void BOARD_InitPins(void); /* Function assigned for the Cortex-M33 */
diff --git a/hw/bsp/rw61x/family.c b/hw/bsp/rw61x/family.c
index 226956f15..265d5fcc0 100644
--- a/hw/bsp/rw61x/family.c
+++ b/hw/bsp/rw61x/family.c
@@ -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();
}
diff --git a/hw/bsp/rw61x/family.cmake b/hw/bsp/rw61x/family.cmake
index 5428b7e50..62233a404 100644
--- a/hw/bsp/rw61x/family.cmake
+++ b/hw/bsp/rw61x/family.cmake
@@ -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() \ No newline at end of file
+endfunction()
diff --git a/hw/bsp/rw61x/family.mk b/hw/bsp/rw61x/family.mk
index e715adfa8..08eafddbc 100644
--- a/hw/bsp/rw61x/family.mk
+++ b/hw/bsp/rw61x/family.mk
@@ -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 \
diff --git a/src/tusb_option.h b/src/tusb_option.h
index 413bf2a82..caf8c4156 100644
--- a/src/tusb_option.h
+++ b/src/tusb_option.h
@@ -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