PIC32MZ Starter Kit: Add support for on-board buttons

This commit is contained in:
Gregory Nutt 2015-03-02 10:01:10 -06:00
parent 625cd7b43a
commit 9cb90824a1
3 changed files with 5 additions and 4 deletions

View File

@ -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

View File

@ -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;

View File

@ -53,6 +53,7 @@
#include "up_internal.h"
#include "chip/pic32mz-int.h"
#include "pic32mz-gpio.h"
/****************************************************************************
* Pre-processor Definitions