]> cloudbase.mooo.com Git - irmp.git/blobdiff - irmp.h
Version 2.9.6: added support for STM8 mikrocontroller
[irmp.git] / irmp.h
diff --git a/irmp.h b/irmp.h
index 76346cefe6623e860388021fd087dd17e254e41e..fd027b9d6b792965f61fef451e9081ce00b2259d 100644 (file)
--- a/irmp.h
+++ b/irmp.h
@@ -3,7 +3,7 @@
  *\r
  * Copyright (c) 2009-2015 Frank Meyer - frank(at)fli4l.de\r
  *\r
- * $Id: irmp.h,v 1.97 2015/09/19 15:28:31 fm Exp $\r
+ * $Id: irmp.h,v 1.98 2015/11/10 08:39:27 fm Exp $\r
  *\r
  * This program is free software; you can redistribute it and/or modify\r
  * it under the terms of the GNU General Public License as published by\r
 #  define input(x)                              ((uint8_t)(ROM_GPIOPinRead(IRMP_PORT_BASE, IRMP_PORT_PIN)))\r
 #  define sei()                                 IntMasterEnable()\r
 \r
+#elif defined(__SDCC_stm8)\r
+#  define _CONCAT(a,b)                          a##b\r
+#  define CONCAT(a,b)                           _CONCAT(a,b)\r
+#  define IRMP_GPIO_STRUCT                      CONCAT(GPIO, IRMP_PORT_LETTER)\r
+#  define IRMP_BIT                              IRMP_BIT_NUMBER\r
+#  define input(x)                              ((x) & (1 << IRMP_BIT))\r
+\r
 #endif\r
 \r
 #if IRMP_SUPPORT_TECHNICS_PROTOCOL == 1\r