GPIO Peripheral Driver.
More...
GPIO Peripheral Driver.
Hardware GPIO Peripheral Driver.
GPIO pins for each board are defined in ${board}/board.h
void GPIO_set |
( |
uint8_t |
gpio_number | ) |
|
Sets the state (High) on the specified GPIO pin
- Parameters
-
gpio_number | ID of the GPIO pin |
Definition at line 13 of file gpio.c.
void GPIO_reset |
( |
uint8_t |
gpio_number | ) |
|
Resets the state (Low) on the specified GPIO pin
- Parameters
-
gpio_number | ID of the GPIO pin |
Definition at line 18 of file gpio.c.
void GPIO_write |
( |
uint8_t |
gpio_number, |
|
|
bool |
state |
|
) |
| |
Writes a given state on the specified GPIO pin
- Parameters
-
gpio_number | ID of the GPIO pin |
state | state to be written (true = High, false = Low) |
Definition at line 23 of file gpio.c.
bool GPIO_read |
( |
uint8_t |
gpio_number | ) |
|
Reads the input value on the specified GPIO pin
- Parameters
-
gpio_number | ID of the GPIO pin |
- Returns
- input value of the specified GPIO pin (true = High, false = Low)
Definition at line 29 of file gpio.c.