2012-12-12 20:16:47 -04:00
|
|
|
|
|
|
|
|
|
|
|
void delay(uint32_t ms)
|
|
|
|
{
|
|
|
|
hal.scheduler->delay(ms);
|
|
|
|
}
|
|
|
|
|
|
|
|
void mavlink_delay(uint32_t ms)
|
|
|
|
{
|
|
|
|
hal.scheduler->delay(ms);
|
|
|
|
}
|
|
|
|
|
|
|
|
uint32_t millis()
|
|
|
|
{
|
|
|
|
return hal.scheduler->millis();
|
|
|
|
}
|
|
|
|
|
|
|
|
uint32_t micros()
|
|
|
|
{
|
|
|
|
return hal.scheduler->micros();
|
|
|
|
}
|
|
|
|
|
|
|
|
void pinMode(uint8_t pin, uint8_t output)
|
|
|
|
{
|
|
|
|
hal.gpio->pinMode(pin, output);
|
|
|
|
}
|
|
|
|
|
2012-12-12 21:25:09 -04:00
|
|
|
void digitalWriteFast(uint8_t pin, uint8_t out)
|
|
|
|
{
|
|
|
|
hal.gpio->write(pin,out);
|
|
|
|
}
|
|
|
|
|
2012-12-12 20:16:47 -04:00
|
|
|
void digitalWrite(uint8_t pin, uint8_t out)
|
|
|
|
{
|
|
|
|
hal.gpio->write(pin,out);
|
|
|
|
}
|
|
|
|
|
2012-12-12 21:25:09 -04:00
|
|
|
uint8_t digitalReadFast(uint8_t pin)
|
|
|
|
{
|
|
|
|
return hal.gpio->read(pin);
|
|
|
|
}
|
|
|
|
|
2012-12-12 20:16:47 -04:00
|
|
|
uint8_t digitalRead(uint8_t pin)
|
|
|
|
{
|
|
|
|
return hal.gpio->read(pin);
|
|
|
|
}
|
|
|
|
|