mirror of
https://github.com/hathach/tinyusb.git
synced 2025-02-19 15:40:41 +00:00
clean up
This commit is contained in:
parent
f6a45a7aab
commit
a70978e057
@ -39,7 +39,7 @@
|
|||||||
#define sys_read _read
|
#define sys_read _read
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(LOGGER_RTT) || defined(LOGGER_rtt)
|
#if defined(LOGGER_RTT)
|
||||||
// Logging with RTT
|
// Logging with RTT
|
||||||
|
|
||||||
// If using SES IDE, use the Syscalls/SEGGER_RTT_Syscalls_SES.c instead
|
// If using SES IDE, use the Syscalls/SEGGER_RTT_Syscalls_SES.c instead
|
||||||
@ -62,7 +62,7 @@ TU_ATTR_USED int sys_read (int fhdl, char *buf, size_t count)
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#elif defined(LOGGER_SWO) || defined(LOGGER_swo)
|
#elif defined(LOGGER_SWO)
|
||||||
// Logging with SWO for ARM Cortex
|
// Logging with SWO for ARM Cortex
|
||||||
|
|
||||||
#include "board_mcu.h"
|
#include "board_mcu.h"
|
||||||
|
@ -57,6 +57,8 @@
|
|||||||
//--------------------------------------------------------------------+
|
//--------------------------------------------------------------------+
|
||||||
// RCC Clock
|
// RCC Clock
|
||||||
//--------------------------------------------------------------------+
|
//--------------------------------------------------------------------+
|
||||||
|
|
||||||
|
// CPU Frequency (Core Clock) is 170MHz
|
||||||
static inline void board_clock_init(void)
|
static inline void board_clock_init(void)
|
||||||
{
|
{
|
||||||
RCC_OscInitTypeDef RCC_OscInitStruct = {0};
|
RCC_OscInitTypeDef RCC_OscInitStruct = {0};
|
||||||
|
@ -136,6 +136,7 @@ void board_init(void)
|
|||||||
board_vbus_sense_init();
|
board_vbus_sense_init();
|
||||||
|
|
||||||
// USB PD
|
// USB PD
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------+
|
//--------------------------------------------------------------------+
|
||||||
|
@ -109,7 +109,7 @@ function(family_configure_example TARGET)
|
|||||||
|
|
||||||
# Flashing
|
# Flashing
|
||||||
family_flash_stlink(${TARGET})
|
family_flash_stlink(${TARGET})
|
||||||
#family_flash_jlink(${TARGET})
|
family_flash_jlink(${TARGET})
|
||||||
endfunction()
|
endfunction()
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user