mirror of
https://github.com/eclipse/upm.git
synced 2025-07-02 01:41:12 +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;
|
||||
|
@ -192,7 +192,7 @@ class NRF24L01 {
|
||||
*
|
||||
* @param cs Chip select pin
|
||||
*/
|
||||
NRF24L01 (uint8_t cs, uint8_t ce);
|
||||
NRF24L01 (int cs, int ce);
|
||||
|
||||
/**
|
||||
* Returns the name of the component
|
||||
@ -208,7 +208,7 @@ class NRF24L01 {
|
||||
* @param chipSelect Sets up the chip select pin
|
||||
* @param chipEnable Sets up the chip enable pin
|
||||
*/
|
||||
void init (uint8_t chipSelect, uint8_t chipEnable);
|
||||
void init (int chipSelect, int chipEnable);
|
||||
|
||||
/**
|
||||
* Configures the NRF24L01 transceiver
|
||||
|
Reference in New Issue
Block a user