Plane: removed some compat code

fixes warnings
This commit is contained in:
Andrew Tridgell 2013-09-30 20:45:50 +10:00
parent 24099a520d
commit eef693f243
3 changed files with 1 additions and 20 deletions

View File

@ -684,10 +684,6 @@ AP_Mount camera_mount(&current_loc, g_gps, &ahrs, 0);
AP_Mount camera_mount2(&current_loc, g_gps, &ahrs, 1);
#endif
#if CAMERA == ENABLED
//pinMode(camtrig, OUTPUT); // these are free pins PE3(5), PH3(15), PH6(18), PB4(23), PB5(24), PL1(36), PL3(38), PA6(72), PA7(71), PK0(89), PK1(88), PK2(87), PK3(86), PK4(83), PK5(84), PK6(83), PK7(82)
#endif
////////////////////////////////////////////////////////////////////////////////
// Top-level logic
////////////////////////////////////////////////////////////////////////////////

View File

@ -19,18 +19,3 @@ static uint32_t micros()
return hal.scheduler->micros();
}
static void pinMode(uint8_t pin, uint8_t output)
{
hal.gpio->pinMode(pin, output);
}
static void digitalWrite(uint8_t pin, uint8_t out)
{
hal.gpio->write(pin,out);
}
static uint8_t digitalRead(uint8_t pin)
{
return hal.gpio->read(pin);
}

View File

@ -171,7 +171,7 @@ static void init_ardupilot()
relay.init();
#if FENCE_TRIGGERED_PIN > 0
pinMode(FENCE_TRIGGERED_PIN, OUTPUT);
hal.gpio->pinMode(FENCE_TRIGGERED_PIN, OUTPUT);
digitalWrite(FENCE_TRIGGERED_PIN, LOW);
#endif