Updated PX4 use / API of low level GPIO and other hardware-centric system facilities

This commit is contained in:
Lorenz Meier
2016-05-28 14:56:17 +02:00
parent c2e2645c82
commit 7398164fcc
89 changed files with 1294 additions and 1087 deletions
+3 -3
View File
@@ -118,7 +118,7 @@ TEST_PPM::~TEST_PPM()
int
TEST_PPM::init()
{
stm32_configgpio(TEST_PPM_PIN);
px4_arch_configgpio(TEST_PPM_PIN);
start();
return OK;
}
@@ -148,11 +148,11 @@ void
TEST_PPM::do_out(void)
{
if ((_call_times % 2) == 0) {
stm32_gpiowrite(TEST_PPM_PIN, false);
px4_arch_gpiowrite(TEST_PPM_PIN, false);
hrt_call_after(&_call, _values[_call_times / 2] - _plus_width, (hrt_callout)&TEST_PPM::loops, this);
} else {
stm32_gpiowrite(TEST_PPM_PIN, true);
px4_arch_gpiowrite(TEST_PPM_PIN, true);
hrt_call_after(&_call, _plus_width, (hrt_callout)&TEST_PPM::loops, this);
}