https://github.com/cesanta/simplelink_mbed
simplelink SPI driver for mbed
https://github.com/cesanta/simplelink_mbed
Last synced: 11 months ago
JSON representation
simplelink SPI driver for mbed
- Host: GitHub
- URL: https://github.com/cesanta/simplelink_mbed
- Owner: cesanta
- Created: 2016-10-20T23:22:26.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-12-27T15:23:50.000Z (over 9 years ago)
- Last Synced: 2025-07-02T12:48:13.484Z (about 1 year ago)
- Language: C
- Size: 163 KB
- Stars: 2
- Watchers: 8
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SimpleLink Host Interface for ARM mbed 5
This repository contains a TI SimpleLink Host Interface driver for mbed-os 5.
It allows you to talk to a CC3100 daughterboard via a SPI interface.
It uses the mbed HAL, thus it works on all targets supported by mbed.
You only have to pass the pin numbers for the SPI and control signals.
The SimpleLink Host Interface is documented very clearly at http://processors.wiki.ti.com/index.php/CC31xx_Host_Interface
TL;DR:
* 6 wires, of which:
** 4 SPI wires (`SPI_MOSI`, `SPI_MISO`, `SPI_SCK`, `SPI_CS`)
** 1 hibernate wire (basically a reset line)
** 1 IRQ line
```cpp
SimpleLinkInterface wifi(PG_10, PG_11);
```
You can pass a custom frequency:
```cpp
SimpleLinkInterface wifi(PG_10, PG_11, 20000000);
```
Or use another SPI port:
```cpp
SimpleLinkInterface wifi(PG_10, PG_11, SPI_MOSI, SPI_MISO, SPI_SCK, SPI_CS);
```
## Limitations
* no support for disconnect
* no support for wifi scan
* no support for mbed Socket interface; you can either call the native SimpleLink API or use Mongoose (https://github.com/cesanta/mongoose)