summaryrefslogtreecommitdiffstats
path: root/rtemsbsd/include/machine/rtems-bsd-nexus-bus.h
diff options
context:
space:
mode:
authorKevin Kirspel <kevin-kirspel@idexx.com>2017-05-17 08:40:33 -0400
committerSebastian Huber <sebastian.huber@embedded-brains.de>2017-05-19 07:24:30 +0200
commite28a8d01c1df58565b7c826aea4413fe75ee99ce (patch)
tree69724a764bba4b0d83f163a913c60c82a0502273 /rtemsbsd/include/machine/rtems-bsd-nexus-bus.h
parentAdd bitcount inlinesfor RTEMS. These are found in FREEBSDs types.h (diff)
downloadrtems-libbsd-e28a8d01c1df58565b7c826aea4413fe75ee99ce.tar.bz2
Add LPC32XX touch screen driver
Diffstat (limited to 'rtemsbsd/include/machine/rtems-bsd-nexus-bus.h')
-rw-r--r--[-rwxr-xr-x]rtemsbsd/include/machine/rtems-bsd-nexus-bus.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/rtemsbsd/include/machine/rtems-bsd-nexus-bus.h b/rtemsbsd/include/machine/rtems-bsd-nexus-bus.h
index 232e8e2c..06048b77 100755..100644
--- a/rtemsbsd/include/machine/rtems-bsd-nexus-bus.h
+++ b/rtemsbsd/include/machine/rtems-bsd-nexus-bus.h
@@ -39,6 +39,7 @@
* Devices:
* RTEMS_BSD_DRIVER_XILINX_ZYNQ_SLCR
* RTEMS_BSD_DRIVER_LPC32XX_PWR
+ * RTEMS_BSD_DRIVER_LPC32XX_TSC
*
* Buses:
* RTEMS_BSD_DRIVER_PC_LEGACY
@@ -136,6 +137,27 @@ extern "C" {
&lpc_pwr0_res[0])
#endif /* RTEMS_BSD_DRIVER_LPC32XX_PWR */
+/*
+ * LPC32XX TSC.
+ */
+#if !defined(RTEMS_BSD_DRIVER_LPC32XX_TSC)
+ #define RTEMS_BSD_DRIVER_LPC32XX_TSC \
+ static const rtems_bsd_device_resource lpc_tsc0_res[] = { \
+ { \
+ .type = RTEMS_BSD_RES_MEMORY, \
+ .start_request = 0, \
+ .start_actual = LPC32XX_BASE_ADC \
+ }, { \
+ .type = RTEMS_BSD_RES_IRQ, \
+ .start_request = 0, \
+ .start_actual = LPC32XX_IRQ_TS_IRQ_OR_ADC \
+ } \
+ }; \
+ RTEMS_BSD_DEFINE_NEXUS_DEVICE(lpctsc, 0, \
+ RTEMS_ARRAY_SIZE(lpc_tsc0_res), \
+ &lpc_tsc0_res[0])
+#endif /* RTEMS_BSD_DRIVER_LPC32XX_TSC */
+
/**
** Physical Buses
**/