comparison testavr.c @ 30:48056516b3eb

Make sure our outputs are pulled high.
author darius
date Mon, 10 Apr 2006 17:23:51 +0930
parents 2b0ed085b95b
children 25fa387ef7e9
comparison
equal deleted inserted replaced
29:02b67e09ca12 30:48056516b3eb
139 DDRC = 0xff; 139 DDRC = 0xff;
140 PORTC = 0x00; 140 PORTC = 0x00;
141 141
142 /* GPIO (2:7) */ 142 /* GPIO (2:7) */
143 DDRD = 0xfc; 143 DDRD = 0xfc;
144 PORTD = 0x00; 144 PORTD = 0xfc;
145 145
146 /* Init UART */ 146 /* Init UART */
147 UBRRH = UART_BAUD_SELECT(UART_BAUD_RATE, F_CPU) >> 8; 147 UBRRH = UART_BAUD_SELECT(UART_BAUD_RATE, F_CPU) >> 8;
148 UBRRL = (uint8_t)UART_BAUD_SELECT(UART_BAUD_RATE, F_CPU); 148 UBRRL = (uint8_t)UART_BAUD_SELECT(UART_BAUD_RATE, F_CPU);
149 149