Copter: make compat functions static

this prevents conflicts with libmaple
This commit is contained in:
Andrew Tridgell 2013-09-23 17:06:16 +10:00
parent 4f310aaec8
commit a8796f2f76

View File

@ -1,36 +1,36 @@
void delay(uint32_t ms)
static void delay(uint32_t ms)
{
hal.scheduler->delay(ms);
}
void mavlink_delay(uint32_t ms)
static void mavlink_delay(uint32_t ms)
{
hal.scheduler->delay(ms);
}
uint32_t millis()
static uint32_t millis()
{
return hal.scheduler->millis();
}
uint32_t micros()
static uint32_t micros()
{
return hal.scheduler->micros();
}
void pinMode(uint8_t pin, uint8_t output)
static void pinMode(uint8_t pin, uint8_t output)
{
hal.gpio->pinMode(pin, output);
}
void digitalWrite(uint8_t pin, uint8_t out)
static void digitalWrite(uint8_t pin, uint8_t out)
{
hal.gpio->write(pin,out);
}
uint8_t digitalRead(uint8_t pin)
static uint8_t digitalRead(uint8_t pin)
{
return hal.gpio->read(pin);
}