aboutsummaryrefslogtreecommitdiffstats
path: root/drivers_nrf/twis_slave/nrf_drv_twis_inst.def
diff options
context:
space:
mode:
authortcsullivan <tullivan99@gmail.com>2019-03-10 15:37:07 -0400
committertcsullivan <tullivan99@gmail.com>2019-03-10 15:37:07 -0400
commitdd33956654589ded6644a75088e50069b1744ef9 (patch)
treeeddd51f1aac130f6c7082a2de53b8e46f0387187 /drivers_nrf/twis_slave/nrf_drv_twis_inst.def
parent3c3f87b4cab153b49e3cde105dd2f34712e0b790 (diff)
rtc, keeping time
Diffstat (limited to 'drivers_nrf/twis_slave/nrf_drv_twis_inst.def')
-rw-r--r--drivers_nrf/twis_slave/nrf_drv_twis_inst.def20
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