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 f01c03025d
commit 3df273658c
9 changed files with 218 additions and 7 deletions
+3 -3
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
+1 -1
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;
+1
View File
@@ -53,6 +53,7 @@
#include "up_internal.h"
#include "chip/pic32mz-int.h"
#include "pic32mz-gpio.h"
/****************************************************************************
* Pre-processor Definitions