yacwc
This commit is contained in:
@@ -8,6 +8,10 @@ void USART0_init(void) {
|
||||
|
||||
USART0.BAUD = (uint16_t) USART0_BAUD_RATE(9600);
|
||||
USART0.CTRLB |= USART_TXEN_bm;
|
||||
USART0.CTRLB |= USART_RXEN_bm;
|
||||
// USART0.CTRLB |= USART_SFDEN_bm;
|
||||
// USART0.CTRLA |= USART_RXSIE_bm;
|
||||
USART0.CTRLA |= USART_RXCIE_bm;
|
||||
}
|
||||
|
||||
void USART0_sendChar(char c) {
|
||||
@@ -20,6 +24,7 @@ void USART0_sendChar(char c) {
|
||||
|
||||
|
||||
|
||||
|
||||
void USART0_sendString(const char *str) {
|
||||
for (size_t i = 0; i < strlen(str); i++) {
|
||||
USART0_sendChar(str[i]);
|
||||
|
||||
Reference in New Issue
Block a user