Decided to not use defines everywhere, instead making user accessable functions for runtime use.
This commit is contained in:
parent
b2992459b3
commit
f4aef61b0e
|
@ -72,6 +72,8 @@ void init_usart0(void) {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//setting the data frame format
|
//setting the data frame format
|
||||||
UCSR0C = (0<<UMSEL01)|(0<<UMSEL00)| //Async
|
UCSR0C = (0<<UMSEL01)|(0<<UMSEL00)| //Async
|
||||||
(0<<UPM01)|(0<<UPM00)| //Parity bits
|
(0<<UPM01)|(0<<UPM00)| //Parity bits
|
||||||
|
|
|
@ -39,14 +39,6 @@
|
||||||
//#############################
|
//#############################
|
||||||
|
|
||||||
#define USE_U2X 0
|
#define USE_U2X 0
|
||||||
#define STOP_BITS 2
|
|
||||||
#define DATA_BITS 8
|
|
||||||
#define CLOCK_POL 0
|
|
||||||
#define PARITY_BITS 0
|
|
||||||
#define PARITY_POS 0
|
|
||||||
#define CARRIAGE_RETURN 0
|
|
||||||
#define LINE_FEED 0
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//#############################
|
//#############################
|
||||||
|
|
Loading…
Reference in New Issue