Subversion Repositories svn.mios32

Rev

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

Rev 1412 Rev 2425
Line 1... Line 1...
1
// $Id: app.c 1412 2012-01-28 14:50:58Z tk $
1
// $Id: app.c 2425 2016-11-03 00:44:22Z tk $
2
/*
2
/*
3
 * SPI J16 Slave Polling
3
 * SPI J16 Slave Polling
4
 *
4
 *
5
 * ==========================================================================
5
 * ==========================================================================
6
 *
6
 *
Line 57... Line 57...
57
57
58
  // init SPI port
58
  // init SPI port
59
  MIOS32_SPI_TransferModeInit(SLAVE_SPI, MIOS32_SPI_MODE_SLAVE_CLK1_PHASE1, MIOS32_SPI_PRESCALER_128);
59
  MIOS32_SPI_TransferModeInit(SLAVE_SPI, MIOS32_SPI_MODE_SLAVE_CLK1_PHASE1, MIOS32_SPI_PRESCALER_128);
60
60
61
  // start task
61
  // start task
62
  xTaskCreate(TASK_SPI_Handler, (signed portCHAR *)"SPI_Handler", configMINIMAL_STACK_SIZE, NULL, PRIORITY_TASK_SPI_HANDLER, NULL);
62
  xTaskCreate(TASK_SPI_Handler, "SPI_Handler", configMINIMAL_STACK_SIZE, NULL, PRIORITY_TASK_SPI_HANDLER, NULL);
63
}
63
}
64
64
65
65
66
/////////////////////////////////////////////////////////////////////////////
66
/////////////////////////////////////////////////////////////////////////////
67
// This task is running endless in background
67
// This task is running endless in background