34 struct cc253x_p2_handler *handlers =
NULL;
37 cc253x_p2_register_handler(
struct cc253x_p2_handler *h)
45 cc253x_p2_irq_disable(flags);
50 cc253x_p2_irq_enable(flags);
54 cc253x_p2_unregister_handler(
struct cc253x_p2_handler *
remove)
57 struct cc253x_p2_handler *h = handlers;
64 cc253x_p2_irq_disable(flags);
71 if(h->next ==
remove) {
72 h->next = h->next->next;
79 cc253x_p2_irq_enable(flags);
#define NULL
The null pointer.
Definitions for TI/Chipcon cc2530, cc2531 and cc2533 SFR registers.