|
Contiki-NG
|
Loading...
Searching...
No Matches
Go to the documentation of this file.
49#ifndef GPIO_HAL_ARCH_H_
50#define GPIO_HAL_ARCH_H_
54#include "nrfx_gpiote.h"
56#define gpio_hal_arch_interrupt_enable(port, pin) nrfx_gpiote_in_event_enable(NRF_GPIO_PIN_MAP(port, pin), true)
57#define gpio_hal_arch_interrupt_disable(port, pin) nrfx_gpiote_in_event_disable(NRF_GPIO_PIN_MAP(port, pin))
59#define gpio_hal_arch_pin_set_input(port, pin) nrf_gpio_cfg_input(NRF_GPIO_PIN_MAP(port, pin), NRF_GPIO_PIN_NOPULL)
60#define gpio_hal_arch_pin_set_output(port, pin) nrf_gpio_cfg_output(NRF_GPIO_PIN_MAP(port, pin))
62#define gpio_hal_arch_set_pin(port, pin) nrf_gpio_pin_set(NRF_GPIO_PIN_MAP(port, pin))
63#define gpio_hal_arch_clear_pin(port, pin) nrf_gpio_pin_clear(NRF_GPIO_PIN_MAP(port, pin))
64#define gpio_hal_arch_toggle_pin(port, pin) nrf_gpio_pin_toggle(NRF_GPIO_PIN_MAP(port, pin))
65#define gpio_hal_arch_write_pin(port, pin, v) nrf_gpio_pin_write(NRF_GPIO_PIN_MAP(port, pin), v)