2021-01-11 20:11:03 +00:00
|
|
|
#include "platform.h"
|
2021-01-11 21:12:26 +00:00
|
|
|
#include "zpl.h"
|
2021-01-11 20:11:03 +00:00
|
|
|
#include <stdio.h>
|
|
|
|
|
2021-01-11 21:12:26 +00:00
|
|
|
uint8_t is_running;
|
|
|
|
|
2021-01-11 20:11:03 +00:00
|
|
|
void platform_init() {
|
|
|
|
printf("eco2d-cli\n");
|
2021-01-11 21:12:26 +00:00
|
|
|
is_running = 1;
|
2021-01-11 20:11:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void platform_shutdown() {
|
2021-01-11 21:12:26 +00:00
|
|
|
printf("\nBye!\n");
|
|
|
|
is_running = 0;
|
2021-01-11 20:11:03 +00:00
|
|
|
}
|
|
|
|
|
2021-05-07 12:27:51 +00:00
|
|
|
void platform_input() {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2021-01-11 20:11:03 +00:00
|
|
|
uint8_t platform_is_running() {
|
2021-01-11 21:12:26 +00:00
|
|
|
return is_running;
|
2021-01-11 20:11:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void platform_render() {
|
2021-01-11 21:12:26 +00:00
|
|
|
zpl_printf("o");
|
|
|
|
zpl_sleep_ms(1000);
|
2021-01-11 20:11:03 +00:00
|
|
|
}
|