Gustavo Jose de Sousa
12423814ef
AP_HAL_AVR: standardize inclusion of libaries headers
...
This commit changes the way libraries headers are included in source files:
- If the header is in the same directory the source belongs to, so the
notation '#include ""' is used with the path relative to the directory
containing the source.
- If the header is outside the directory containing the source, then we use
the notation '#include <>' with the path relative to libraries folder.
Some of the advantages of such approach:
- Only one search path for libraries headers.
- OSs like Windows may have a better lookup time.
10 years ago
Andrew Tridgell
3015356671
HAL_AVR: fixes for HAL_GPIO_ define change
11 years ago
Andrew Tridgell
a5b29f44d5
AP_HAL: added hal.gpio->usb_connected() function
...
this replaces the USB_MUX_PIN on APM2, and works on PX4 and FMUv2
12 years ago
Randy Mackay
ac36a09747
AP_HAL: add toggle to GPIO
12 years ago
tobias
4e7fea787b
HAL_AVR: corrected includes to replace #include "$HEADER" with #inlcude "utility/$HEADER"
...
adding -I for EVERY DIRECTORY isn't desirable
http://gcc.gnu.org/onlinedocs/cpp/Search-Path.html
12 years ago
Andrew Tridgell
eb6c66af7e
AP_HAL: added gpio->analogPinToDigitalPin() API
12 years ago
Pat Hickey
563ca3f79b
AP_HAL_AVR: expose gpio pin 70 for mpu6000 interrupt input
12 years ago
Andrew Tridgell
47358929e2
HAL_AVR: fixed attach_interrupt race condition
12 years ago
Andrew Tridgell
551ff0c8b8
AP_HAL_AVR: prevent build of AVR code on non-AVR platforms
12 years ago
Andrew Tridgell
857c0b69e5
AP_HAL_AVR: fixed interrupt attach for MPU6000
12 years ago
Pat Hickey
ba07ae283f
AP_HAL_AVR: sized ints in GPIO
12 years ago
Pat Hickey
2e32ec3013
AP_HAL_AVR GPIO: rename Arduino to be AVR
12 years ago
Pat Hickey
b7c4cc20ac
GPIO: optimized read, write, and mode for DigitalSource objects
12 years ago
Pat Hickey
11bf533c57
AP_HAL_AVR: implement GPIO::attach_interrupt just for interrupt 6
12 years ago
Pat Hickey
73ccfaf2d7
AP_HAL: implement DigitalSource abstraction
...
* GPIO's complement to AnalogSource
12 years ago
Pat Hickey
e9c5f07db2
AP_HAL: Working GPIO interface & implementation
...
* actually, tested the output only... gotta do input next
12 years ago