From d9d4fa168df7503fcd7a4a77f705f7938f9e7430 Mon Sep 17 00:00:00 2001 From: George Oikonomou Date: Thu, 16 Aug 2012 14:56:35 +0100 Subject: [PATCH] cc253x: Renamed the P2 ISR This is mainly a naming convention thing, we want to have 'isr' as part of the name, instead of 'int'. We also want port_2 instead of p2 because we already had port_1 See Pull Request #18 --- cpu/cc253x/dev/p2-intr.c | 2 +- cpu/cc253x/dev/p2-intr.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cpu/cc253x/dev/p2-intr.c b/cpu/cc253x/dev/p2-intr.c index ea8097d03..f1ab0bdbc 100644 --- a/cpu/cc253x/dev/p2-intr.c +++ b/cpu/cc253x/dev/p2-intr.c @@ -34,7 +34,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. static struct cc253x_p2_handler *handlers = NULL; void -cc253x_p2_int(void) __interrupt(P2INT_VECTOR) +port_2_isr(void) __interrupt(P2INT_VECTOR) { struct cc253x_p2_handler *h; uint8_t handled = 0; diff --git a/cpu/cc253x/dev/p2-intr.h b/cpu/cc253x/dev/p2-intr.h index 4518243b4..f70d5d036 100644 --- a/cpu/cc253x/dev/p2-intr.h +++ b/cpu/cc253x/dev/p2-intr.h @@ -48,7 +48,7 @@ void cc253x_p2_unregister_handler(struct cc253x_p2_handler *h); /* When the ISR is not needed, hide its prototype from the module containing * main() to prevent linking it */ #if PORT_2_ISR_ENABLED -void cc253x_p2_int(void) __interrupt(P2INT_VECTOR); +void port_2_isr(void) __interrupt(P2INT_VECTOR); #endif #define cc253x_p2_irq_disable(flag) do { flag = IEN2 & 0x2; IEN2 &= ~0x2; } while(0)