2013-08-26 01:08:00 +02:00
|
|
|
#include <stdlib.h>
|
|
|
|
|
|
|
|
#include <avr/io.h>
|
|
|
|
#define __DELAY_BACKWARD_COMPATIBLE__
|
|
|
|
#include <util/delay.h>
|
|
|
|
|
|
|
|
#include <pentabug/app.h>
|
|
|
|
#include <pentabug/lifecycle.h>
|
|
|
|
|
|
|
|
static void init(void) {
|
2013-08-26 20:39:15 +02:00
|
|
|
_delay_ms(1000);
|
2013-08-26 01:08:00 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static void blinker(void) {
|
2013-08-26 20:39:15 +02:00
|
|
|
PORTD |= 1 << 4;
|
|
|
|
_delay_ms(800);
|
|
|
|
test_stop_app();
|
2013-08-26 01:08:00 +02:00
|
|
|
|
2013-08-26 20:39:15 +02:00
|
|
|
PORTD &= ~(1 << 4);
|
|
|
|
_delay_ms(200);
|
|
|
|
test_stop_app();
|
2013-08-26 01:08:00 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
REGISTER(blinker, init, NULL);
|