removed baud rate define and other non_useful stuff
This commit is contained in:
parent
8d4fee5c7e
commit
a702c52327
|
@ -7,6 +7,9 @@
|
|||
//#define __AVR_ATmega328P__
|
||||
#include <inttypes.h>
|
||||
#include <stdint.h>
|
||||
#include <avr/io.h>
|
||||
#include <util/delay.h>
|
||||
#include <avr/interrupt.h>
|
||||
|
||||
//#############################
|
||||
//PIN DEFINES AND CONSTS
|
||||
|
@ -24,10 +27,6 @@
|
|||
#define F_CPU 14745600UL
|
||||
#endif
|
||||
|
||||
#ifndef BUAD
|
||||
#define BAUD 4800
|
||||
#endif
|
||||
|
||||
#define F_UBRR ((F_CPU)/(BAUD*16UL)-1)
|
||||
|
||||
#define TX_PIN PIND1
|
||||
|
@ -48,8 +47,10 @@
|
|||
//#############################
|
||||
|
||||
#define USE_U2X 0
|
||||
#define CARRIAGE_RETURN 1
|
||||
#define LINE_FEED 1
|
||||
//#define CARRIAGE_RETURN 1
|
||||
//#define LINE_FEED 1
|
||||
|
||||
#define DEBUG 1
|
||||
|
||||
#if DEBUG == 1
|
||||
#define debug(data, data_len) serial0_write(data, data_len)
|
||||
|
@ -61,11 +62,11 @@
|
|||
//FUNCTION PROTOTYPES
|
||||
//#############################
|
||||
void init_usart0(void);
|
||||
void tx_usart0(unsigned char data);
|
||||
unsigned char rx_usart0(void);
|
||||
void tx_usart0( char data);
|
||||
char rx_usart0(void);
|
||||
|
||||
void serial0_write(unsigned char* buffer, uint8_t write_length);
|
||||
void serial0_read(unsigned char* buffer, uint8_t buf_length);
|
||||
void serial0_write( char* buffer, uint8_t write_length);
|
||||
void serial0_read( char* buffer, uint8_t buf_length);
|
||||
void serial0_set_baud(uint8_t baud);
|
||||
void seiral0_enable_timeouts(uint8_t ms);
|
||||
void serial0_flush_rxbuf(void);
|
||||
|
|
Loading…
Reference in New Issue