40 lines
516 B
C
40 lines
516 B
C
|
|
#include <setjmp.h>
|
|
#include <avr/interrupt.h>
|
|
#include <stdio.h>
|
|
|
|
#include "config.h"
|
|
#include "borg_hw/borg_hw.h"
|
|
#include "can/borg_can.h"
|
|
#include "random/prng.h"
|
|
#include "random/persistentCounter.h"
|
|
#include "display_loop.h"
|
|
|
|
int main (void){
|
|
clear_screen(0);
|
|
|
|
borg_hw_init();
|
|
|
|
#ifdef RANDOM_SUPPORT
|
|
srandom32(percnt_get());
|
|
percnt_inc();
|
|
#endif
|
|
|
|
#ifdef CAN_SUPPORT
|
|
bcan_init();
|
|
#endif
|
|
|
|
#ifdef JOYSTICK_SUPPORT
|
|
joy_init();
|
|
#endif
|
|
|
|
#ifdef UART_SUPPORT
|
|
uart_init();
|
|
#endif
|
|
|
|
sei();
|
|
|
|
display_loop();
|
|
|
|
}
|