summaryrefslogtreecommitdiff
path: root/irmpsystem.h
diff options
context:
space:
mode:
authorukw2015-04-23 12:44:18 +0000
committerukw2015-04-23 12:44:18 +0000
commitad4d3d4157a9781b6ff3f83ac72b42f8bc3db0b5 (patch)
tree4e26168479de895b8d78cd4b3264c1b19b3dc4e9 /irmpsystem.h
parent0834784c62e77d7d11f29b48ad96f56750234f41 (diff)
downloadirmp-ad4d3d4157a9781b6ff3f83ac72b42f8bc3db0b5.zip
Version 2.8.0: port to AVR XMEGA
git-svn-id: svn://mikrocontroller.net/irmp@154 aeb2e35e-bfc4-4214-b83c-9e8de998ed28
Diffstat (limited to 'irmpsystem.h')
-rw-r--r--irmpsystem.h20
1 files changed, 17 insertions, 3 deletions
diff --git a/irmpsystem.h b/irmpsystem.h
index a6a4a69..6e85149 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.16 2015/01/26 13:07:01 fm Exp $
+ * $Id: irmpsystem.h,v 1.17 2015/02/26 15:42:53 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
@@ -80,7 +80,16 @@ typedef unsigned short uint16_t;
# define IRSND_OC0 3 // OC0
# define IRSND_OC0A 4 // OC0A
# define IRSND_OC0B 5 // OC0B
+
+# define IRSND_XMEGA_OC0A 0 // OC0A
+# define IRSND_XMEGA_OC0B 1 // OC0B
+# define IRSND_XMEGA_OC0C 2 // OC0C
+# define IRSND_XMEGA_OC0D 3 // OC0D
+# define IRSND_XMEGA_OC1A 4 // OC1A
+# define IRSND_XMEGA_OC1B 5 // OC1B
+
#elif defined(STELLARIS_ARM_CORTEX_M4)
+
# include "inc/hw_ints.h"
# include "inc/hw_memmap.h"
# include "inc/hw_types.h"
@@ -93,19 +102,24 @@ typedef unsigned short uint16_t;
# include "driverlib/systick.h"
# include "driverlib/pin_map.h"
# include "driverlib/timer.h"
-# define PROGMEM volatile
-# define memcpy_P memcpy
+# define PROGMEM
+# define memcpy_P memcpy
# define APP_SYSTICKS_PER_SEC 32
+
#elif defined(ARM_STM32F10X)
+
# include "stm32f10x_gpio.h"
# include "stm32f10x_rcc.h"
# include "stm32f10x_tim.h"
# include "misc.h"
# define PROGMEM
# define memcpy_P memcpy
+
#else
+
# define PROGMEM
# define memcpy_P memcpy
+
#endif
#if defined(PIC_CCS) || defined(PIC_C18) || defined(ARM_STM32) || defined(STELLARIS_ARM_CORTEX_M4)