mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #5733 from deepikabhavnani/non_rtos_serial_fix
Access to serial device is allowed when DEVICE_SERIAL is definedpull/5746/merge
commit
1b53aabc5c
|
@ -351,7 +351,9 @@ extern "C" void PREFIX(_exit)(int return_code) {
|
|||
}
|
||||
|
||||
extern "C" void _ttywrch(int ch) {
|
||||
#if DEVICE_SERIAL
|
||||
serial_putc(&stdio_uart, ch);
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
|
@ -739,6 +741,7 @@ extern "C" int errno;
|
|||
|
||||
// Dynamic memory allocation related syscall.
|
||||
#if defined(TARGET_NUVOTON)
|
||||
|
||||
// Overwrite _sbrk() to support two region model (heap and stack are two distinct regions).
|
||||
// __wrap__sbrk() is implemented in:
|
||||
// TARGET_NUMAKER_PFM_NUC472 targets/TARGET_NUVOTON/TARGET_NUC472/TARGET_NUMAKER_PFM_NUC472/TOOLCHAIN_GCC_ARM/nuc472_retarget.c
|
||||
|
|
Loading…
Reference in New Issue