mirror of
https://github.com/eclipse/upm.git
synced 2025-12-15 13:26:07 +03:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user