Subversion Repositories svn.mios32

Rev

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

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