]> cloudbase.mooo.com Git - irmp.git/blobdiff - irmp.h
Version 2.3.3: port to Stellaris ARM Cortex M4
[irmp.git] / irmp.h
diff --git a/irmp.h b/irmp.h
index 8427be5b39032855fdf7b27dbb9c84b299a28107..84138013c98fb61c8f7a73be4c7a5df6ffb409ff 100644 (file)
--- a/irmp.h
+++ b/irmp.h
@@ -3,7 +3,7 @@
  *\r
  * Copyright (c) 2009-2012 Frank Meyer - frank(at)fli4l.de\r
  *\r
- * $Id: irmp.h,v 1.79 2012/05/23 12:26:25 fm Exp $\r
+ * $Id: irmp.h,v 1.80 2012/11/18 17:51:26 fm Exp $\r
  *\r
  * ATMEGA88 @ 8 MHz\r
  *\r
 #  ifndef USE_STDPERIPH_DRIVER\r
 #    warning The STM32 port of IRMP uses the ST standard peripheral drivers which are not enabled in your build configuration.\r
 #  endif\r
+#elif defined (STELLARIS_ARM_CORTEX_M4)\r
+#  define _CONCAT(a,b)                          a##b\r
+#  define CONCAT(a,b)                           _CONCAT(a,b)\r
+#  define IRMP_PORT_PERIPH                      CONCAT(SYSCTL_PERIPH_GPIO, IRMP_PORT_LETTER)\r
+#  define IRMP_PORT_BASE                        CONCAT(GPIO_PORT, CONCAT(IRMP_PORT_LETTER, _BASE))\r
+#  define IRMP_PORT_PIN                         CONCAT(GPIO_PIN_, IRMP_BIT_NUMBER)\r
+#  define IRMP_PIN                              IRMP_PORT_PIN\r
+#  define input(x)                              ((uint8_t)(ROM_GPIOPinRead(IRMP_PORT_BASE, IRMP_PORT_PIN)))\r
+#  define sei()                                 IntMasterEnable()\r
 #endif\r
 \r
 #if IRMP_SUPPORT_DENON_PROTOCOL == 1 && IRMP_SUPPORT_RUWIDO_PROTOCOL == 1\r