meta: cleanup

This commit is contained in:
Lephenixnoir 2022-10-29 21:48:01 +02:00
parent 3431000d2f
commit d6334be488
Signed by untrusted user: Lephenixnoir
GPG Key ID: 1BBA026E13FC0495
2 changed files with 3 additions and 16 deletions

View File

@ -16,6 +16,7 @@ Python features:
- Compare features with existing implementations and other brands
- Get filesystem access (open etc) with the POSIX interface
- Get a decent amount of RAM not just the fixed 32 kiB that's hardcoded so far
- Interrupt with AC/ON
UI:
- Use [JustUI](/Lephenixnoir/JustUI) to get a file browser (already available)
@ -25,7 +26,7 @@ UI:
* Extend it with a fixed-width uf8x9 which maybe changes some glyphs (like
`i` and `l`; the usual fixed-width unambiguous styles)
* Try and provide a font smaller than 5x7 for more compact shell on mono
- A decent keymap that can input all relevant characters into the shell
Future wishes:
- Build for fx-9860G II (requires manual filesystem support)

View File

@ -52,18 +52,6 @@ void pe_draw(void)
dupdate();
}
void pe_exithandler(void)
{
pe_draw();
#ifdef FX9860G
drect(DWIDTH-4, 0, DWIDTH-1, 3, C_BLACK);
#else
drect(DWIDTH-8, 0, DWIDTH-1, 7, C_RED);
#endif
dupdate();
getkey();
}
int main(int argc, char **argv)
{
/* Set up standard streams */
@ -73,8 +61,6 @@ int main(int argc, char **argv)
open_generic(&stdouterr_type, cons, STDOUT_FILENO);
open_generic(&stdouterr_type, cons, STDERR_FILENO);
atexit(pe_exithandler);
/* Initialize MicroPython */
#define HEAP_SIZE 32768
void *heap = malloc(32768);
@ -125,7 +111,6 @@ void gc_collect(void) {
gc_collect_end();
}
// There is no filesystem so stat'ing returns nothing.
mp_import_stat_t mp_import_stat(const char *path)
{
struct stat st;
@ -139,6 +124,7 @@ mp_import_stat_t mp_import_stat(const char *path)
return MP_IMPORT_STAT_FILE;
}
// TODO: See branch 'posix-open' for a relevant attempt at using the POSIX API
mp_obj_t mp_builtin_open(size_t n_args, const mp_obj_t *args, mp_map_t *kwargs)
{
mp_obj_t *args_items;