Logs port from gruvin9x

JETI ok on simu
Sticks mode problem in Trims2Offsets function
PXX bug fix pulled from er9x
Optimizations
This commit is contained in:
bsongis
2012-02-21 16:36:57 +00:00
parent 97723c5732
commit 6f1f234b40
11 changed files with 155 additions and 52 deletions
+5 -3
View File
@@ -37,7 +37,7 @@ uint16_t jeti_keys = JETI_KEY_NOCHANGE;
uint8_t JetiBuffer[32]; // 32 characters
uint8_t JetiBufferReady;
#ifndef SIMU
ISR (USART0_RX_vect)
{
uint8_t stat;
@@ -76,8 +76,7 @@ ISR (USART0_RX_vect)
}
}
#endif
void JETI_Init (void)
{
@@ -87,6 +86,8 @@ void JETI_Init (void)
DDRE &= ~(1 << DDE0); // set RXD0 pin as input
PORTE &= ~(1 << PORTE0); // disable pullup on RXD0 pin
#ifndef SIMU
#undef BAUD
#define BAUD 9600
#include <util/setbaud.h>
@@ -102,6 +103,7 @@ void JETI_Init (void)
// flush receive buffer
while ( UCSR0A & (1 << RXC0) ) UDR0;
#endif
}