123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- #ifndef NRF_SVCI_ASYNC_HANDLER_H__
- #define NRF_SVCI_ASYNC_HANDLER_H__
- #include "nrf_svc_function.h"
- #ifdef __cplusplus
- extern "C" {
- #endif
- #define NRF_SVCI_ASYNC_HANDLER_CREATE(svci_num, \
- name, \
- param_type, \
- state_type) \
- \
- static uint32_t name ## _handler(name ## _svci_async_t * p_async); \
- static uint32_t name ## _on_call(param_type * p_param, state_type * p_state); \
- static uint32_t name ## _on_sys_evt(uint32_t sys_event, state_type * p_state); \
- \
- NRF_SVCI_FUNCTION_REGISTER(svci_num, name ## _var, name ## _handler)
- #ifdef __cplusplus
- }
- #endif
- #endif
|