SikendeRTOS
RTOS for ARM Cortex M3+ SoCs designed and written from scratch
retarget.c
Go to the documentation of this file.
1
2
//**************************************************************************************
3
// The following protoypes are functions that were modified / added by Sikender Ashraf
4
// and Sijin Woo
5
//**************************************************************************************
6
7
8
#include "
retarget.h
"
9
10
18
int
fputc
(
int
ch, FILE *f) {
19
UART_OutChar
(ch);
20
return
(1);
21
}
22
23
30
int
fgetc
(FILE *f) {
31
return
(
UART_InChar
());
32
}
33
34
35
42
int
ferror
(FILE *f) {
43
/* Your implementation of ferror */
44
return
EOF;
45
}
46
UART_InChar
char UART_InChar(void)
Definition:
UART0.c:115
UART_OutChar
void UART_OutChar(char data)
Definition:
UART0.c:122
fgetc
int fgetc(FILE *f)
Definition:
retarget.c:30
ferror
int ferror(FILE *f)
Definition:
retarget.c:42
fputc
int fputc(int ch, FILE *f)
Definition:
retarget.c:18
retarget.h
Redirects printf to UART.
SikendeRTOS
SikenderOS
Project
src
retarget.c
Generated by
1.9.4