2022-03-24 12:28:12 +08:00

34 lines
485 B
C

#include <stdio.h>
#include "wm_hal.h"
#include "pikaScript.h"
void Error_Handler(void);
int main(void)
{
SystemClock_Config(CPU_CLK_240M);
printf("[info]: w801 system init ok.\r\n");
PikaObj *pikaMain = pikaScriptInit();
printf("enter main\r\n");
while (1)
{
printf(".");
HAL_Delay(1000);
}
}
void Error_Handler(void)
{
while (1)
{
}
}
void assert_failed(uint8_t *file, uint32_t line)
{
printf("Wrong parameters value: file %s on line %d\r\n", file, line);
}