diff options
Diffstat (limited to 'drivers_nrf/twis_slave/nrf_drv_twis_inst.def')
-rw-r--r-- | drivers_nrf/twis_slave/nrf_drv_twis_inst.def | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/drivers_nrf/twis_slave/nrf_drv_twis_inst.def b/drivers_nrf/twis_slave/nrf_drv_twis_inst.def new file mode 100644 index 0000000..be40002 --- /dev/null +++ b/drivers_nrf/twis_slave/nrf_drv_twis_inst.def @@ -0,0 +1,20 @@ +/** + * @file + * @brief Xmacro file with contains enumeration of TWIS instances to implement + * + * Use this file everywhere where anything has to be generated for all active TWIS instances. + * Xmacro format: + * + * @code + X(n) + * @endcode + * + * Where @em n is number of the instance itself (0 for NRF_TWIS0). + */ +#if (TWIS0_ENABLED == 1) + X(0) +#endif +#if (TWIS1_ENABLED == 1) + X(1) +#endif +#undef X |