v1

Dependencies:   mbed Servo

soft_uart.h

Committer:
eric11fr
Date:
2020-10-27
Revision:
4:34a8e94c6fd5
Parent:
0:b8bade04f24f

File content as of revision 4:34a8e94c6fd5:


 
#define BAUD_RATE       9600

void idle();
 
//Sets the transmit pin to the high state.
void set_tx_pin_high();
 
//Sets the transmit pin to the low state.
void set_tx_pin_low();
 
//Returns 0 or 1 dependent on whether the receive pin is high or low
int get_rx_pin_status();
void timer_isr(void);
 
void init_uart( void );
 
char _getchar( void );
 
void _putchar( int ch );
 
void flush_input_buffer( void );
 
char kbhit( void );
 
void turn_rx_on( void );
 
void turn_rx_off( void );
void printStr(char* str);