SPI flash support, with xiao nrf52 and portenta-h7

This commit is contained in:
cpq committed 2026-12-03 11:56:57 +00:00
1 parent 57e30ab2e9
commit f02ea9859e
17 files changed
+442 -17

No files matched your search

+7 -7
View File
@@ -40,19 +40,19 @@ void *_sbrk(int incr) {
return prev_heap;
}
// Newlib stubs
// Newlib stubs. Weak ones are replaced by littlefs, see MG_ENABLE_LFS
struct stat;
int _fstat(int fd, struct stat *st) {
__attribute__((weak)) int _fstat(int fd, struct stat *st) {
(void) fd, (void) st;
return -1;
}
int _open(const char *path) {
__attribute__((weak)) int _open(const char *path) {
(void) path;
return -1;
}
int _close(int fd) {
__attribute__((weak)) int _close(int fd) {
(void) fd;
return -1;
}
@@ -62,7 +62,7 @@ int _isatty(int fd) {
return 1;
}
int _lseek(int fd, int ptr, int dir) {
__attribute__((weak)) int _lseek(int fd, int ptr, int dir) {
(void) fd, (void) ptr, (void) dir;
return 0;
}
@@ -80,12 +80,12 @@ int _getpid(void) {
return -1;
}
int _write(int fd, char *ptr, int len) {
__attribute__((weak)) int _write(int fd, char *ptr, int len) {
(void) fd, (void) ptr, (void) len;
return -1;
}
int _read(int fd, char *ptr, int len) {
__attribute__((weak)) int _read(int fd, char *ptr, int len) {
(void) fd, (void) ptr, (void) len;
return -1;
}