From 457f448bf775202d18d3d52662401ca8237cf453 Mon Sep 17 00:00:00 2001 From: Marti Bolivar Date: Wed, 13 Jun 2012 11:47:10 -0400 Subject: HardwareSPI: add a c_dev(). Signed-off-by: Marti Bolivar --- wirish/include/wirish/HardwareSPI.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'wirish/include') 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 --------------------------- */ /** -- cgit v1.2.3