Пример #1
1
int main() 
{
  //Low level init: Clock and Interrupt controller
  prvClockInit();
  nvicInit();
  initUsecTimer();

  //Launch the system task that will initialize and start everything
  systemLaunch();

  //Start the FreeRTOS scheduler
  vTaskStartScheduler();

  //Should never reach this point!
  while(1);

  return 0;
}
Пример #2
0
void platformInitHardware() {
  //Low level init: Clock and Interrupt controller
  nvicInit();

  //EXTI interrupts
  extiInit();
}
Пример #3
0
// TODO: Implement!
int platformInit(void)
{
  //Low level init: Clock and Interrupt controller
  nvicInit();

  return 0;
}
Пример #4
0
void usbDsbISR(void) {
  NVIC_InitTypeDef NVIC_InitStructure;
  NVIC_InitStructure.NVIC_IRQChannel = USB_LP_IRQ;
  NVIC_InitStructure.NVIC_IRQChannelPreemptionPriority = 0;
  NVIC_InitStructure.NVIC_IRQChannelSubPriority = 0;
  NVIC_InitStructure.NVIC_IRQChannelCmd = FALSE;
  nvicInit(&NVIC_InitStructure);
}
Пример #5
0
/*
 * main: initialize and start the system
 */
int main (void)
{
  rccInit();
  nvicInit();
  
  stdioInit();
  
  printf("\nWater Tower Monitor\n");
  
  blinkyInit();
  multiPointComInit();
  ultrasonicRangingInit();
  
  while (1) {
    int len = readline();
    if (len > 0) {
      runCommand();
    } else if (len < 0) {
      puts("<INTERRUPT>");
    }
  }
}