updates tgc_vp by adding bsp specific r/w and updates platform.h paths

This commit is contained in:
2025-03-28 19:03:56 +01:00
parent 890d4478a3
commit 427f8e8b0b
3 changed files with 61 additions and 25 deletions

18
env/moonlight/bsp_write.c vendored Normal file
View File

@@ -0,0 +1,18 @@
/* See LICENSE of license details. */
#include <errno.h>
#include <stdint.h>
#include <sys/types.h>
#include <unistd.h>
ssize_t _bsp_write(int fd, const void *ptr, size_t len) {
const uint8_t *current = (const uint8_t *)ptr;
if (isatty(fd)) {
for (size_t jj = 0; jj < len; jj++) {
*((uint32_t *)0xFFFF0000) = current[jj];
}
return len;
}
return 1;
}