mirror of
https://github.com/hathach/tinyusb.git
synced 2025-10-29 11:39:18 +00:00
fix more warnings
This commit is contained in:
parent
53deb6cc6c
commit
55227a6146
1
.gitignore
vendored
1
.gitignore
vendored
@ -20,6 +20,7 @@ latex
|
||||
*.ewt
|
||||
*.ewd
|
||||
*.hex
|
||||
.venv/
|
||||
cmake_install.cmake
|
||||
CMakeCache.txt
|
||||
settings/
|
||||
|
||||
@ -21,3 +21,4 @@ board:frdm_kl25z
|
||||
# lpc55 has weird error 'ncm_interface' causes a section type conflict with 'ntb_parameters'
|
||||
family:lpc55
|
||||
family:nuc126
|
||||
family:nuc100_120
|
||||
|
||||
@ -159,6 +159,7 @@ TU_ATTR_UNUSED void _start(void) {
|
||||
|
||||
#ifdef __clang__
|
||||
void _exit (int __status) {
|
||||
(void) __status;
|
||||
while (1) {}
|
||||
}
|
||||
#endif
|
||||
|
||||
@ -167,6 +167,7 @@ TU_ATTR_UNUSED void _start(void) {
|
||||
|
||||
#ifdef __clang__
|
||||
void _exit (int __status) {
|
||||
(void) __status;
|
||||
while (1) {}
|
||||
}
|
||||
#endif
|
||||
|
||||
@ -159,6 +159,7 @@ TU_ATTR_UNUSED void _start(void) {
|
||||
|
||||
#ifdef __clang__
|
||||
void _exit (int __status) {
|
||||
(void) __status;
|
||||
while (1) {}
|
||||
}
|
||||
#endif
|
||||
|
||||
@ -96,7 +96,11 @@ void board_init(void) {
|
||||
// 0x1B // Host + Device + OTG + AHB
|
||||
};
|
||||
|
||||
uint32_t const clk_en = CFG_TUD_ENABLED ? USBCLK_DEVCIE : USBCLK_HOST;
|
||||
#if CFG_TUD_ENABLED
|
||||
uint32_t const clk_en = USBCLK_DEVCIE;
|
||||
#else
|
||||
uint32_t const clk_en = USBCLK_HOST;
|
||||
#endif
|
||||
|
||||
LPC_USB->OTGClkCtrl = clk_en;
|
||||
while ((LPC_USB->OTGClkSt & clk_en) != clk_en) {}
|
||||
|
||||
@ -138,6 +138,7 @@ TU_ATTR_UNUSED void _start(void) {
|
||||
|
||||
#ifdef __clang__
|
||||
void _exit (int __status) {
|
||||
(void) __status;
|
||||
while (1) {}
|
||||
}
|
||||
#endif
|
||||
|
||||
@ -233,6 +233,7 @@ TU_ATTR_UNUSED void _start(void) {
|
||||
|
||||
#ifdef __clang__
|
||||
void _exit (int __status) {
|
||||
(void) __status;
|
||||
while (1) {}
|
||||
}
|
||||
#endif
|
||||
|
||||
@ -333,6 +333,7 @@ TU_ATTR_UNUSED void _start(void) {
|
||||
|
||||
#ifdef __clang__
|
||||
void _exit (int __status) {
|
||||
(void) __status;
|
||||
while (1) {}
|
||||
}
|
||||
#endif
|
||||
|
||||
@ -2,6 +2,4 @@ set(JLINK_DEVICE NUC120LE3)
|
||||
set(LD_FILE_GNU ${CMAKE_CURRENT_LIST_DIR}/nuc120_flash.ld)
|
||||
|
||||
function(update_board TARGET)
|
||||
target_compile_definitions(${TARGET} PUBLIC
|
||||
)
|
||||
endfunction()
|
||||
|
||||
@ -3,6 +3,4 @@ set(JLINK_DEVICE NUC121SC2AE)
|
||||
set(LD_FILE_GNU ${CMAKE_CURRENT_LIST_DIR}/nuc121_flash.ld)
|
||||
|
||||
function(update_board TARGET)
|
||||
target_compile_definitions(${TARGET} PUBLIC
|
||||
)
|
||||
endfunction()
|
||||
|
||||
@ -3,6 +3,4 @@ set(JLINK_DEVICE NUC125SC2AE)
|
||||
set(LD_FILE_GNU ${CMAKE_CURRENT_LIST_DIR}/nuc125_flash.ld)
|
||||
|
||||
function(update_board TARGET)
|
||||
target_compile_definitions(${TARGET} PUBLIC
|
||||
)
|
||||
endfunction()
|
||||
|
||||
@ -2,6 +2,4 @@ set(JLINK_DEVICE NUC126VG4AE)
|
||||
set(LD_FILE_GNU ${CMAKE_CURRENT_LIST_DIR}/nuc126_flash.ld)
|
||||
|
||||
function(update_board TARGET)
|
||||
target_compile_definitions(${TARGET} PUBLIC
|
||||
)
|
||||
endfunction()
|
||||
|
||||
@ -2,6 +2,4 @@ set(JLINK_DEVICE NUC505YO13Y)
|
||||
set(LD_FILE_GNU ${CMAKE_CURRENT_LIST_DIR}/nuc505_flashtoram.ld)
|
||||
|
||||
function(update_board TARGET)
|
||||
target_compile_definitions(${TARGET} PUBLIC
|
||||
)
|
||||
endfunction()
|
||||
|
||||
@ -51,7 +51,7 @@ deps_optional = {
|
||||
'nrf'],
|
||||
'hw/mcu/nuvoton': ['https://github.com/majbthrd/nuc_driver.git',
|
||||
'2204191ec76283371419fbcec207da02e1bc22fa',
|
||||
'nuc'],
|
||||
'nuc100_120 nuc121_125 nuc126 nuc505'],
|
||||
'hw/mcu/nxp/lpcopen': ['https://github.com/hathach/nxp_lpcopen.git',
|
||||
'b41cf930e65c734d8ec6de04f1d57d46787c76ae',
|
||||
'lpc11 lpc13 lpc15 lpc17 lpc18 lpc40 lpc43'],
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user