Skip to content

Commit

Permalink
Removed reset states from comm_fpga_ss
Browse files Browse the repository at this point in the history
  • Loading branch information
makestuff committed Jan 25, 2014
1 parent 2f7ce5e commit d522858
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
1 change: 0 additions & 1 deletion firmware/avr/init.inc

This file was deleted.

5 changes: 1 addition & 4 deletions firmware/avr/usart.c
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,6 @@ void usartEnable(void) {
USART_OUT |= bmTX; // TX high
USART_OUT &= ~bmXCK; // CK low
USART_DDR |= (bmTX | bmXCK); // TX & XCK are outputs
USART_OUT &= ~bmTX; // TX low - FPGA in S_RESET1
USART_OUT |= bmTX; // TX high - FPGA in S_IDLE
UBRR1H = 0x00;
UBRR1L = 0x00; // 8M sync
UCSR1A = (1<<U2X1);
Expand All @@ -144,11 +142,10 @@ void usartEnable(void) {
}

void usartDisable(void) {
USART_DDR &= ~(bmRX | bmTX | bmXCK); // RX, TX & XCK all inputs (therefore float high).
UCSR1A = 0x00;
UCSR1B = 0x00;
UCSR1C = 0x00;
USART_DDR &= ~(bmRX | bmTX | bmXCK);
USART_OUT &= ~(bmRX | bmTX | bmXCK);
}

bool usartIsReady(void) {
Expand Down

0 comments on commit d522858

Please sign in to comment.