change commit

This commit is contained in:
graduateDesign 2021-09-29 22:52:31 +08:00
parent b790bf0e15
commit f5a3b3b678

View File

@ -126,7 +126,7 @@ int main(void) {
obj_run(pikaMain, "uart = STM32.UART()");
obj_run(pikaMain, "uart.init()");
obj_run(pikaMain, "uart.setId(1)");
obj_run(pikaMain, "uart.setBaudRate(115200)");
obj_run(pikaMain, "uart.setBaudRat e(115200)");
obj_run(pikaMain, "uart.enable()");
obj_run(pikaMain, "print('[info]: boot from flash.')");
while(1){
@ -144,7 +144,7 @@ int main(void) {
obj_run(pikaMain, "");
}
else{
/* boot from function */
/* boot from firmware */
pikaMain = pikaScriptInit();
}
/* USER CODE END 2 */