コード例 #1
1
ファイル: main.c プロジェクト: jannson/crazypony
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
ファイル: usb.c プロジェクト: iperry/libmaple
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.c プロジェクト: xlongfeng/watertower
/*
 * 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>");
    }
  }
}