SPI macht interrupt

This commit is contained in:
Tristan Krause 2019-04-03 11:38:15 +02:00
parent 266d90df56
commit fd2cb56ef3
11 changed files with 605 additions and 538 deletions

View file

@ -10,3 +10,20 @@ ISR(USART0_TX_vect)
{
usart.handleTX();
}
ISR(SPI_STC_vect)
{
spi.handleTransfer();
}
/*
ISR(BADISR_vect)
{
DDRB |= _BV(PB0);
while(1)
{
PORTB ^= _BV(PB0);
_delay_ms(100);
}
}
*/