firmata: extended data types on pins to allow subplatform usage

Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:
Mihai Tudor Panu
2016-12-08 15:10:36 -08:00
parent 130cb822e4
commit dfc7a710d4
34 changed files with 44 additions and 44 deletions

View File

@@ -34,14 +34,14 @@
using namespace upm;
NRF24L01::NRF24L01 (uint8_t cs, uint8_t ce)
NRF24L01::NRF24L01 (int cs, int ce)
:m_spi(0), m_csnPinCtx(cs), m_cePinCtx(ce)
{
init (cs, ce);
}
void
NRF24L01::init (uint8_t chip_select, uint8_t chip_enable) {
NRF24L01::init (int chip_select, int chip_enable) {
mraa::Result error = mraa::SUCCESS;
m_csn = chip_select;