mirror of
https://github.com/apache/nuttx.git
synced 2026-10-08 06:45:19 +00:00
MRF24J40: Take advantage of new OS features for interrupt parameter passing.
This commit is contained in:
parent
b315f0d851
commit
3fbf59e2bc
3 changed files with 25 additions and 31 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue