pcb and initial code from https://github.com/das-labor/borgware-2d.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
58 lines
776 B
58 lines
776 B
16 years ago
|
|
||
|
#include <setjmp.h>
|
||
|
#include <avr/interrupt.h>
|
||
|
#include <stdio.h>
|
||
|
|
||
16 years ago
|
#include "config.h"
|
||
16 years ago
|
#include "borg_hw/borg_hw.h"
|
||
16 years ago
|
// #include "can/borg_can.h"
|
||
16 years ago
|
#include "random/prng.h"
|
||
|
#include "random/persistentCounter.h"
|
||
16 years ago
|
#include "display_loop.h"
|
||
16 years ago
|
#include "pixel.h"
|
||
|
|
||
|
#ifdef JOYSTICK_SUPPORT
|
||
|
#include "joystick/joystick.h"
|
||
|
#endif
|
||
16 years ago
|
|
||
15 years ago
|
#ifdef CAN_SUPPORT
|
||
|
#include "can/borg_can.h"
|
||
|
#endif
|
||
|
|
||
13 years ago
|
#ifdef RFM12_SUPPORT
|
||
|
#include "rfm12/borg_rfm12.h"
|
||
|
#endif
|
||
|
|
||
16 years ago
|
int main (void){
|
||
|
clear_screen(0);
|
||
|
|
||
|
#ifdef RANDOM_SUPPORT
|
||
|
srandom32(percnt_get());
|
||
|
percnt_inc();
|
||
|
#endif
|
||
|
|
||
13 years ago
|
#ifdef RFM12_SUPPORT
|
||
|
borg_rfm12_init();
|
||
|
#endif
|
||
|
|
||
16 years ago
|
borg_hw_init();
|
||
|
|
||
16 years ago
|
#ifdef CAN_SUPPORT
|
||
|
bcan_init();
|
||
|
#endif
|
||
|
|
||
|
#ifdef JOYSTICK_SUPPORT
|
||
|
joy_init();
|
||
|
#endif
|
||
|
|
||
|
#ifdef UART_SUPPORT
|
||
|
uart_init();
|
||
|
#endif
|
||
|
|
||
|
sei();
|
||
|
|
||
16 years ago
|
display_loop();
|
||
16 years ago
|
|
||
14 years ago
|
return 0;
|
||
16 years ago
|
}
|