Lines Matching +full:zephyr +full:- +full:base
4 * SPDX-License-Identifier: Apache-2.0
7 #include <zephyr/kernel.h>
8 #include <zephyr/drivers/gpio.h>
39 static ALWAYS_INLINE void swdp_ll_pin_input(void *const base, uint8_t pin) in swdp_ll_pin_input() argument
42 NRF_GPIO_Type * reg = base; in swdp_ll_pin_input()
44 reg->PIN_CNF[pin] = 0b0000; in swdp_ll_pin_input()
48 static ALWAYS_INLINE void swdp_ll_pin_output(void *const base, uint8_t pin) in swdp_ll_pin_output() argument
51 NRF_GPIO_Type * reg = base; in swdp_ll_pin_output()
53 reg->PIN_CNF[pin] = 0b0001; in swdp_ll_pin_output()
58 static ALWAYS_INLINE void swdp_ll_pin_set(void *const base, uint8_t pin) in swdp_ll_pin_set() argument
61 NRF_GPIO_Type * reg = base; in swdp_ll_pin_set()
63 reg->OUTSET = BIT(pin); in swdp_ll_pin_set()
67 static ALWAYS_INLINE void swdp_ll_pin_clr(void *const base, uint8_t pin) in swdp_ll_pin_clr() argument
70 NRF_GPIO_Type * reg = base; in swdp_ll_pin_clr()
72 reg->OUTCLR = BIT(pin); in swdp_ll_pin_clr()
76 static ALWAYS_INLINE uint32_t swdp_ll_pin_get(void *const base, uint8_t pin) in swdp_ll_pin_get() argument
79 NRF_GPIO_Type * reg = base; in swdp_ll_pin_get()
81 return ((reg->IN >> pin) & 1); in swdp_ll_pin_get()