mirror of
https://github.com/Ralim/IronOS.git
synced 2025-02-26 07:53:55 +00:00
Remove boot banner
This commit is contained in:
@@ -35,7 +35,6 @@ static uint8_t uart_dbg_disable = 0;
|
|||||||
// struct heap_info mmheap_root;
|
// struct heap_info mmheap_root;
|
||||||
|
|
||||||
__WEAK__ void board_init(void) {}
|
__WEAK__ void board_init(void) {}
|
||||||
__WEAK__ void bl_show_info(void) {}
|
|
||||||
|
|
||||||
__WEAK__ enum uart_index_type board_get_debug_uart_index(void) { return 0; }
|
__WEAK__ enum uart_index_type board_get_debug_uart_index(void) { return 0; }
|
||||||
|
|
||||||
@@ -86,8 +85,6 @@ void bflb_platform_init(uint32_t baudrate) {
|
|||||||
device_set_callback(uart, NULL);
|
device_set_callback(uart, NULL);
|
||||||
device_control(uart, DEVICE_CTRL_CLR_INT, (void *)(UART_RX_FIFO_IT));
|
device_control(uart, DEVICE_CTRL_CLR_INT, (void *)(UART_RX_FIFO_IT));
|
||||||
}
|
}
|
||||||
|
|
||||||
bl_show_info();
|
|
||||||
}
|
}
|
||||||
static bool initialized = false;
|
static bool initialized = false;
|
||||||
if (!initialized) {
|
if (!initialized) {
|
||||||
|
|||||||
@@ -256,37 +256,6 @@ static void board_clock_init(void) {
|
|||||||
peripheral_clock_init();
|
peripheral_clock_init();
|
||||||
}
|
}
|
||||||
|
|
||||||
void bl_show_info(void) {
|
|
||||||
MSG("\r\n");
|
|
||||||
MSG(" ____ __ __ _ _ _ \r\n");
|
|
||||||
MSG(" | _ \\ / _|/ _| | | | | | | \r\n");
|
|
||||||
MSG(" | |_) | ___ _ _| |_| |_ __ _| | ___ | | __ _| |__ \r\n");
|
|
||||||
MSG(" | _ < / _ \\| | | | _| _/ _` | |/ _ \\| |/ _` | '_ \\ \r\n");
|
|
||||||
MSG(" | |_) | (_) | |_| | | | || (_| | | (_) | | (_| | |_) |\r\n");
|
|
||||||
MSG(" |____/ \\___/ \\__,_|_| |_| \\__,_|_|\\___/|_|\\__,_|_.__/ \r\n");
|
|
||||||
MSG("\r\n");
|
|
||||||
MSG("Build:%s,%s\r\n", __TIME__, __DATE__);
|
|
||||||
MSG("Copyright (c) 2021 Bouffalolab team\r\n");
|
|
||||||
|
|
||||||
#if 1
|
|
||||||
MSG("root clock:%dM\r\n", system_clock_get(SYSTEM_CLOCK_ROOT_CLOCK) / 1000000); /*root clock before f_div*/
|
|
||||||
|
|
||||||
MSG("fclk clock:%dM\r\n", system_clock_get(SYSTEM_CLOCK_FCLK) / 1000000); /*after f_div,this is system core clock*/
|
|
||||||
MSG("bclk clock:%dM\r\n", system_clock_get(SYSTEM_CLOCK_BCLK) / 1000000);
|
|
||||||
|
|
||||||
MSG("uart clock:%dM\r\n", peripheral_clock_get(PERIPHERAL_CLOCK_UART) / 1000000);
|
|
||||||
MSG("spi clock:%dM\r\n", peripheral_clock_get(PERIPHERAL_CLOCK_SPI) / 1000000);
|
|
||||||
MSG("i2c clock:%dM\r\n", peripheral_clock_get(PERIPHERAL_CLOCK_I2C) / 1000000);
|
|
||||||
MSG("adc clock:%dM\r\n", peripheral_clock_get(PERIPHERAL_CLOCK_ADC) / 1000000);
|
|
||||||
MSG("dac clock:%dM\r\n", peripheral_clock_get(PERIPHERAL_CLOCK_DAC) / 1000000);
|
|
||||||
MSG("i2s clock:%dM\r\n", peripheral_clock_get(PERIPHERAL_CLOCK_I2S) / 1000000);
|
|
||||||
MSG("pwm clock:%dhz\r\n", peripheral_clock_get(PERIPHERAL_CLOCK_PWM));
|
|
||||||
MSG("cam clock:%dM\r\n", peripheral_clock_get(PERIPHERAL_CLOCK_CAM) / 1000000);
|
|
||||||
MSG("timer0 clock:%dM\r\n", peripheral_clock_get(PERIPHERAL_CLOCK_TIMER0) / 1000000);
|
|
||||||
MSG("timer1 clock:%dM\r\n", peripheral_clock_get(PERIPHERAL_CLOCK_TIMER1) / 1000000);
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
void board_init(void) {
|
void board_init(void) {
|
||||||
board_clock_init();
|
board_clock_init();
|
||||||
board_pin_mux_init();
|
board_pin_mux_init();
|
||||||
|
|||||||
Reference in New Issue
Block a user