mirror of
https://github.com/bluekitchen/btstack.git
synced 2024-12-27 12:22:38 +00:00
3rd-party/segger-rtt:: allow for sys functions to be overwritten
This commit is contained in:
parent
29f2ca2149
commit
c4d011a772
@ -96,7 +96,7 @@ _ssize_t _write_r(struct _reent *r, int file, const void *ptr, size_t len);
|
||||
* including stdout.
|
||||
* Write data via RTT.
|
||||
*/
|
||||
_ssize_t _write(int file, const void *ptr, size_t len) {
|
||||
_ssize_t __attribute__((weak)) _write(int file, const void *ptr, size_t len) {
|
||||
(void) file; /* Not used, avoid warning */
|
||||
SEGGER_RTT_Write(0, ptr, len);
|
||||
return len;
|
||||
@ -112,7 +112,7 @@ _ssize_t _write(int file, const void *ptr, size_t len) {
|
||||
* including stdout.
|
||||
* Write data via RTT.
|
||||
*/
|
||||
_ssize_t _write_r(struct _reent *r, int file, const void *ptr, size_t len) {
|
||||
_ssize_t __attribute__((weak)) _write_r(struct _reent *r, int file, const void *ptr, size_t len) {
|
||||
(void) file; /* Not used, avoid warning */
|
||||
(void) r; /* Not used, avoid warning */
|
||||
SEGGER_RTT_Write(0, ptr, len);
|
||||
|
Loading…
Reference in New Issue
Block a user