diff options
| author | Marti Bolivar <mbolivar@leaflabs.com> | 2011-09-07 00:51:23 -0400 | 
|---|---|---|
| committer | Marti Bolivar <mbolivar@leaflabs.com> | 2011-09-07 23:34:23 -0400 | 
| commit | cbf9ddff5b49ab838f9e03be5331ce14bae83b22 (patch) | |
| tree | 726f87b038f0749318b1ce5265368eb5ba34b237 | |
| parent | 558b89afe973cde142c99d5fb58ffbc99e032e62 (diff) | |
| download | librambutan-cbf9ddff5b49ab838f9e03be5331ce14bae83b22.tar.gz librambutan-cbf9ddff5b49ab838f9e03be5331ce14bae83b22.zip | |
syscalls.c: Remove fictitious uart_send() and broken comments.
uart_send() is not part of libmaple, and nm doesn't show it getting
linked in from anywhere else, so I don't believe it exists.  Remove it.
Also remove some commented-out sections from getch(), putch(),
_write(), and fgets().  These either reference uart_send() or use old
libmaple APIs which no longer exist.
| -rw-r--r-- | libmaple/syscalls.c | 10 | 
1 files changed, 0 insertions, 10 deletions
| diff --git a/libmaple/syscalls.c b/libmaple/syscalls.c index 2437228..ae80010 100644 --- a/libmaple/syscalls.c +++ b/libmaple/syscalls.c @@ -30,7 +30,6 @@  /* _end is set in the linker command file */  extern caddr_t _end; -void uart_send(const char*str);  /*   * sbrk -- changes heap size size. Get nbytes more @@ -50,7 +49,6 @@ caddr_t _sbrk(int nbytes) {          heap_ptr += nbytes;          return (base);      } else { -        uart_send("heap full!\r\n");          return ((caddr_t)-1);      }  } @@ -81,8 +79,6 @@ int _lseek(int fd, off_t pos, int whence) {  }  unsigned char getch(void) { -//    while (!(USART2->SR & USART_FLAG_RXNE)); -//    return USART2->DR;      return 0;  } @@ -94,10 +90,6 @@ int _read(int fd, char *buf, size_t cnt) {  }  void putch(unsigned char c) { -//    if (c == '\n') putch('\r'); - -//    while (!(USART2->SR & USART_FLAG_TXE)); -//    USART2->DR = c;  }  void cgets(char *s, int bufsize) { @@ -142,7 +134,6 @@ void cgets(char *s, int bufsize) {  int _write(int fd, const char *buf, size_t cnt) {      int i; -//    uart_send("_write\r\n");      for (i = 0; i < cnt; i++)          putch(buf[i]); @@ -152,7 +143,6 @@ int _write(int fd, const char *buf, size_t cnt) {  /* Override fgets() in newlib with a version that does line editing */  char *fgets(char *s, int bufsize, void *f) { -//    uart_send("fgets\r\n");      cgets(s, bufsize);      return s;  } | 
