diff options
author | ukw | 2015-11-10 08:43:54 +0000 |
---|---|---|
committer | ukw | 2015-11-10 08:43:54 +0000 |
commit | aa276d72956b9c9938dd8d34529276d7f1631b93 (patch) | |
tree | cce5e2f5c5f293d607510b3d4a70dc10f44a9962 /irmpsystem.h | |
parent | f71bec53129472a38453877af44cc3d85acaded2 (diff) | |
download | irmp-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 'irmpsystem.h')
-rw-r--r-- | irmpsystem.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/irmpsystem.h b/irmpsystem.h index 41cd344..07e4ef1 100644 --- a/irmpsystem.h +++ b/irmpsystem.h @@ -3,7 +3,7 @@ *
* Copyright (c) 2009-2015 Frank Meyer - frank(at)fli4l.de
*
- * $Id: irmpsystem.h,v 1.18 2015/05/18 10:51:07 fm Exp $
+ * $Id: irmpsystem.h,v 1.19 2015/11/10 08:39:28 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
@@ -43,6 +43,8 @@ # include <stm32f4xx.h>
# define ARM_STM32
# define ARM_STM32F4XX
+#elif defined(__SDCC_stm8) // STM8
+# define SDCC_STM8
#elif defined(TARGET_IS_BLIZZARD_RA2) // TI Stellaris (tested on Stellaris Launchpad with Code Composer Studio)
# define STELLARIS_ARM_CORTEX_M4
# define F_CPU (SysCtlClockGet())
@@ -116,6 +118,15 @@ typedef unsigned short uint16_t; # define PROGMEM
# define memcpy_P memcpy
+#elif defined(SDCC_STM8)
+
+# include "stm8s.h"
+# define PROGMEM
+# define memcpy_P memcpy
+# define __attribute__(x)
+# define uint_fast8_t uint8_t
+# define uint_fast16_t uint16_t
+
#else
# define PROGMEM
|