blob: 9e3ce2c8b2888eb17ddfcba93723acbbdec27e66 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#include "Types.h"
#include "UsartPutChar.h"
#include "UsartTransmitBufferStatus.h"
#ifdef SIMULATE
#include <stdio.h>
#endif
void Usart_PutChar(char data)
{
while(!Usart_ReadyToTransmit());
#ifdef SIMULATE
printf("%c", data);
#else
AT91C_BASE_US0->US_THR = data;
#endif
}
|