ardupilot/ArduPlane/compat.pde

37 lines
526 B
Plaintext
Raw Normal View History

2012-12-04 18:22:21 -04:00
static void delay(uint32_t ms)
2012-12-04 18:22:21 -04:00
{
hal.scheduler->delay(ms);
}
static void mavlink_delay(uint32_t ms)
2012-12-04 18:22:21 -04:00
{
hal.scheduler->delay(ms);
}
static uint32_t millis()
2012-12-04 18:22:21 -04:00
{
return hal.scheduler->millis();
}
static uint32_t micros()
2012-12-04 18:22:21 -04:00
{
return hal.scheduler->micros();
}
static void pinMode(uint8_t pin, uint8_t output)
2012-12-04 18:22:21 -04:00
{
hal.gpio->pinMode(pin, output);
}
static void digitalWrite(uint8_t pin, uint8_t out)
2012-12-04 18:22:21 -04:00
{
hal.gpio->write(pin,out);
}
static uint8_t digitalRead(uint8_t pin)
2012-12-04 18:22:21 -04:00
{
return hal.gpio->read(pin);
}