diff options
author | ukw | 2012-11-19 10:54:26 +0000 |
---|---|---|
committer | ukw | 2012-11-19 10:54:26 +0000 |
commit | afd1e690e5576608cc0754b348faed22f674a32a (patch) | |
tree | d14f76dd2b0fec09efdcbe69f44dd64cfbea486a /irmp.h | |
parent | 95eab03cca00d71c839a8f265ca0d9fbf3b41c44 (diff) | |
download | irmp-afd1e690e5576608cc0754b348faed22f674a32a.zip |
Version 2.3.3: port to Stellaris ARM Cortex M4
git-svn-id: svn://mikrocontroller.net/irmp@108 aeb2e35e-bfc4-4214-b83c-9e8de998ed28
Diffstat (limited to 'irmp.h')
-rw-r--r-- | irmp.h | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -3,7 +3,7 @@ *
* Copyright (c) 2009-2012 Frank Meyer - frank(at)fli4l.de
*
- * $Id: irmp.h,v 1.79 2012/05/23 12:26:25 fm Exp $
+ * $Id: irmp.h,v 1.80 2012/11/18 17:51:26 fm Exp $
*
* ATMEGA88 @ 8 MHz
*
@@ -52,6 +52,15 @@ # ifndef USE_STDPERIPH_DRIVER
# warning The STM32 port of IRMP uses the ST standard peripheral drivers which are not enabled in your build configuration.
# endif
+#elif defined (STELLARIS_ARM_CORTEX_M4)
+# define _CONCAT(a,b) a##b
+# define CONCAT(a,b) _CONCAT(a,b)
+# define IRMP_PORT_PERIPH CONCAT(SYSCTL_PERIPH_GPIO, IRMP_PORT_LETTER)
+# define IRMP_PORT_BASE CONCAT(GPIO_PORT, CONCAT(IRMP_PORT_LETTER, _BASE))
+# define IRMP_PORT_PIN CONCAT(GPIO_PIN_, IRMP_BIT_NUMBER)
+# define IRMP_PIN IRMP_PORT_PIN
+# define input(x) ((uint8_t)(ROM_GPIOPinRead(IRMP_PORT_BASE, IRMP_PORT_PIN)))
+# define sei() IntMasterEnable()
#endif
#if IRMP_SUPPORT_DENON_PROTOCOL == 1 && IRMP_SUPPORT_RUWIDO_PROTOCOL == 1
|