cc2538: Allow for configuration of processor speed
This commit is contained in:
parent
730bda2001
commit
d8efa8428c
7 changed files with 107 additions and 38 deletions
|
@ -226,8 +226,8 @@ spix_init(uint8_t spi)
|
|||
/* Start by disabling the peripheral before configuring it */
|
||||
REG(regs->base + SSI_CR1) = 0;
|
||||
|
||||
/* Set the IO clock as the SSI clock */
|
||||
REG(regs->base + SSI_CC) = 1;
|
||||
/* Set the system clock as the SSI clock */
|
||||
REG(regs->base + SSI_CC) = 0;
|
||||
|
||||
/* Set the mux correctly to connect the SSI pins to the correct GPIO pins */
|
||||
ioc_set_sel(regs->clk.port,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue