mirror of
https://github.com/brmlab/edubrm.git
synced 2025-06-08 04:43:59 +02:00
spi patch SCK
This commit is contained in:
parent
1271571cb0
commit
7cecd6e73d
1 changed files with 2 additions and 2 deletions
|
@ -46,8 +46,8 @@ LPC_IOCON->SWCLK_PIO0_10 |= 0x02;>/* SSP CLK */
|
|||
#endif
|
||||
|
||||
// This register is used to select a pin among three possible choices for the SSP SCK function.
|
||||
LPC_IOCON->SCKLOC = 1; // Selects SCK function for pin PIO2_11/SCK
|
||||
LPC_IOCON->PIO2_11 = 1;
|
||||
LPC_IOCON->SCKLOC = 0; // Selects SCK function for pin PIO2_11/SCK
|
||||
LPC_IOCON->PIO0_10 = 2;
|
||||
|
||||
// set SSEL as GPIO that the master has total control of the sequence
|
||||
LPC_IOCON->PIO0_2 &= ~0x07;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue