From afd1e690e5576608cc0754b348faed22f674a32a Mon Sep 17 00:00:00 2001 From: ukw Date: Mon, 19 Nov 2012 10:54:26 +0000 Subject: Version 2.3.3: port to Stellaris ARM Cortex M4 git-svn-id: svn://mikrocontroller.net/irmp@108 aeb2e35e-bfc4-4214-b83c-9e8de998ed28 --- irmp.c | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'irmp.c') diff --git a/irmp.c b/irmp.c index ab3d59f..c8bc29f 100644 --- a/irmp.c +++ b/irmp.c @@ -3,7 +3,7 @@ * * Copyright (c) 2009-2012 Frank Meyer - frank(at)fli4l.de * - * $Id: irmp.c,v 1.130 2012/11/06 10:19:41 fm Exp $ + * $Id: irmp.c,v 1.131 2012/11/18 17:51:26 fm Exp $ * * ATMEGA88 @ 8 MHz * @@ -1292,6 +1292,15 @@ irmp_init (void) GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IN_FLOATING; #endif GPIO_Init(IRMP_PORT, &GPIO_InitStructure); +#elif defined(STELLARIS_ARM_CORTEX_M4) + // Enable the GPIO port + ROM_SysCtlPeripheralEnable(IRMP_PORT_PERIPH); + + // Set as an input + ROM_GPIODirModeSet(IRMP_PORT_BASE, IRMP_PORT_PIN, GPIO_DIR_MODE_IN); + ROM_GPIOPadConfigSet(IRMP_PORT_BASE, IRMP_PORT_PIN, + GPIO_STRENGTH_2MA, + GPIO_PIN_TYPE_STD_WPU); #else // AVR IRMP_PORT &= ~(1<