MRF24J40: Take advantage of new OS features for interrupt parameter passing.

This commit is contained in:
Gregory Nutt 2017-03-27 10:48:58 -06:00
parent b315f0d851
commit 3fbf59e2bc
3 changed files with 25 additions and 31 deletions

View file

@ -40,6 +40,8 @@
* Included files
****************************************************************************/
#include <nuttx/config.h>
#include <stdbool.h>
#include <nuttx/arch.h>
/****************************************************************************
@ -62,8 +64,9 @@
struct mrf24j40_lower_s
{
int (*attach)(FAR const struct mrf24j40_lower_s *lower, xcpt_t handler);
void (*enable)(FAR const struct mrf24j40_lower_s *lower, int state);
int (*attach)(FAR const struct mrf24j40_lower_s *lower, xcpt_t handler,
FAR void *arg);
void (*enable)(FAR const struct mrf24j40_lower_s *lower, bool state);
};
#ifdef __cplusplus