Files
-
PCB ESP32 / bak / PCB1.PcbDoc
-
PCB ESP32 / bak / Sheet1.SchDoc
-
PCB ESP32 / bak / Sheet2.SchDoc
-
PCB ESP32 / Control_Board / Conns.SchDoc
-
PCB ESP32 / Control_Board / Control_Board.PcbDoc
-
PCB ESP32 / Control_Board / PCB2.PcbDoc
-
PCB ESP32 / Control_Board / Circuit Maker / Control_Board.PcbDoc
-
PCB ESP32 / Main / PCB2.PcbDoc
-
PCB ESP32 / Main / Sheet1.SchDoc
-
PCB ESP32 / Main / Sheet2.SchDoc
-
PCB ESP32 / Main / Sheet3.SchDoc
-
PCB ESP32 / Main / Sheet4.SchDoc
-
PCB ESP32 / Main / Sheet4_Matrix.SchDoc
-
PCB ESP32 / Matrix / PCB1.PcbDoc
-
PCB ESP32 / Matrix2 / PCB2.PcbDoc
-
PCB ESP32 / Panel / panel.PcbDoc
-
PCB ESP32 / refs / OnOnfre_DevBoard_rev4.sch
-
PCB ESP32 / Resistor Patch / 1 / ResistorPatch1.PcbDoc
-
PCB ESP32 / Resistor Patch / 1 / ResistorPatch1.SchDoc
-
PCB ESP32 / Resistor Patch / 2 / ResistorPatch2.PcbDoc
-
PCB ESP32 / Resistor Patch / 2 / ResistorPatch2.SchDoc
-
PCB ESP32 / SOT223 Patch / PCB1.PcbDoc
-
PCB ESP32 / SOT223 Patch / Sheet1.SchDoc
Last update 5 years 11 months
by Afonso Muralha
| FilesCODEuGUI_ExampleuGUI v0.3syscalls | |
|---|---|
| .. | |
| syscalls.c |
syscalls.c/**************************************************************************//***** * @file stdio.c * @brief Implementation of newlib syscall ********************************************************************************/ #include <stdio.h> #include <stdarg.h> #include <sys/types.h> #include <sys/stat.h> #undef errno extern int errno; extern int _end; __attribute__ ((used)) caddr_t _sbrk ( int incr ) { static unsigned char *heap = NULL; unsigned char *prev_heap; if (heap == NULL) { heap = (unsigned char *)&_end; } prev_heap = heap; heap += incr; return (caddr_t) prev_heap; } __attribute__ ((used)) int link(char *old, char *new) { return -1; } __attribute__ ((used)) int _close(int file) { return -1; } __attribute__ ((used)) int _fstat(int file, struct stat *st) { st->st_mode = S_IFCHR; return 0; } __attribute__ ((used)) int _isatty(int file) { return 1; } __attribute__ ((used)) int _lseek(int file, int ptr, int dir) { return 0; } __attribute__ ((used)) int _read(int file, char *ptr, int len) { return 0; } __attribute__ ((used)) int _write(int file, char *ptr, int len) { return len; } __attribute__ ((used)) void abort(void) { /* Abort called */ while(1); } /* --------------------------------- End Of File ------------------------------ */