Project

General

Profile

Revision 198

Added by Kevin Woo about 14 years ago

Fixed a magic number initialization

View differences:

trunk/bootloader/rs485_poll.h
35 35
#define RS485_TX_OFF 0
36 36
#define RS485_TX_ON 1
37 37

  
38
/** 
39
 * @brief This is the value to pass into UBRR to set the baudrate.
40
 *  @note this assumes an 8MHz system clock
41
 */
42
#define BAUD9600    51
43

  
38 44
/** @brief RX Pin for the RS485 */
39 45
#define RX		_BV(PORTD0)
40 46
/** @brief TX Pin for the RS485 */
trunk/bootloader/bootloader.c
70 70
  WDTCSR = 0;
71 71

  
72 72

  
73
  rs485_init(51); //MAGIC NUMBER??
73
  rs485_init(BAUD9600);
74 74

  
75 75
  //set LED pin as output
76 76
  LED_DDR |= 0x07;

Also available in: Unified diff