Added in some defines for logic

This commit is contained in:
Jake Goodwin 2023-01-16 19:43:48 -08:00
parent 830c1028c0
commit 32586999d0
1 changed files with 14 additions and 5 deletions

View File

@ -4,7 +4,7 @@
* Description: AT-09 Bluetooth module library for AVR micro crontrollers.
* Filename: avr_at-09.h
*/
#define __AVR_ATmega328P__
#include <inttypes.h>
#include <stdint.h>
@ -17,9 +17,9 @@
* AVR D1 --> AT-09 RX
* AVR D2 --> AT-09 State
*/
#define FOSC 8000000
#define BLE_BAUD 9600
#define BT_UBRR FOSC/16/BLE_BAUD - 1
#define FOSC 1000000UL
#define BLE_BAUD 4800
#define BT_UBRR ((FOSC)/(BLE_BAUD*16UL)-1)
#define TX_PIN PIND1
#define TX_DDR DDD1
@ -35,9 +35,18 @@
//#############################
//TYPES
//MACROS
//#############################
#define USE_U2X 0
#define STOP_BITS 2
#define DATA_BITS 8
#define CLOCK_POL 0
#define PARITY_BITS 0
#define PARITY_POS 0
//#############################
//FUNCTION PROTOTYPES
//#############################