|
Contiki-NG
|
Implementation of the cc2538 SPI peripheral driver. More...
#include "contiki.h"#include "reg.h"#include "dev/spi-arch-legacy.h"#include "sys/cc.h"#include "dev/ioc.h"#include "dev/sys-ctrl.h"#include "dev/spi-legacy.h"#include "dev/ssi.h"#include "dev/gpio.h"Go to the source code of this file.
Functions | |
Arch-specific SPI functions | |
| void | spix_init (uint8_t spi) |
| Initialize the SPI bus for the instance given. More... | |
| void | spix_enable (uint8_t spi) |
| Enables the SPI peripheral for the instance given. | |
| void | spix_disable (uint8_t spi) |
| Disables the SPI peripheral for the instance given. More... | |
| void | spix_set_mode (uint8_t spi, uint32_t frame_format, uint32_t clock_polarity, uint32_t clock_phase, uint32_t data_size) |
| Configure the SPI data and clock polarity and the data size for the instance given. More... | |
| void | spix_set_clock_freq (uint8_t spi, uint32_t freq) |
| Sets the SPI clock frequency of the given SSI instance. More... | |
| void | spix_cs_init (uint8_t port, uint8_t pin) |
| Configure a GPIO to be the chip select pin. More... | |
Implementation of the cc2538 SPI peripheral driver.
Definition in file spi-legacy.c.
1.8.13