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
soft_uart.h@5:46a732673cc5, 2022-03-26 (annotated)
- Committer:
- Giamarchi
- Date:
- Sat Mar 26 09:26:26 2022 +0000
- Revision:
- 5:46a732673cc5
Programme de dialogue entre un PC et un Smartphone en Bluetooth
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| Giamarchi | 5:46a732673cc5 | 1 | #define BAUD_RATE 9600 |
| Giamarchi | 5:46a732673cc5 | 2 | |
| Giamarchi | 5:46a732673cc5 | 3 | void idle(); |
| Giamarchi | 5:46a732673cc5 | 4 | |
| Giamarchi | 5:46a732673cc5 | 5 | //Sets the transmit pin to the high state. |
| Giamarchi | 5:46a732673cc5 | 6 | void set_tx_pin_high(); |
| Giamarchi | 5:46a732673cc5 | 7 | |
| Giamarchi | 5:46a732673cc5 | 8 | //Sets the transmit pin to the low state. |
| Giamarchi | 5:46a732673cc5 | 9 | void set_tx_pin_low(); |
| Giamarchi | 5:46a732673cc5 | 10 | |
| Giamarchi | 5:46a732673cc5 | 11 | //Returns 0 or 1 dependent on whether the receive pin is high or low |
| Giamarchi | 5:46a732673cc5 | 12 | int get_rx_pin_status(); |
| Giamarchi | 5:46a732673cc5 | 13 | void timer_isr(void); |
| Giamarchi | 5:46a732673cc5 | 14 | |
| Giamarchi | 5:46a732673cc5 | 15 | void init_uart( void ); |
| Giamarchi | 5:46a732673cc5 | 16 | |
| Giamarchi | 5:46a732673cc5 | 17 | char _getchar( void ); |
| Giamarchi | 5:46a732673cc5 | 18 | void _putchar( int ch ); |
| Giamarchi | 5:46a732673cc5 | 19 | |
| Giamarchi | 5:46a732673cc5 | 20 | void flush_input_buffer( void ); |
| Giamarchi | 5:46a732673cc5 | 21 | |
| Giamarchi | 5:46a732673cc5 | 22 | char kbhit( void ); |
| Giamarchi | 5:46a732673cc5 | 23 | |
| Giamarchi | 5:46a732673cc5 | 24 | void turn_rx_on( void ); |
| Giamarchi | 5:46a732673cc5 | 25 | void turn_rx_off( void ); |
| Giamarchi | 5:46a732673cc5 | 26 | void printStr(char* str); |