pio entfernt & spiegel test routine
This commit is contained in:
parent
b7b3fa6327
commit
13e95264fb
20 changed files with 129 additions and 1056 deletions
12
main.cpp
12
main.cpp
|
@ -2,19 +2,17 @@
|
|||
#include <avr/interrupt.h>
|
||||
#include <util/delay.h>
|
||||
#include <avr/wdt.h>
|
||||
#include "vars.h"
|
||||
#include "global_vars.h"
|
||||
#include "selftest.h"
|
||||
|
||||
|
||||
#define LED B0
|
||||
#define LED PB0
|
||||
|
||||
ISR(WDT_vect)
|
||||
{
|
||||
while(1)
|
||||
{
|
||||
dWrite(LED, HIGH);
|
||||
_delay_ms(200);
|
||||
dWrite(LED, LOW);
|
||||
PORTB ^= _BV(LED);
|
||||
_delay_ms(200);
|
||||
}
|
||||
WDTCSR |= _BV(WDIE);
|
||||
|
@ -36,8 +34,8 @@ void initAll()
|
|||
int main()
|
||||
{
|
||||
/*WDTCSR = _BV(WDIE) | _BV(WDP3) | _BV(WDP0);
|
||||
dMode(LED, OUT);
|
||||
dWrite(LED, LOW);
|
||||
DDRB |= _BV(LED);
|
||||
PORTB &= ~_BV(LED);
|
||||
wdt_reset();
|
||||
sei();*/
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue