mirror of
https://github.com/hathach/tinyusb.git
synced 2026-02-09 19:35:50 +00:00
fix missing prototypes
This commit is contained in:
@ -48,6 +48,12 @@ void DebugMon_Handler(void);
|
||||
void PendSV_Handler(void);
|
||||
void SysTick_Handler(void);
|
||||
|
||||
void OTGFS1_IRQHandler(void);
|
||||
void OTGHS_IRQHandler(void);
|
||||
void OTGFS1_WKUP_IRQHandler(void);
|
||||
void OTGHS_WKUP_IRQHandler(void);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
@ -29,6 +29,8 @@
|
||||
*/
|
||||
|
||||
#include "at32f402_405_clock.h"
|
||||
#include "at32f402_405_int.h"
|
||||
#include "at32f403a_407_usb.h"
|
||||
#include "bsp/board_api.h"
|
||||
#include "board.h"
|
||||
|
||||
@ -40,20 +42,16 @@ void usb_gpio_config(void);
|
||||
//--------------------------------------------------------------------+
|
||||
// Forward USB interrupt events to TinyUSB IRQ Handler
|
||||
//--------------------------------------------------------------------+
|
||||
void OTGFS1_IRQHandler(void)
|
||||
{
|
||||
void OTGFS1_IRQHandler(void) {
|
||||
tusb_int_handler(0, true);
|
||||
}
|
||||
void OTGHS_IRQHandler(void)
|
||||
{
|
||||
void OTGHS_IRQHandler(void) {
|
||||
tusb_int_handler(1, true);
|
||||
}
|
||||
void OTGFS1_WKUP_IRQHandler(void)
|
||||
{
|
||||
void OTGFS1_WKUP_IRQHandler(void) {
|
||||
tusb_int_handler(0, true);
|
||||
}
|
||||
void OTGHS_WKUP_IRQHandler(void)
|
||||
{
|
||||
void OTGHS_WKUP_IRQHandler(void) {
|
||||
tusb_int_handler(1, true);
|
||||
}
|
||||
|
||||
@ -278,6 +276,7 @@ void HardFault_Handler(void) {
|
||||
|
||||
// Required by __libc_init_array in startup code if we are compiling using
|
||||
// -nostdlib/-nostartfiles.
|
||||
void _init(void);
|
||||
void _init(void) {
|
||||
}
|
||||
|
||||
|
||||
@ -48,6 +48,12 @@ void DebugMon_Handler(void);
|
||||
void PendSV_Handler(void);
|
||||
void SysTick_Handler(void);
|
||||
|
||||
void USBFS_H_CAN1_TX_IRQHandler(void);
|
||||
void USBFS_L_CAN1_RX0_IRQHandler(void);
|
||||
void USBFS_MAPH_IRQHandler(void);
|
||||
void USBFS_MAPL_IRQHandler(void);
|
||||
void USBFSWakeUp_IRQHandler(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
@ -29,6 +29,7 @@
|
||||
*/
|
||||
|
||||
#include "at32f403a_407_clock.h"
|
||||
#include "at32f403a_407_int.h"
|
||||
#include "bsp/board_api.h"
|
||||
#include "board.h"
|
||||
|
||||
@ -266,6 +267,7 @@ void HardFault_Handler(void) {
|
||||
|
||||
// Required by __libc_init_array in startup code if we are compiling using
|
||||
// -nostdlib/-nostartfiles.
|
||||
void _init(void);
|
||||
void _init(void) {
|
||||
}
|
||||
|
||||
|
||||
@ -48,6 +48,12 @@ void DebugMon_Handler(void);
|
||||
void PendSV_Handler(void);
|
||||
void SysTick_Handler(void);
|
||||
|
||||
void USBFS_H_CAN1_TX_IRQHandler(void);
|
||||
void USBFS_L_CAN1_RX0_IRQHandler(void);
|
||||
void USBFS_MAPH_IRQHandler(void);
|
||||
void USBFS_MAPL_IRQHandler(void);
|
||||
void USBFSWakeUp_IRQHandler(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
@ -29,6 +29,7 @@
|
||||
*/
|
||||
|
||||
#include "at32f413_clock.h"
|
||||
#include "at32f413_int.h"
|
||||
#include "board.h"
|
||||
#include "bsp/board_api.h"
|
||||
|
||||
@ -266,6 +267,7 @@ void HardFault_Handler(void) {
|
||||
|
||||
// Required by __libc_init_array in startup code if we are compiling using
|
||||
// -nostdlib/-nostartfiles.
|
||||
void _init(void);
|
||||
void _init(void) {
|
||||
}
|
||||
|
||||
|
||||
@ -48,6 +48,9 @@ void DebugMon_Handler(void);
|
||||
void PendSV_Handler(void);
|
||||
void SysTick_Handler(void);
|
||||
|
||||
void OTGFS1_IRQHandler(void);
|
||||
void OTGFS1_WKUP_IRQHandler(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
@ -29,6 +29,7 @@
|
||||
*/
|
||||
|
||||
#include "at32f415_clock.h"
|
||||
#include "at32f415_int.h"
|
||||
#include "board.h"
|
||||
#include "bsp/board_api.h"
|
||||
|
||||
@ -262,6 +263,7 @@ void HardFault_Handler(void) {
|
||||
|
||||
// Required by __libc_init_array in startup code if we are compiling using
|
||||
// -nostdlib/-nostartfiles.
|
||||
void _init(void);
|
||||
void _init(void) {
|
||||
}
|
||||
|
||||
|
||||
@ -48,6 +48,9 @@ void DebugMon_Handler(void);
|
||||
void PendSV_Handler(void);
|
||||
void SysTick_Handler(void);
|
||||
|
||||
void OTGFS1_IRQHandler(void);
|
||||
void OTGFS1_WKUP_IRQHandler(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
@ -29,6 +29,7 @@
|
||||
*/
|
||||
|
||||
#include "at32f423_clock.h"
|
||||
#include "at32f423_int.h"
|
||||
#include "board.h"
|
||||
#include "bsp/board_api.h"
|
||||
|
||||
@ -266,6 +267,7 @@ void HardFault_Handler(void) {
|
||||
|
||||
// Required by __libc_init_array in startup code if we are compiling using
|
||||
// -nostdlib/-nostartfiles.
|
||||
void _init(void);
|
||||
void _init(void) {
|
||||
}
|
||||
|
||||
|
||||
@ -48,6 +48,9 @@ void DebugMon_Handler(void);
|
||||
void PendSV_Handler(void);
|
||||
void SysTick_Handler(void);
|
||||
|
||||
void OTGFS1_IRQHandler(void);
|
||||
void OTGFS1_WKUP_IRQHandler(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
@ -29,6 +29,7 @@
|
||||
*/
|
||||
|
||||
#include "at32f425_clock.h"
|
||||
#include "at32f425_int.h"
|
||||
#include "board.h"
|
||||
#include "bsp/board_api.h"
|
||||
|
||||
@ -270,6 +271,7 @@ void HardFault_Handler(void) {
|
||||
|
||||
// Required by __libc_init_array in startup code if we are compiling using
|
||||
// -nostdlib/-nostartfiles.
|
||||
void _init(void);
|
||||
void _init(void) {
|
||||
}
|
||||
|
||||
|
||||
@ -48,6 +48,11 @@ void DebugMon_Handler(void);
|
||||
void PendSV_Handler(void);
|
||||
void SysTick_Handler(void);
|
||||
|
||||
void OTGFS1_IRQHandler(void);
|
||||
void OTGFS2_IRQHandler(void);
|
||||
void OTGFS1_WKUP_IRQHandler(void);
|
||||
void OTGFS2_WKUP_IRQHandler(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
@ -29,6 +29,7 @@
|
||||
*/
|
||||
|
||||
#include "at32f435_437_clock.h"
|
||||
#include "at32f435_437_int.h"
|
||||
#include "board.h"
|
||||
#include "bsp/board_api.h"
|
||||
|
||||
@ -332,6 +333,7 @@ void HardFault_Handler(void) {
|
||||
|
||||
// Required by __libc_init_array in startup code if we are compiling using
|
||||
// -nostdlib/-nostartfiles.
|
||||
void _init(void);
|
||||
void _init(void) {
|
||||
}
|
||||
|
||||
|
||||
@ -108,8 +108,6 @@ void USBD_IRQHandler(void) {
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
// tinyusb function that handles power event (detected, ready, removed)
|
||||
// We must call it within SD's SOC event handler, or set it as power event handler if SD is not enabled.
|
||||
extern void tusb_hal_nrf_power_event(uint32_t event);
|
||||
|
||||
@ -46,13 +46,13 @@ function(add_board_target BOARD_TARGET)
|
||||
|
||||
if (MCU_VARIANT STREQUAL nrf54h20)
|
||||
set(LD_FILE_GNU_DEFAULT ${CMAKE_CURRENT_FUNCTION_LIST_DIR}/linker/${MCU_VARIANT}_xxaa_application.ld)
|
||||
target_sources(${BOARD_TARGET} PUBLIC
|
||||
target_sources(${BOARD_TARGET} PRIVATE
|
||||
${NRFX_PATH}/mdk/system_nrf54h.c
|
||||
${NRFX_PATH}/mdk/gcc_startup_${MCU_VARIANT}_application.S
|
||||
)
|
||||
elseif (MCU_VARIANT STREQUAL nrf5340)
|
||||
set(LD_FILE_GNU_DEFAULT ${CMAKE_CURRENT_FUNCTION_LIST_DIR}/linker/${MCU_VARIANT}_xxaa_application.ld)
|
||||
target_sources(${BOARD_TARGET} PUBLIC
|
||||
target_sources(${BOARD_TARGET} PRIVATE
|
||||
${NRFX_PATH}/mdk/system_${MCU_VARIANT}_application.c
|
||||
${NRFX_PATH}/mdk/gcc_startup_${MCU_VARIANT}_application.S
|
||||
${NRFX_PATH}/drivers/src/nrfx_usbreg.c
|
||||
@ -60,7 +60,7 @@ function(add_board_target BOARD_TARGET)
|
||||
target_compile_definitions(${BOARD_TARGET} PUBLIC NRF5340_XXAA_APPLICATION)
|
||||
else()
|
||||
set(LD_FILE_GNU_DEFAULT ${CMAKE_CURRENT_FUNCTION_LIST_DIR}/linker/${MCU_VARIANT}_xxaa.ld)
|
||||
target_sources(${BOARD_TARGET} PUBLIC
|
||||
target_sources(${BOARD_TARGET} PRIVATE
|
||||
${NRFX_PATH}/mdk/system_${MCU_VARIANT}.c
|
||||
${NRFX_PATH}/mdk/gcc_startup_${MCU_VARIANT}.S
|
||||
)
|
||||
@ -141,6 +141,11 @@ function(family_configure_example TARGET RTOS)
|
||||
${CMAKE_CURRENT_FUNCTION_LIST_DIR}/family.c
|
||||
${CMAKE_CURRENT_FUNCTION_LIST_DIR}/../board.c
|
||||
)
|
||||
|
||||
if (CMAKE_C_COMPILER_ID STREQUAL "GNU" OR CMAKE_C_COMPILER_ID STREQUAL "Clang")
|
||||
set_source_files_properties(${CMAKE_CURRENT_FUNCTION_LIST_DIR}/family.c PROPERTIES COMPILE_FLAGS "-Wno-missing-prototypes")
|
||||
endif ()
|
||||
|
||||
target_include_directories(${TARGET} PUBLIC
|
||||
# family, hw, board
|
||||
${CMAKE_CURRENT_FUNCTION_LIST_DIR}
|
||||
|
||||
Reference in New Issue
Block a user