diff options
author | Marti Bolivar <mbolivar@leaflabs.com> | 2012-06-13 11:47:10 -0400 |
---|---|---|
committer | Marti Bolivar <mbolivar@leaflabs.com> | 2012-06-13 11:54:42 -0400 |
commit | 457f448bf775202d18d3d52662401ca8237cf453 (patch) | |
tree | ebf19434283d3af27ee0c54794c27c2c24b91d78 /wirish | |
parent | 0c9d46d11f77f4737a767b2f95a9b40725b2fd97 (diff) | |
download | librambutan-457f448bf775202d18d3d52662401ca8237cf453.tar.gz librambutan-457f448bf775202d18d3d52662401ca8237cf453.zip |
HardwareSPI: add a c_dev().
Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
Diffstat (limited to 'wirish')
-rw-r--r-- | wirish/include/wirish/HardwareSPI.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/wirish/include/wirish/HardwareSPI.h b/wirish/include/wirish/HardwareSPI.h index 89cf166..a1a4a73 100644 --- a/wirish/include/wirish/HardwareSPI.h +++ b/wirish/include/wirish/HardwareSPI.h @@ -184,6 +184,14 @@ public: */ uint8 nssPin(void); + /* Escape hatch */ + + /** + * @brief Get a pointer to the underlying libmaple spi_dev for + * this HardwareSPI instance. + */ + spi_dev* c_dev(void) { return this->spi_d; } + /* -- The following methods are deprecated --------------------------- */ /** |