You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
57 lines
784 B
57 lines
784 B
|
|
#include "GPIO.h" |
|
|
|
using namespace SMACCM; |
|
|
|
SMACCMGPIO::SMACCMGPIO() |
|
{ |
|
} |
|
|
|
void SMACCMGPIO::init() |
|
{ |
|
} |
|
|
|
void SMACCMGPIO::pinMode(uint8_t pin, uint8_t output) |
|
{ |
|
} |
|
|
|
uint8_t SMACCMGPIO::read(uint8_t pin) |
|
{ |
|
return 0; |
|
} |
|
|
|
void SMACCMGPIO::write(uint8_t pin, uint8_t value) |
|
{ |
|
} |
|
|
|
/* Alternative interface: */ |
|
AP_HAL::DigitalSource* SMACCMGPIO::channel(uint16_t n) |
|
{ |
|
return NULL; |
|
} |
|
|
|
/* Interrupt interface: */ |
|
bool SMACCMGPIO::attach_interrupt(uint8_t interrupt_num, AP_HAL::Proc p, |
|
uint8_t mode) |
|
{ |
|
return true; |
|
} |
|
|
|
SMACCMDigitalSource::SMACCMDigitalSource(uint8_t v) : |
|
_v(v) |
|
{ |
|
} |
|
|
|
void SMACCMDigitalSource::mode(uint8_t output) |
|
{ |
|
} |
|
|
|
uint8_t SMACCMDigitalSource::read() |
|
{ |
|
return _v; |
|
} |
|
|
|
void SMACCMDigitalSource::write(uint8_t value) |
|
{ |
|
_v = value; |
|
}
|
|
|