add first main.c/.h to slave

master
Matthias Merz 15 years ago
parent 57b81079ee
commit 5f91679c07

@ -0,0 +1,22 @@
#include "main.h"
#include "spi.h"
void hardinit() {
/* initializes the hardware */
sei();
}
void softinit() {
}
int __attribute__((noreturn)) main(void) {
hardinit();
softinit();
for(;;){
}
}

@ -0,0 +1,14 @@
#ifndef __MAIN_H
#define __MAIN_H
#include <stdint.h>
#include <avr/io.h>
#include <avr/interrupt.h>
#include <avr/pgmspace.h>
#include <avr/eeprom.h>
#include <util/delay.h>
#include <util/atomic.h>
#include <stdio.h>
#define SOFTTIMERNUMS 4
#endif //__MAIN_H
Loading…
Cancel
Save