Restructure files
This commit is contained in:
parent
8c7b62dc2d
commit
b5f86d5972
13 changed files with 29 additions and 20 deletions
23
firmware/src/main.c
Normal file
23
firmware/src/main.c
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
#include "config.h"
|
||||
#include "uart.h"
|
||||
#include "eeprom.h"
|
||||
#include "protocol.h"
|
||||
|
||||
#include <util/delay.h>
|
||||
|
||||
int main(void) {
|
||||
// Init components (UART, EEPROM, ...)
|
||||
uartInit();
|
||||
eepromInit();
|
||||
|
||||
// Initial pause (EEPROM needs 5ms startup time)
|
||||
_delay_ms(100);
|
||||
|
||||
// Write initial message via UART
|
||||
uartPutString("INFO -- EEPROM programmer by binaryDiv\r\n");
|
||||
|
||||
while(1) {
|
||||
// Run main loop endlessly
|
||||
protocolMainLoop();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue