lib
inertial-sense-sdk
EVB-2
IS_EVB-2
src
ASF
common
services
gpio
sam_gpio
sam_gpio.h
Go to the documentation of this file.
1
33
/*
34
* Support and FAQ: visit <a href="https://www.microchip.com/support/">Microchip Support</a>
35
*/
36
37
#ifndef SAM_GPIO_H_INCLUDED
38
#define SAM_GPIO_H_INCLUDED
39
40
#include "
compiler.h
"
41
#include "pio.h"
42
43
#define gpio_pin_is_low(io_id) \
44
(pio_get_pin_value(io_id) ? 0 : 1)
45
46
#define gpio_pin_is_high(io_id) \
47
(pio_get_pin_value(io_id) ? 1 : 0)
48
49
#define gpio_set_pin_high(io_id) \
50
pio_set_pin_high(io_id)
51
52
#define gpio_set_pin_low(io_id) \
53
pio_set_pin_low(io_id)
54
55
#define gpio_toggle_pin(io_id) \
56
pio_toggle_pin(io_id)
57
58
#define gpio_configure_pin(io_id,io_flags) \
59
pio_configure_pin(io_id,io_flags)
60
61
#define gpio_configure_group(port_id,port_mask,io_flags) \
62
pio_configure_pin_group(port_id,port_mask,io_flags)
63
64
#define gpio_set_pin_group_high(port_id,mask) \
65
pio_set_pin_group_high(port_id,mask)
66
67
#define gpio_set_pin_group_low(port_id,mask) \
68
pio_set_pin_group_low(port_id,mask)
69
70
#define gpio_toggle_pin_group(port_id,mask) \
71
pio_toggle_pin_group(port_id,mask)
72
73
#endif
/* SAM_GPIO_H_INCLUDED */
compiler.h
Commonly used includes, types and macros.
inertial_sense_ros
Author(s):
autogenerated on Sat Sep 19 2020 03:19:04