Slightly speed up software USART in the AVRISP project - faster parity computation, ensure received data is byte aligned when receive is complete by throwing away the start bit during reception.
This commit is contained in:
parent
108a22a66a
commit
f0b4d79629
3 changed files with 25 additions and 9 deletions
|
@ -54,7 +54,17 @@
|
|||
|
||||
/* Defines: */
|
||||
#if ((BOARD == BOARD_XPLAIN) || (BOARD == BOARD_XPLAIN_REV1))
|
||||
#define PDI_VIA_HARDWARE_USART
|
||||
// #define PDI_VIA_HARDWARE_USART
|
||||
|
||||
#define BITBANG_PDIDATA_PORT PORTD
|
||||
#define BITBANG_PDIDATA_DDR DDRD
|
||||
#define BITBANG_PDIDATA_PIN PIND
|
||||
#define BITBANG_PDIDATA_MASK (1 << 3)
|
||||
|
||||
#define BITBANG_PDICLOCK_PORT PORTD
|
||||
#define BITBANG_PDICLOCK_DDR DDRD
|
||||
#define BITBANG_PDICLOCK_PIN PIND
|
||||
#define BITBANG_PDICLOCK_MASK (1 << 5)
|
||||
#else
|
||||
#define BITBANG_PDIDATA_PORT PORTB
|
||||
#define BITBANG_PDIDATA_DDR DDRB
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue