Remove missed timer 0 init code in the ISP protocol handler in the AVRISP project. Switch the XPROG protocol target communications handler over to using Timer 1 COMA/COMB ISRs for the two physical layers, rather than COMA/ICR1. Speed up bit-banged USART mode slightly.
This commit is contained in:
parent
8cd7e118e9
commit
022035839e
5 changed files with 138 additions and 119 deletions
|
@ -56,7 +56,29 @@
|
|||
|
||||
/* Defines: */
|
||||
#if ((BOARD == BOARD_XPLAIN) || (BOARD == BOARD_XPLAIN_REV1))
|
||||
#define XPROG_VIA_HARDWARE_USART
|
||||
// #define XPROG_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)
|
||||
|
||||
#define BITBANG_TPIDATA_PORT PORTB
|
||||
#define BITBANG_TPIDATA_DDR DDRB
|
||||
#define BITBANG_TPIDATA_PIN PINB
|
||||
#define BITBANG_TPIDATA_MASK (1 << 3)
|
||||
|
||||
#define BITBANG_TPICLOCK_PORT PORTB
|
||||
#define BITBANG_TPICLOCK_DDR DDRB
|
||||
#define BITBANG_TPICLOCK_PIN PINB
|
||||
#define BITBANG_TPICLOCK_MASK (1 << 1)
|
||||
|
||||
|
||||
#else
|
||||
#define BITBANG_PDIDATA_PORT PORTB
|
||||
#define BITBANG_PDIDATA_DDR DDRB
|
||||
|
@ -130,10 +152,10 @@
|
|||
#define TPI_POINTER_INDIRECT_PI (1 << 2)
|
||||
|
||||
/* Function Prototypes: */
|
||||
void XPROGTarget_EnableTargetTPI(void);
|
||||
void XPROGTarget_EnableTargetPDI(void);
|
||||
void XPROGTarget_DisableTargetTPI(void);
|
||||
void XPROGTarget_EnableTargetTPI(void);
|
||||
void XPROGTarget_DisableTargetPDI(void);
|
||||
void XPROGTarget_DisableTargetTPI(void);
|
||||
void XPROGTarget_SendByte(const uint8_t Byte);
|
||||
uint8_t XPROGTarget_ReceiveByte(void);
|
||||
void XPROGTarget_SendBreak(void);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue