]> cloudbase.mooo.com Git - irmp.git/blobdiff - irmpsystem.h
Changed irmp_protocol_names to PROGMEM types, added UART routines to main.c
[irmp.git] / irmpsystem.h
index 575bfdaa44158799fc7500c1eb126130024d84c4..d19a0a7656c22488695a439989d638b3596acf23 100644 (file)
@@ -3,7 +3,7 @@
  *\r
  * Copyright (c) 2009-2014 Frank Meyer - frank(at)fli4l.de\r
  *\r
- * $Id: irmpsystem.h,v 1.13 2014/07/21 08:58:58 fm Exp $\r
+ * $Id: irmpsystem.h,v 1.14 2014/09/15 10:27:38 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
@@ -37,6 +37,7 @@
 #  include <stm32f10x.h>\r
 #  define ARM_STM32\r
 #  define ARM_STM32F10X\r
+#  define F_CPU (SysCtlClockGet())\r
 #elif defined(STM32F4XX)                                                            // ARM STM32\r
 #  include <stm32f4xx.h>\r
 #  define ARM_STM32\r
@@ -95,6 +96,13 @@ typedef unsigned short                  uint16_t;
 #  define PROGMEM volatile\r
 #  define memcpy_P memcpy\r
 #  define APP_SYSTICKS_PER_SEC          32\r
+#elif defined(ARM_STM32F10X)\r
+#  include "stm32f10x_gpio.h"\r
+#  include "stm32f10x_rcc.h"\r
+#  include "stm32f10x_tim.h"\r
+#  include "misc.h"\r
+#  define PROGMEM\r
+#  define memcpy_P                      memcpy\r
 #else\r
 #  define PROGMEM\r
 #  define memcpy_P                      memcpy\r