Subversion Repositories svn.mios32

Rev

Rev 1919 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1919 Rev 2425
Line 1... Line 1...
1
// $Id: app.c 1919 2014-01-08 19:13:48Z tk $
1
// $Id: app.c 2425 2016-11-03 00:44:22Z tk $
2
/*
2
/*
3
 * MIOS32 Tutorial #006: RTOS Tasks
3
 * MIOS32 Tutorial #006: RTOS Tasks
4
 * see README.txt for details
4
 * see README.txt for details
5
 *
5
 *
6
 * ==========================================================================
6
 * ==========================================================================
Line 47... Line 47...
47
  int pin;
47
  int pin;
48
  for(pin=0; pin<12; ++pin)
48
  for(pin=0; pin<12; ++pin)
49
    MIOS32_BOARD_J5_PinInit(pin, MIOS32_BOARD_PIN_MODE_INPUT_PU);
49
    MIOS32_BOARD_J5_PinInit(pin, MIOS32_BOARD_PIN_MODE_INPUT_PU);
50
50
51
  // start task
51
  // start task
52
  xTaskCreate(TASK_J5_Scan, (signed portCHAR *)"J5_Scan", configMINIMAL_STACK_SIZE, NULL, PRIORITY_TASK_J5_SCAN, NULL);
52
  xTaskCreate(TASK_J5_Scan, "J5_Scan", configMINIMAL_STACK_SIZE, NULL, PRIORITY_TASK_J5_SCAN, NULL);
53
}
53
}
54
54
55
55
56
/////////////////////////////////////////////////////////////////////////////
56
/////////////////////////////////////////////////////////////////////////////
57
// This task is running endless in background
57
// This task is running endless in background