PIC32MZ Starter Kit: Add support for on-board buttons
This commit is contained in:
parent
625cd7b43a
commit
9cb90824a1
@ -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
|
||||
|
@ -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;
|
||||
|
@ -53,6 +53,7 @@
|
||||
#include "up_internal.h"
|
||||
|
||||
#include "chip/pic32mz-int.h"
|
||||
#include "pic32mz-gpio.h"
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
|
Loading…
Reference in New Issue
Block a user