2116 |
paro |
1 |
#ifndef USART_H |
|
|
2 |
#define USART_H |
|
|
3 |
|
|
|
4 |
//Inits: |
|
|
5 |
void USART_Init( unsigned int ubrr); // 8b, no parity, 1 stop |
|
|
6 |
// asynchronous, RX interrupt |
|
|
7 |
|
|
|
8 |
// Busy loop send: |
|
|
9 |
void USART_Transmit( unsigned char data ); // send char (1B) |
|
|
10 |
void USART_Transmit_string( char *data ); // send string |
|
|
11 |
void USART_Transmit_num( unsigned char data ); // send ascii |
|
|
12 |
void USART_Transmit_longnum( signed long data ); // send ascii |
|
|
13 |
//void USART_Transmit_float( float data ); |
|
|
14 |
void USART_Transmit_byte( char data ); //send in ascii hex reprezentation |
|
|
15 |
|
|
|
16 |
#endif |