Merge pull request #5733 from deepikabhavnani/non_rtos_serial_fix

Access to serial device is allowed when DEVICE_SERIAL is defined
pull/5746/merge
Anna Bridge 2017-12-29 14:28:15 +00:00 committed by GitHub
commit 1b53aabc5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -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