From 709869f8ce221ae29fc72d808b5c8720b20ca2cf Mon Sep 17 00:00:00 2001 From: Pat Hickey Date: Thu, 6 Dec 2012 10:45:45 -0800 Subject: [PATCH] AP_HAL: use sized ints in GPIO --- libraries/AP_HAL/GPIO.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libraries/AP_HAL/GPIO.h b/libraries/AP_HAL/GPIO.h index 7d7fe051a7..6d0200c63d 100644 --- a/libraries/AP_HAL/GPIO.h +++ b/libraries/AP_HAL/GPIO.h @@ -26,11 +26,11 @@ public: virtual uint8_t read(uint8_t pin) = 0; virtual void write(uint8_t pin, uint8_t value) = 0; /* Alternative interface: */ - virtual AP_HAL::DigitalSource* channel(int n) = 0; + virtual AP_HAL::DigitalSource* channel(uint16_t n) = 0; /* Interrupt interface: */ - virtual bool attach_interrupt( - int interrupt_num, AP_HAL::Proc p, int mode) = 0; + virtual bool attach_interrupt(uint8_t interrupt_num, AP_HAL::Proc p, + uint8_t mode) = 0; }; #endif // __AP_HAL_GPIO_H__