Go to the documentation of this file. 46 #ifndef GPIO_HAL_ARCH_H_ 47 #define GPIO_HAL_ARCH_H_ 51 #include <ti/devices/DeviceFamily.h> 52 #include DeviceFamily_constructPath(driverlib/gpio.h) 54 #include <ti/drivers/pin/PINCC26XX.h> 56 #define gpio_hal_arch_pin_set_input(p) PINCC26XX_setOutputEnable(p, false) 57 #define gpio_hal_arch_pin_set_output(p) PINCC26XX_setOutputEnable(p, true) 59 #define gpio_hal_arch_set_pin(p) PINCC26XX_setOutputValue(p, 1) 60 #define gpio_hal_arch_clear_pin(p) PINCC26XX_setOutputValue(p, 0) 61 #define gpio_hal_arch_toggle_pin(p) PINCC26XX_setOutputValue(p, \ 62 PINCC26XX_getOutputValue(p) \ 64 #define gpio_hal_arch_write_pin(p, v) PINCC26XX_setOutputValue(p, v) 66 #define gpio_hal_arch_set_pins(p) GPIO_setMultiDio(p) 67 #define gpio_hal_arch_clear_pins(p) GPIO_clearMultiDio(p) 68 #define gpio_hal_arch_toggle_pins(p) GPIO_toggleMultiDio(p) 69 #define gpio_hal_arch_write_pins(p, v) GPIO_writeMultiDio(p, v)