/* * Author: Jake Goodwin * Date: 2023 * Description: Small library to communicate with the AT-09 bluetooth module. */ #include #include #include #include #include "avr_at-09.h" //############################# //Globals //############################# int main() { unsigned char* tx_buffer[16]; unsigned char* rx_buffer[16]; led_blink(); led_blink(); led_blink(); _delay_ms(1000); init_usart0(); //enable interrupts sei(); while(1) { led_blink(); } return 0; } //############################# //FUNCTIONS //############################# /* * Input: None * Output: None * Description: init usart0 hardware in async mode */ void init_usart0(void) { DDRB |= (1<>8); UBRR0L |= (uint8_t) BT_UBRR; //Enable recv and Transmit pins, overrides other uses. //IN the usart control and status register 0B UCSR0B = (1<