Decided to not use defines everywhere, instead making user accessable functions for runtime use.

This commit is contained in:
Jake Goodwin 2023-01-16 20:10:53 -08:00
parent b2992459b3
commit f4aef61b0e
2 changed files with 2 additions and 8 deletions

View File

@ -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

View File

@ -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
//############################# //#############################