AP_HAL: use sized ints in GPIO

This commit is contained in:
Pat Hickey 2012-12-06 10:45:45 -08:00 committed by Andrew Tridgell
parent 765e2da8a7
commit 709869f8ce

View File

@ -26,11 +26,11 @@ public:
virtual uint8_t read(uint8_t pin) = 0; virtual uint8_t read(uint8_t pin) = 0;
virtual void write(uint8_t pin, uint8_t value) = 0; virtual void write(uint8_t pin, uint8_t value) = 0;
/* Alternative interface: */ /* Alternative interface: */
virtual AP_HAL::DigitalSource* channel(int n) = 0; virtual AP_HAL::DigitalSource* channel(uint16_t n) = 0;
/* Interrupt interface: */ /* Interrupt interface: */
virtual bool attach_interrupt( virtual bool attach_interrupt(uint8_t interrupt_num, AP_HAL::Proc p,
int interrupt_num, AP_HAL::Proc p, int mode) = 0; uint8_t mode) = 0;
}; };
#endif // __AP_HAL_GPIO_H__ #endif // __AP_HAL_GPIO_H__