/Zephyr-latest/drivers/ipm/ |
D | ipm_nrfx_ipc.c | 156 #define VIPM_DEVICE_1(_idx) \ argument 157 static int vipm_nrf_##_idx##_send(const struct device *dev, int wait, \ 160 if (!IS_ENABLED(CONFIG_IPM_MSG_CH_##_idx##_TX)) { \ 161 LOG_ERR("IPM_" #_idx " is RX message channel"); \ 179 gipm_send(_idx); \ 183 static void vipm_nrf_##_idx##_register_callback(const struct device *dev, \ 187 if (IS_ENABLED(CONFIG_IPM_MSG_CH_##_idx##_RX)) { \ 188 nrfx_vipm_data.callback[_idx] = cb; \ 189 nrfx_vipm_data.user_data[_idx] = user_data; \ 190 nrfx_vipm_data.ipm_device[_idx] = dev; \ [all …]
|
/Zephyr-latest/boards/nordic/nrf9160dk/ |
D | board.c | 51 #define SWITCH_CFG(_name, _idx) \ argument 53 .gpio = GET_DEV(_name, control_gpios, _idx), \ 54 .pin = GET_PIN(_name, control_gpios, _idx), \ 55 .flags = GET_FLAGS(_name, control_gpios, _idx), \ 59 .port = GET_PORT(_name, control_gpios, _idx), \ 60 .info = (_idx == 0), \
|
/Zephyr-latest/drivers/pwm/ |
D | pwm_nrf_sw.c | 402 #define PSEL_AND_COMMA(_node_id, _prop, _idx) \ argument 403 NRF_DT_GPIOS_TO_PSEL_BY_IDX(_node_id, _prop, _idx), 405 #define ACTIVE_LOW_BITS(_node_id, _prop, _idx) \ argument 406 ((DT_GPIO_FLAGS_BY_IDX(_node_id, _prop, _idx) & GPIO_ACTIVE_LOW) \ 407 ? BIT(_idx) : 0) | 409 #define GPIOTE_AND_COMMA(_node_id, _prop, _idx) \ argument 410 NRFX_GPIOTE_INSTANCE(NRF_DT_GPIOTE_INST_BY_IDX(_node_id, _prop, _idx)),
|
/Zephyr-latest/tests/subsys/zbus/runtime_observers_registration/src/ |
D | main.c | 172 #define CALLBACK_DEF(_lis, _idx) \ argument 173 static void _CONCAT(prio_cb, _idx)(const struct zbus_channel *chan) \ 175 execution_sequence[execution_sequence_idx] = _idx; \ 178 ZBUS_LISTENER_DEFINE(_lis, _CONCAT(prio_cb, _idx))
|
/Zephyr-latest/drivers/dma/ |
D | dma_smartbond.c | 40 #define DMA_CHN2REG(_idx) (&((struct channel_regs *)DMA)[(_idx)]) argument 42 #define DMA_MUX_SHIFT(_idx) (((_idx) >> 1) * 4) argument 44 #define DMA_REQ_MUX_REG_SET(_idx, _val) \ argument 46 (DMA->DMA_REQ_MUX_REG & ~(0xf << DMA_MUX_SHIFT((_idx)))) | \ 47 (((_val) & 0xf) << DMA_MUX_SHIFT((_idx))) 49 #define DMA_REQ_MUX_REG_GET(_idx) \ argument 50 ((DMA->DMA_REQ_MUX_REG >> DMA_MUX_SHIFT((_idx))) & 0xf)
|
/Zephyr-latest/include/zephyr/zbus/ |
D | zbus.h | 247 #define _ZBUS_OBSERVATION_PREFIX(_idx) \ argument 248 GET_ARG_N(_idx, 00, 01, 02, 03, 04, 05, 06, 07, 08, 09, 10, 11, 12, 13, 14, 15, 16, 17, \ 253 #define _ZBUS_CHAN_OBSERVATION(_idx, _obs, _chan) \ argument 256 _CONCAT(_chan, _ZBUS_OBSERVATION_PREFIX(UTIL_INC(_idx)))) = {.chan = &_chan, \ 259 _CONCAT(_CONCAT(_chan, _ZBUS_OBSERVATION_PREFIX(UTIL_INC(_idx))), \
|
/Zephyr-latest/drivers/regulator/ |
D | regulator_gpio.c | 202 #define REG_GPIO_CONTEXT_GPIOS_SPEC_ELEM(_node_id, _prop, _idx) \ argument 203 GPIO_DT_SPEC_GET_BY_IDX(_node_id, _prop, _idx),
|
/Zephyr-latest/include/zephyr/sys/ |
D | cbprintf_internal.h | 676 #define Z_CBPRINTF_PACK_ARG2(arg_idx, _buf, _idx, _align_offset, _max, _arg) \ argument 683 (_idx) += sizeof(int); \ 687 uint8_t _loc = (uint8_t)(_idx / sizeof(int)); \ 706 _rws_buffer[_rws_pos_idx++] = (uint8_t)(_idx / sizeof(int)); \ 709 if ((_buf) && (_idx) < (int)(_max)) { \ 710 Z_CBPRINTF_STORE_ARG(&(_buf)[(_idx)], _arg); \ 712 (_idx) += (_arg_size); \
|
/Zephyr-latest/drivers/spi/ |
D | spi_context.h | 64 #define SPI_CONTEXT_CS_GPIO_SPEC_ELEM(_node_id, _prop, _idx) \ argument 65 GPIO_DT_SPEC_GET_BY_IDX(_node_id, _prop, _idx),
|
/Zephyr-latest/drivers/counter/ |
D | counter_smartbond_timer.c | 28 #define COUNTER_DT_DEVICE(_idx) DEVICE_DT_GET_OR_NULL(DT_NODELABEL(timer##_idx)) argument
|