| /bsp/efm32/ |
| A D | hdl_interrupt.c | 815 dmaCbTable[hook->unit].cbFunc = hook->cbFunc; in efm32_irq_hook_register() 816 dmaCbTable[hook->unit].userPtr = hook->userPtr; in efm32_irq_hook_register() 820 rtcCbTable[hook->unit].cbFunc = hook->cbFunc; in efm32_irq_hook_register() 821 rtcCbTable[hook->unit].userPtr = hook->userPtr; in efm32_irq_hook_register() 825 timerCbTable[hook->unit].cbFunc = hook->cbFunc; in efm32_irq_hook_register() 835 gpioCbTable[hook->unit].cbFunc = hook->cbFunc; in efm32_irq_hook_register() 840 acmpCbTable[hook->unit].cbFunc = hook->cbFunc; in efm32_irq_hook_register() 845 usartCbTable[hook->unit].cbFunc = hook->cbFunc; in efm32_irq_hook_register() 857 iicCbTable[hook->unit].cbFunc = hook->cbFunc; in efm32_irq_hook_register() 858 iicCbTable[hook->unit].userPtr = hook->userPtr; in efm32_irq_hook_register() [all …]
|
| A D | drv_acmp.c | 66 acmp->hook.cbFunc = RT_NULL; in rt_acmp_init() 67 acmp->hook.userPtr = RT_NULL; in rt_acmp_init() 143 acmp->hook.cbFunc = control->hook.cbFunc; in rt_acmp_control() 144 acmp->hook.userPtr = control->hook.userPtr; in rt_acmp_control() 236 if (acmp->hook.cbFunc != RT_NULL) in rt_hw_acmp_isr() 238 (acmp->hook.cbFunc)(acmp->hook.userPtr); in rt_hw_acmp_isr() 264 efm32_irq_hook_init_t hook; in rt_hw_acmp_unit_init() local 306 hook.unit = unitNumber; in rt_hw_acmp_unit_init() 307 hook.cbFunc = rt_hw_acmp_isr; in rt_hw_acmp_unit_init() 308 hook.userPtr = device; in rt_hw_acmp_unit_init() [all …]
|
| A D | drv_timer.c | 68 timer->hook.cbFunc = RT_NULL; in rt_hs_timer_init() 69 timer->hook.userPtr = RT_NULL; in rt_hs_timer_init() 131 timer->hook.cbFunc = control->hook.cbFunc; in rt_hs_timer_control() 132 timer->hook.userPtr = control->hook.userPtr; in rt_hs_timer_control() 206 if (timer->hook.cbFunc != RT_NULL) in rt_hw_timer_isr() 208 (timer->hook.cbFunc)(timer->hook.userPtr); in rt_hw_timer_isr() 236 efm32_irq_hook_init_t hook; in rt_hw_timer_unit_init() local 301 hook.unit = unitNumber; in rt_hw_timer_unit_init() 302 hook.cbFunc = rt_hw_timer_isr; in rt_hw_timer_unit_init() 303 hook.userPtr = device; in rt_hw_timer_unit_init() [all …]
|
| A D | drv_rtc.c | 142 efm32_irq_hook_init_t hook; in rt_hw_rtc_init() local 161 hook.type = efm32_irq_type_rtc; in rt_hw_rtc_init() 162 hook.unit = 0; in rt_hw_rtc_init() 163 hook.cbFunc = rt_hw_rtc_isr; in rt_hw_rtc_init() 164 hook.userPtr = RT_NULL; in rt_hw_rtc_init() 165 efm32_irq_hook_register(&hook); in rt_hw_rtc_init()
|
| A D | dev_keys.c | 273 efm32_irq_hook_init_t hook; in efm32_hw_keys_init() local 274 hook.type = efm32_irq_type_gpio; in efm32_hw_keys_init() 275 hook.unit = KEYS_INT_PIN; in efm32_hw_keys_init() 276 hook.cbFunc = efm32_keys_isr; in efm32_hw_keys_init() 277 hook.userPtr = RT_NULL; in efm32_hw_keys_init() 278 efm32_irq_hook_register(&hook); in efm32_hw_keys_init()
|
| A D | drv_timer.h | 21 efm32_irq_hook_t hook; member 27 efm32_irq_hook_t hook; member
|
| A D | drv_acmp.h | 22 efm32_irq_hook_t hook; member 38 efm32_irq_hook_t hook; member
|
| A D | drv_leuart.c | 803 efm32_irq_hook_init_t hook; in rt_hw_leuart_unit_init() local 896 hook.type = efm32_irq_type_leuart; in rt_hw_leuart_unit_init() 897 hook.unit = unitNumber; in rt_hw_leuart_unit_init() 898 hook.cbFunc = rt_hw_leuart_rx_isr; in rt_hw_leuart_unit_init() 899 hook.userPtr = device; in rt_hw_leuart_unit_init() 900 efm32_irq_hook_register(&hook); in rt_hw_leuart_unit_init() 909 hook.type = efm32_irq_type_dma; in rt_hw_leuart_unit_init() 910 hook.unit = dmaChannel; in rt_hw_leuart_unit_init() 911 hook.cbFunc = rt_hw_leuart_dma_tx_isr; in rt_hw_leuart_unit_init() 912 hook.userPtr = device; in rt_hw_leuart_unit_init() [all …]
|
| A D | dev_accel.c | 441 efm32_irq_hook_init_t hook; in efm_accel_config() local 470 hook.type = efm32_irq_type_gpio; in efm_accel_config() 471 hook.unit = ACCEL_INT1_PIN; in efm_accel_config() 472 hook.cbFunc = efm_accel_isr; in efm_accel_config() 473 hook.userPtr = RT_NULL; in efm_accel_config() 474 efm32_irq_hook_register(&hook); in efm_accel_config() 475 hook.unit = ACCEL_INT2_PIN; in efm_accel_config() 476 efm32_irq_hook_register(&hook); in efm_accel_config()
|
| A D | drv_usart.c | 1059 efm32_irq_hook_init_t hook; in rt_hw_usart_unit_init() local 1240 hook.type = efm32_irq_type_usart; in rt_hw_usart_unit_init() 1241 hook.unit = unitNumber * 2 + 1; in rt_hw_usart_unit_init() 1245 hook.unit += USART_COUNT * 2; in rt_hw_usart_unit_init() 1248 hook.cbFunc = rt_hw_usart_rx_isr; in rt_hw_usart_unit_init() 1249 hook.userPtr = device; in rt_hw_usart_unit_init() 1250 efm32_irq_hook_register(&hook); in rt_hw_usart_unit_init() 1259 hook.type = efm32_irq_type_dma; in rt_hw_usart_unit_init() 1260 hook.unit = dmaChannel; in rt_hw_usart_unit_init() 1262 hook.userPtr = device; in rt_hw_usart_unit_init() [all …]
|
| A D | drv_iic.c | 719 efm32_irq_hook_init_t hook; in rt_hw_iic_unit_init() local 786 hook.type = efm32_irq_type_iic; in rt_hw_iic_unit_init() 787 hook.unit = unitNumber; in rt_hw_iic_unit_init() 788 hook.cbFunc = rt_hw_iic_slave_isr; in rt_hw_iic_unit_init() 789 hook.userPtr = (void *)&block->device; in rt_hw_iic_unit_init() 790 efm32_irq_hook_register(&hook); in rt_hw_iic_unit_init()
|
| A D | hdl_interrupt.h | 56 void efm32_irq_hook_register(efm32_irq_hook_init_t *hook);
|
| A D | drv_ethernet.c | 931 efm32_irq_hook_init_t hook; in efm_hw_eth_init() local 958 hook.type = efm32_irq_type_gpio; in efm_hw_eth_init() 959 hook.unit = ETH_INT_PIN; in efm_hw_eth_init() 960 hook.cbFunc = efm_eth_isr; in efm_hw_eth_init() 961 hook.userPtr = RT_NULL; in efm_hw_eth_init() 962 efm32_irq_hook_register(&hook); in efm_hw_eth_init()
|
| /bsp/samd21/sam_d2x_asflib/sam0/drivers/events/ |
| A D | events_hooks.c | 61 enum status_code events_create_hook(struct events_hook *hook, events_interrupt_hook func) in events_create_hook() argument 64 hook->next = NULL; in events_create_hook() 65 hook->resource = NULL; in events_create_hook() 66 hook->hook_func = func; in events_create_hook() 71 enum status_code events_add_hook(struct events_resource *resource, struct events_hook *hook) in events_add_hook() argument 76 hook->resource = resource; in events_add_hook() 80 _events_inst.hook_list = hook; in events_add_hook() 90 tmp_hook->next = hook; in events_add_hook() 101 enum status_code events_del_hook(struct events_resource *resource, struct events_hook *hook) in events_del_hook() argument 108 if (tmp_hook != hook) { in events_del_hook() [all …]
|
| A D | events_hooks.h | 87 enum status_code events_create_hook(struct events_hook *hook, events_interrupt_hook hook_func); 101 enum status_code events_add_hook(struct events_resource *resource, struct events_hook *hook); 117 enum status_code events_del_hook(struct events_resource *resource, struct events_hook *hook);
|
| /bsp/stm32/stm32f407-rt-spark/board/ports/pm/ |
| A D | drv_wakeup.c | 22 void bsp_register_wakeup(void (*hook)(void)) in bsp_register_wakeup() 24 RT_ASSERT(hook != RT_NULL); in bsp_register_wakeup() 26 _wakeup_hook = hook; in bsp_register_wakeup()
|
| A D | drv_wakeup.h | 14 extern void bsp_register_wakeup(void (*hook)(void));
|
| /bsp/stm32/stm32f407-lckfb-skystar/board/ports/pm/ |
| A D | drv_wakeup.c | 22 void bsp_register_wakeup(void (*hook)(void)) in bsp_register_wakeup() 24 RT_ASSERT(hook != RT_NULL); in bsp_register_wakeup() 26 _wakeup_hook = hook; in bsp_register_wakeup()
|
| A D | drv_wakeup.h | 14 extern void bsp_register_wakeup(void (*hook)(void));
|
| /bsp/bluetrum/libraries/hal_libraries/ab32vg1_hal/source/ |
| A D | ab32vg1_hal.c | 7 void hal_set_tick_hook(void (*hook)(uint32_t ticks)) in hal_set_tick_hook() 9 tick_cfg_hook = hook; in hal_set_tick_hook()
|
| /bsp/bluetrum/libraries/hal_libraries/ab32vg1_hal/include/ |
| A D | ab32vg1_hal.h | 12 void hal_set_tick_hook(void (*hook)(uint32_t ticks));
|
| /bsp/simulator/drivers/ |
| A D | module_win32.c | 108 void rt_module_load_sethook(void (*hook)(rt_module_t module)) in rt_module_load_sethook() 110 rt_module_load_hook = hook; in rt_module_load_sethook() 119 void rt_module_unload_sethook(void (*hook)(rt_module_t module)) in rt_module_unload_sethook() 121 rt_module_unload_hook = hook; in rt_module_unload_sethook()
|