summaryrefslogtreecommitdiff
path: root/irmp.h
diff options
context:
space:
mode:
authorukw2015-11-10 08:43:54 +0000
committerukw2015-11-10 08:43:54 +0000
commitaa276d72956b9c9938dd8d34529276d7f1631b93 (patch)
treecce5e2f5c5f293d607510b3d4a70dc10f44a9962 /irmp.h
parentf71bec53129472a38453877af44cc3d85acaded2 (diff)
downloadirmp-aa276d72956b9c9938dd8d34529276d7f1631b93.zip
Version 2.9.6: added support for STM8 mikrocontroller
git-svn-id: svn://mikrocontroller.net/irmp@166 aeb2e35e-bfc4-4214-b83c-9e8de998ed28
Diffstat (limited to 'irmp.h')
-rw-r--r--irmp.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/irmp.h b/irmp.h
index 76346ce..fd027b9 100644
--- a/irmp.h
+++ b/irmp.h
@@ -3,7 +3,7 @@
*
* Copyright (c) 2009-2015 Frank Meyer - frank(at)fli4l.de
*
- * $Id: irmp.h,v 1.97 2015/09/19 15:28:31 fm Exp $
+ * $Id: irmp.h,v 1.98 2015/11/10 08:39:27 fm Exp $
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -73,6 +73,13 @@
# define input(x) ((uint8_t)(ROM_GPIOPinRead(IRMP_PORT_BASE, IRMP_PORT_PIN)))
# define sei() IntMasterEnable()
+#elif defined(__SDCC_stm8)
+# define _CONCAT(a,b) a##b
+# define CONCAT(a,b) _CONCAT(a,b)
+# define IRMP_GPIO_STRUCT CONCAT(GPIO, IRMP_PORT_LETTER)
+# define IRMP_BIT IRMP_BIT_NUMBER
+# define input(x) ((x) & (1 << IRMP_BIT))
+
#endif
#if IRMP_SUPPORT_TECHNICS_PROTOCOL == 1