APM:Libraries
Classes | Macros
GPIO.h File Reference
#include <stdint.h>
#include "AP_HAL_Namespace.h"
Include dependency graph for GPIO.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  AP_HAL::DigitalSource
 
class  AP_HAL::GPIO
 

Macros

#define HAL_GPIO_INPUT   0
 
#define HAL_GPIO_OUTPUT   1
 
#define HAL_GPIO_ALT   2
 
#define HAL_GPIO_INTERRUPT_LOW   0
 
#define HAL_GPIO_INTERRUPT_HIGH   1
 
#define HAL_GPIO_INTERRUPT_FALLING   2
 
#define HAL_GPIO_INTERRUPT_RISING   3
 
#define HAL_GPIO_INTERRUPT_BOTH   4
 

Macro Definition Documentation

◆ HAL_GPIO_ALT

#define HAL_GPIO_ALT   2

Definition at line 9 of file GPIO.h.

Referenced by Linux::GPIO_RPI::pinMode().

◆ HAL_GPIO_INPUT

#define HAL_GPIO_INPUT   0

◆ HAL_GPIO_INTERRUPT_BOTH

#define HAL_GPIO_INTERRUPT_BOTH   4

◆ HAL_GPIO_INTERRUPT_FALLING

#define HAL_GPIO_INTERRUPT_FALLING   2

Definition at line 12 of file GPIO.h.

Referenced by ChibiOS::GPIO::_attach_interrupt().

◆ HAL_GPIO_INTERRUPT_HIGH

#define HAL_GPIO_INTERRUPT_HIGH   1

Definition at line 11 of file GPIO.h.

◆ HAL_GPIO_INTERRUPT_LOW

#define HAL_GPIO_INTERRUPT_LOW   0

Definition at line 10 of file GPIO.h.

Referenced by ChibiOS::GPIO::_attach_interrupt().

◆ HAL_GPIO_INTERRUPT_RISING

#define HAL_GPIO_INTERRUPT_RISING   3

Definition at line 13 of file GPIO.h.

Referenced by ChibiOS::GPIO::_attach_interrupt(), and AP_RPM_Pin::update().

◆ HAL_GPIO_OUTPUT

#define HAL_GPIO_OUTPUT   1