Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Fork of nucleo_test_soft_serial by
soft_uart.h@1:2bd6dc642bb9, 2021-03-05 (annotated)
- Committer:
- eric11fr
- Date:
- Fri Mar 05 09:35:03 2021 +0000
- Revision:
- 1:2bd6dc642bb9
a tester
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| eric11fr | 1:2bd6dc642bb9 | 1 | |
| eric11fr | 1:2bd6dc642bb9 | 2 | |
| eric11fr | 1:2bd6dc642bb9 | 3 | #define BAUD_RATE 9600 |
| eric11fr | 1:2bd6dc642bb9 | 4 | |
| eric11fr | 1:2bd6dc642bb9 | 5 | void idle(); |
| eric11fr | 1:2bd6dc642bb9 | 6 | |
| eric11fr | 1:2bd6dc642bb9 | 7 | //Sets the transmit pin to the high state. |
| eric11fr | 1:2bd6dc642bb9 | 8 | void set_tx_pin_high(); |
| eric11fr | 1:2bd6dc642bb9 | 9 | |
| eric11fr | 1:2bd6dc642bb9 | 10 | //Sets the transmit pin to the low state. |
| eric11fr | 1:2bd6dc642bb9 | 11 | void set_tx_pin_low(); |
| eric11fr | 1:2bd6dc642bb9 | 12 | |
| eric11fr | 1:2bd6dc642bb9 | 13 | //Returns 0 or 1 dependent on whether the receive pin is high or low |
| eric11fr | 1:2bd6dc642bb9 | 14 | int get_rx_pin_status(); |
| eric11fr | 1:2bd6dc642bb9 | 15 | void timer_isr(void); |
| eric11fr | 1:2bd6dc642bb9 | 16 | |
| eric11fr | 1:2bd6dc642bb9 | 17 | void init_uart( void ); |
| eric11fr | 1:2bd6dc642bb9 | 18 | |
| eric11fr | 1:2bd6dc642bb9 | 19 | char _getchar( void ); |
| eric11fr | 1:2bd6dc642bb9 | 20 | |
| eric11fr | 1:2bd6dc642bb9 | 21 | void _putchar( int ch ); |
| eric11fr | 1:2bd6dc642bb9 | 22 | |
| eric11fr | 1:2bd6dc642bb9 | 23 | void flush_input_buffer( void ); |
| eric11fr | 1:2bd6dc642bb9 | 24 | |
| eric11fr | 1:2bd6dc642bb9 | 25 | char kbhit( void ); |
| eric11fr | 1:2bd6dc642bb9 | 26 | |
| eric11fr | 1:2bd6dc642bb9 | 27 | void turn_rx_on( void ); |
| eric11fr | 1:2bd6dc642bb9 | 28 | |
| eric11fr | 1:2bd6dc642bb9 | 29 | void turn_rx_off( void ); |
| eric11fr | 1:2bd6dc642bb9 | 30 | void printStr(char* str); |
| eric11fr | 1:2bd6dc642bb9 | 31 |
