From aa276d72956b9c9938dd8d34529276d7f1631b93 Mon Sep 17 00:00:00 2001 From: ukw Date: Tue, 10 Nov 2015 08:43:54 +0000 Subject: Version 2.9.6: added support for STM8 mikrocontroller git-svn-id: svn://mikrocontroller.net/irmp@166 aeb2e35e-bfc4-4214-b83c-9e8de998ed28 --- irmp.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'irmp.c') diff --git a/irmp.c b/irmp.c index 8bf45dc..3ad1948 100644 --- a/irmp.c +++ b/irmp.c @@ -3,7 +3,7 @@ * * Copyright (c) 2009-2015 Frank Meyer - frank(at)fli4l.de * - * $Id: irmp.c,v 1.177 2015/09/19 15:28:31 fm Exp $ + * $Id: irmp.c,v 1.178 2015/11/10 08:39:27 fm Exp $ * * Supported AVR mikrocontrollers: * @@ -2013,6 +2013,9 @@ irmp_init (void) ROM_GPIOPadConfigSet(IRMP_PORT_BASE, IRMP_PORT_PIN, GPIO_STRENGTH_2MA, GPIO_PIN_TYPE_STD_WPU); +#elif defined(__SDCC_stm8) // STM8 + IRMP_GPIO_STRUCT->CR1 |= (1<DDR &= ~(1<IDR) +#else irmp_input = input(IRMP_PIN); +#endif #if IRMP_USE_CALLBACK == 1 if (irmp_callback_ptr) @@ -3594,7 +3601,7 @@ irmp_ISR (void) else if (irmp_bit >= GRUNDIG_COMPLETE_DATA_LEN) { #ifdef ANALYZE - ANALYZE_PRINTF ("Switching to NOKIA protocol\n"); + ANALYZE_PRINTF ("Switching to NOKIA protocol, irmp_bit = %d\n", irmp_bit); #endif // ANALYZE irmp_param.protocol = IRMP_NOKIA_PROTOCOL; // change protocol irmp_param.address_offset = NOKIA_ADDRESS_OFFSET; -- cgit v1.2.3