inisat_dev
/
inisat4nucleo
soft_uart.h@4:34a8e94c6fd5, 2020-10-27 (annotated)
- Committer:
- eric11fr
- Date:
- Tue Oct 27 22:22:14 2020 +0000
- Revision:
- 4:34a8e94c6fd5
- Parent:
- 0:b8bade04f24f
test menu via xbee
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
eric11fr | 0:b8bade04f24f | 1 | |
eric11fr | 0:b8bade04f24f | 2 | |
eric11fr | 0:b8bade04f24f | 3 | #define BAUD_RATE 9600 |
eric11fr | 0:b8bade04f24f | 4 | |
eric11fr | 0:b8bade04f24f | 5 | void idle(); |
eric11fr | 0:b8bade04f24f | 6 | |
eric11fr | 0:b8bade04f24f | 7 | //Sets the transmit pin to the high state. |
eric11fr | 0:b8bade04f24f | 8 | void set_tx_pin_high(); |
eric11fr | 0:b8bade04f24f | 9 | |
eric11fr | 0:b8bade04f24f | 10 | //Sets the transmit pin to the low state. |
eric11fr | 0:b8bade04f24f | 11 | void set_tx_pin_low(); |
eric11fr | 0:b8bade04f24f | 12 | |
eric11fr | 0:b8bade04f24f | 13 | //Returns 0 or 1 dependent on whether the receive pin is high or low |
eric11fr | 0:b8bade04f24f | 14 | int get_rx_pin_status(); |
eric11fr | 0:b8bade04f24f | 15 | void timer_isr(void); |
eric11fr | 0:b8bade04f24f | 16 | |
eric11fr | 0:b8bade04f24f | 17 | void init_uart( void ); |
eric11fr | 0:b8bade04f24f | 18 | |
eric11fr | 0:b8bade04f24f | 19 | char _getchar( void ); |
eric11fr | 0:b8bade04f24f | 20 | |
eric11fr | 0:b8bade04f24f | 21 | void _putchar( int ch ); |
eric11fr | 0:b8bade04f24f | 22 | |
eric11fr | 0:b8bade04f24f | 23 | void flush_input_buffer( void ); |
eric11fr | 0:b8bade04f24f | 24 | |
eric11fr | 0:b8bade04f24f | 25 | char kbhit( void ); |
eric11fr | 0:b8bade04f24f | 26 | |
eric11fr | 0:b8bade04f24f | 27 | void turn_rx_on( void ); |
eric11fr | 0:b8bade04f24f | 28 | |
eric11fr | 0:b8bade04f24f | 29 | void turn_rx_off( void ); |
eric11fr | 0:b8bade04f24f | 30 | void printStr(char* str); |
eric11fr | 0:b8bade04f24f | 31 |