mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AP_HAL: use sized ints in GPIO
This commit is contained in:
parent
765e2da8a7
commit
709869f8ce
@ -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__
|
||||||
|
Loading…
Reference in New Issue
Block a user