29 lines
491 B
C
Raw Normal View History

2022-06-27 15:38:13 +08:00
/*
* SPDX-FileCopyrightText: 2010-2022 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: CC0-1.0
*/
2021-12-19 14:12:52 +00:00
2021-12-19 22:02:54 +08:00
#include <stdio.h>
2022-06-27 15:38:13 +08:00
#include "esp_log.h"
#include "pikascript.h"
2021-12-19 22:02:54 +08:00
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
2022-06-27 15:38:13 +08:00
#include "driver/uart.h"
char __platform_getchar()
{
char data = 0xff;
do
{
vTaskDelay(1);
data = getchar();
} while (data == 0xff);
return data;
2022-03-28 14:04:38 +08:00
}
2022-06-27 15:38:13 +08:00
void app_main(void)
{
pikaScriptShell(pikaScriptInit());
2021-12-19 22:02:54 +08:00
}