Beispiel #1
0
/**
 * Program entry. 
 *
 * Set up the hardware and launch the eventhandler.
 * 
 * Updates the key code
 */
int main(void) {
    hardware_lowlevel_init();
    //~ eint();
    //~ eventhandler(EVENT_hello_world); // enter eventhandler, start event for a first time
    while(1) {
      event_hello_world();
}
}
Beispiel #2
0
void init(void)
{
    hardware_lowlevel_init();
    rtc_init_flag();
    spi_drv_init();
    spi_ext_init();
    drv8301_init();
    pid_init();
    commutate_init();
    motor_init();
    EnableInterrupts;               // enable Interrupts
}