Subversion Repositories HomeAutomation

Rev

Rev 2214 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed

Rev 2214 Rev 2236
Line 254... Line 254...
254
    /* Initialize USART in SPI-mode */
254
    /* Initialize USART in SPI-mode */
255
    UBRR0 = 0;
255
    UBRR0 = 0;
256
    USART_SPI_XCK_DDR |= (1<<USART_SPI_XCK); // xck (sck) output
256
    USART_SPI_XCK_DDR |= (1<<USART_SPI_XCK); // xck (sck) output
257
    UCSR0C = (1<<UMSEL01)|(1<<UMSEL00)|(0<<UCPHA0)|(0<<UCPOL0);
257
    UCSR0C = (1<<UMSEL01)|(1<<UMSEL00)|(0<<UCPHA0)|(0<<UCPOL0);
258
    UCSR0B = (1<<RXEN0)|(1<<TXEN0);
258
    UCSR0B = (1<<RXEN0)|(1<<TXEN0);
259
    UBRR0 = 3;
259
    UBRR0 = 1;
260
 
260
 
261
    dotmatrixClear();
261
    dotmatrixClear();
262
 
262
 
263
    GrLcdState.color = GLCD_COLOR_BLACK;
263
    GrLcdState.color = GLCD_COLOR_BLACK;
264
}
264
}