detect MCU flash size to config diff usart

This commit is contained in:
2025-08-21 00:39:30 +08:00
parent b6485c5c39
commit b78c1e416a
8 changed files with 138 additions and 13 deletions

View File

@@ -51,12 +51,16 @@ OF SUCH DAMAGE.
*/
int main(void)
{
led_init();
mcu_detect_and_config();
setbuf(stdout, NULL);
systick_config();
rs485_init();
led_init();
// led_init();
printf("Flash size: %d Kbytes\n", get_flash_size());
#ifdef DEBUG_VERBOSE
char hello_world[] = {"Hello World!\r\n"};