Fixed incorrect definition of the HID_KEYBOARD_SC_D constant in the HID class driver (thanks to Opendous Inc.).
Add extra comments to the ISPTarget.c source file in the AVRISP-MKII clone project.
This commit is contained in:
parent
46677b4589
commit
0aa950c241
3 changed files with 7 additions and 2 deletions
|
@ -117,6 +117,7 @@ volatile uint8_t SoftSPI_BitsRemaining;
|
|||
/** ISR to handle software SPI transmission and reception */
|
||||
ISR(TIMER1_COMPA_vect, ISR_BLOCK)
|
||||
{
|
||||
/* Check if rising edge (output next bit) or falling edge (read in next bit) */
|
||||
if (!(PINB & (1 << 1)))
|
||||
{
|
||||
if (SoftSPI_Data & (1 << 7))
|
||||
|
@ -178,6 +179,8 @@ void ISPTarget_DisableTargetISP(void)
|
|||
DDRB &= ~((1 << 1) | (1 << 2));
|
||||
PORTB &= ~((1 << 0) | (1 << 3));
|
||||
|
||||
/* Must re-enable rescue clock once software ISP has exited, as the timer for the rescue clock is
|
||||
* re-purposed for software SPI */
|
||||
ISPTarget_ConfigureRescueClock();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue