Revision 213 trunk/cardbox/rs485_int.h
| rs485_int.h (revision 213) | ||
|---|---|---|
| 30 | 30 |
#include <avr/interrupt.h> |
| 31 | 31 |
#include <stdint.h> |
| 32 | 32 |
/** **/ |
| 33 |
#define UART_TX_OFF 0 |
|
| 34 |
#define UART_TX_ON 1 |
|
| 33 |
#define RS485_TX_OFF 0 |
|
| 34 |
#define RS485_TX_ON 1 |
|
| 35 | 35 |
|
| 36 | 36 |
/** @brief RX Pin for the UART **/ |
| 37 | 37 |
#define RX _BV(PORTD0) |
| 38 | 38 |
#define TX _BV(PORTD1) |
| 39 |
#define TX_EN _BV(PORTD5) |
|
| 39 |
#define TX_EN _BV(PORTD2) |
|
| 40 | 40 |
|
| 41 | 41 |
/** |
| 42 | 42 |
* @brief This si the value to pass into UBRR tos et the baudrate. |
Also available in: Unified diff