Fix some mismatched function prototypes

This commit is contained in:
Gregory Nutt 2017-02-27 14:43:10 -06:00
parent d9fec7fe4c
commit aa8d4422a5
5 changed files with 18 additions and 14 deletions

View File

@ -492,6 +492,7 @@ bool stm32_gpioread(uint32_t pinset);
* - rising/falling edge: enables
* - event: generate event when set
* - func: when non-NULL, generate interrupt
* - arg: Argument passed to the interrupt callback
*
* Returns:
* The previous value of the interrupt handler function pointer. This value may,
@ -501,7 +502,7 @@ bool stm32_gpioread(uint32_t pinset);
************************************************************************************/
xcpt_t stm32_gpiosetevent(uint32_t pinset, bool risingedge, bool fallingedge,
bool event, xcpt_t func);
bool event, xcpt_t func, void *arg);
/************************************************************************************
* Function: stm32_dumpgpio

View File

@ -78,7 +78,7 @@ extern "C"
* - fallingedge: Enables interrupt on falling edges
* - event: Generate event when set
* - func: When non-NULL, generate interrupt
* - arg: Argument passed to the interrupt callback
* - arg: Argument passed to the interrupt callback
*
* Returns:
* The previous value of the interrupt handler function pointer. This

View File

@ -315,27 +315,29 @@ void stm32_gpiowrite(uint32_t pinset, bool value);
bool stm32_gpioread(uint32_t pinset);
/************************************************************************************
/****************************************************************************
* Name: stm32_gpiosetevent
*
* Description:
* Sets/clears GPIO based event and interrupt triggers.
*
* Parameters:
* - pinset: gpio pin configuration
* - rising/falling edge: enables
* - event: generate event when set
* - func: when non-NULL, generate interrupt
* - pinset: GPIO pin configuration
* - risingedge: Enables interrupt on rising edges
* - fallingedge: Enables interrupt on falling edges
* - event: Generate event when set
* - func: When non-NULL, generate interrupt
* - arg: Argument passed to the interrupt callback
*
* Returns:
* The previous value of the interrupt handler function pointer. This value may,
* for example, be used to restore the previous handler when multiple handlers are
* used.
* The previous value of the interrupt handler function pointer. This
* value may, for example, be used to restore the previous handler when
* multiple handlers are used.
*
************************************************************************************/
****************************************************************************/
xcpt_t stm32_gpiosetevent(uint32_t pinset, bool risingedge, bool fallingedge,
bool event, xcpt_t func);
bool event, xcpt_t func, void *arg);
/************************************************************************************
* Function: stm32_dumpgpio

View File

@ -87,7 +87,7 @@ extern "C"
************************************************************************************/
xcpt_t stm32l4_gpiosetevent(uint32_t pinset, bool risingedge, bool fallingedge,
bool event, xcpt_t func, void *arg);
bool event, xcpt_t func, void *arg);
/****************************************************************************
* Name: stm32l4_exti_alarm

View File

@ -331,6 +331,7 @@ bool stm32l4_gpioread(uint32_t pinset);
* - rising/falling edge: enables
* - event: generate event when set
* - func: when non-NULL, generate interrupt
* - arg: Argument passed to the interrupt callback
*
* Returns:
* The previous value of the interrupt handler function pointer. This value may,
@ -340,7 +341,7 @@ bool stm32l4_gpioread(uint32_t pinset);
************************************************************************************/
xcpt_t stm32l4_gpiosetevent(uint32_t pinset, bool risingedge, bool fallingedge,
bool event, xcpt_t func);
bool event, xcpt_t func, void *arg);
/************************************************************************************
* Function: stm32l4_dumpgpio