From 9cb90824a1b00ec668f9fac546b0e107af3ec4a6 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Mon, 2 Mar 2015 10:01:10 -0600 Subject: [PATCH] PIC32MZ Starter Kit: Add support for on-board buttons --- arch/mips/src/pic32mz/pic32mz-gpio.h | 6 +++--- arch/mips/src/pic32mz/pic32mz-gpioirq.c | 2 +- arch/mips/src/pic32mz/pic32mz-irq.c | 1 + 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/arch/mips/src/pic32mz/pic32mz-gpio.h b/arch/mips/src/pic32mz/pic32mz-gpio.h index b9ef55da4c..1c967bc802 100644 --- a/arch/mips/src/pic32mz/pic32mz-gpio.h +++ b/arch/mips/src/pic32mz/pic32mz-gpio.h @@ -158,7 +158,7 @@ int pic32mz_configgpio(pinset_t cfgset); * ************************************************************************************/ -void pic32mz_gpiowrite(uint16_t pinset, bool value); +void pic32mz_gpiowrite(pinset_t pinset, bool value); /************************************************************************************ * Name: pic32mz_gpioread @@ -168,7 +168,7 @@ void pic32mz_gpiowrite(uint16_t pinset, bool value); * ************************************************************************************/ -bool pic32mz_gpioread(uint16_t pinset); +bool pic32mz_gpioread(pinset_t pinset); /************************************************************************************ * Name: pic32mz_gpioirqinitialize @@ -212,7 +212,7 @@ void pic32mz_gpioirqinitialize(void); ************************************************************************************/ #ifdef CONFIG_PIC32MZ_GPIOIRQ -xcpt_t pic32mz_gpioattach(uint32_t pinset, xcpt_t handler); +xcpt_t pic32mz_gpioattach(pinset_t pinset, xcpt_t handler); #else # define pic32mz_gpioattach(p,f) (NULL) #endif diff --git a/arch/mips/src/pic32mz/pic32mz-gpioirq.c b/arch/mips/src/pic32mz/pic32mz-gpioirq.c index 323f13d82c..8d2411455d 100644 --- a/arch/mips/src/pic32mz/pic32mz-gpioirq.c +++ b/arch/mips/src/pic32mz/pic32mz-gpioirq.c @@ -377,7 +377,7 @@ void pic32mz_gpioirqinitialize(void) * ****************************************************************************/ -xcpt_t pic32mz_gpioattach(uint32_t pinset, xcpt_t handler) +xcpt_t pic32mz_gpioattach(pinset_t pinset, xcpt_t handler) { struct ioport_level2_s *handlers; xcpt_t oldhandler = NULL; diff --git a/arch/mips/src/pic32mz/pic32mz-irq.c b/arch/mips/src/pic32mz/pic32mz-irq.c index e03770ad17..71fda0c4b7 100644 --- a/arch/mips/src/pic32mz/pic32mz-irq.c +++ b/arch/mips/src/pic32mz/pic32mz-irq.c @@ -53,6 +53,7 @@ #include "up_internal.h" #include "chip/pic32mz-int.h" +#include "pic32mz-gpio.h" /**************************************************************************** * Pre-processor Definitions