mirror of
https://github.com/hathach/tinyusb.git
synced 2026-03-08 00:24:50 +00:00
@ -27,4 +27,4 @@ function(update_board BOARD_TARGET)
|
||||
target_include_directories(${BOARD_TARGET} PUBLIC
|
||||
${BOARD_DIR}/flash_config
|
||||
)
|
||||
endfunction()
|
||||
endfunction()
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
|
||||
@ -167,4 +167,3 @@ void BOARD_BootClockRUN(void)
|
||||
/*!< Set SystemCoreClock variable. */
|
||||
SystemCoreClock = BOARD_BOOTCLOCKRUN_HCLK;
|
||||
}
|
||||
|
||||
|
||||
@ -113,4 +113,3 @@ void BOARD_BootClockRUN(void);
|
||||
|
||||
|
||||
#endif /* _CLOCK_CONFIG_H_ */
|
||||
|
||||
|
||||
@ -53,7 +53,7 @@ BOARD_InitPins:
|
||||
/* FUNCTION ************************************************************************************************************
|
||||
*
|
||||
* Function Name : BOARD_InitPins
|
||||
* Description :
|
||||
* Description :
|
||||
*
|
||||
* END ****************************************************************************************************************/
|
||||
/* Function assigned for the Cortex-M33 */
|
||||
|
||||
@ -54,7 +54,7 @@ void BOARD_InitBootPins(void);
|
||||
/* @} */
|
||||
|
||||
/*!
|
||||
* @brief
|
||||
* @brief
|
||||
*
|
||||
*/
|
||||
void BOARD_InitPins(void); /* Function assigned for the Cortex-M33 */
|
||||
|
||||
@ -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();
|
||||
}
|
||||
|
||||
|
||||
@ -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()
|
||||
|
||||
@ -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 \
|
||||
|
||||
@ -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
|
||||
|
||||
Reference in New Issue
Block a user