From 25c7ba0ed78aea0a368bc178dd720a845dd515ac Mon Sep 17 00:00:00 2001 From: Perry Hung Date: Wed, 31 Mar 2010 21:29:29 -0400 Subject: Removed inttypes.h Removed inttypes.h from libmaple. Will have another pass through to use the standard libmaple types, but will come in another commit. --- core/ext_interrupts.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'core/ext_interrupts.c') diff --git a/core/ext_interrupts.c b/core/ext_interrupts.c index 20ec11f..e5919f4 100644 --- a/core/ext_interrupts.c +++ b/core/ext_interrupts.c @@ -28,8 +28,8 @@ #include "ext_interrupts.h" typedef struct ExtiInfo { - uint8_t channel; - uint8_t port; + uint8 channel; + uint8 port; } ExtiInfo; static ExtiInfo PIN_TO_EXTI_CHANNEL[NR_MAPLE_PINS] = { @@ -60,8 +60,8 @@ static ExtiInfo PIN_TO_EXTI_CHANNEL[NR_MAPLE_PINS] = { * * @sideeffect Registers a handler */ -int attachInterrupt(uint8_t pin, voidFuncPtr handler, ExtInterruptTriggerMode mode) { - uint8_t outMode; +int attachInterrupt(uint8 pin, voidFuncPtr handler, ExtInterruptTriggerMode mode) { + uint8 outMode; /* Parameter checking */ if (pin >= NR_MAPLE_PINS) { return EXT_INTERRUPT_INVALID_PIN; @@ -94,7 +94,7 @@ int attachInterrupt(uint8_t pin, voidFuncPtr handler, ExtInterruptTriggerMode mo return 0; } -int detachInterrupt(uint8_t pin) { +int detachInterrupt(uint8 pin) { if (!(pin < NR_MAPLE_PINS)) { return EXT_INTERRUPT_INVALID_PIN; } -- cgit v1.2.3