Improve wording, fix warnigs in the SSI/SPI docs
This commit is contained in:
parent
a93a8912c2
commit
8751e55c94
2 changed files with 11 additions and 9 deletions
|
@ -31,7 +31,7 @@
|
|||
* @{
|
||||
*
|
||||
* \file
|
||||
* Implementation of the cc2538 SPI peripheral
|
||||
* Implementation of the cc2538 SPI peripheral driver
|
||||
*/
|
||||
#include "contiki.h"
|
||||
#include "reg.h"
|
||||
|
@ -126,7 +126,9 @@ spi_disable(void)
|
|||
REG(SYS_CTRL_RCGCSSI) &= ~1;
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
void spi_set_mode(uint32_t frame_format, uint32_t clock_polarity, uint32_t clock_phase, uint32_t data_size)
|
||||
void
|
||||
spi_set_mode(uint32_t frame_format, uint32_t clock_polarity,
|
||||
uint32_t clock_phase, uint32_t data_size)
|
||||
{
|
||||
/* Disable the SSI peripheral to configure it */
|
||||
REG(SSI0_BASE + SSI_CR1) = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue