mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
29 lines
491 B
C
29 lines
491 B
C
/*
|
|
* SPDX-FileCopyrightText: 2010-2022 Espressif Systems (Shanghai) CO LTD
|
|
*
|
|
* SPDX-License-Identifier: CC0-1.0
|
|
*/
|
|
|
|
#include <stdio.h>
|
|
#include "esp_log.h"
|
|
#include "pikascript.h"
|
|
#include "freertos/FreeRTOS.h"
|
|
#include "freertos/task.h"
|
|
#include "driver/uart.h"
|
|
|
|
char __platform_getchar()
|
|
{
|
|
char data = 0xff;
|
|
do
|
|
{
|
|
vTaskDelay(1);
|
|
data = getchar();
|
|
} while (data == 0xff);
|
|
return data;
|
|
}
|
|
|
|
void app_main(void)
|
|
{
|
|
pikaScriptShell(pikaScriptInit());
|
|
}
|