# BUTTON
[EXTINT]

Driver for physical button connected to the reference platform used for demo purposes. More...

Collaboration diagram for BUTTON:

## Data Structures
struct | button_cb_tag
| Button callback type. More...
## Typedefs
typedef void(* | button_cb )(void *)
| Prototype definitoin for button driver callback.
## Functions
void | button_register (button_cb cb, void *env)
| Register callback for push button.
void | button_unregister ()
| Unregister push button callback.
void | button_enable ()
| Enable push button interrupt.
void | button_disable ()
| Disable push button interrupt.
void | button_isr ()
| Push button interrupt service routine.
void | button_init ()
| Push button initialization.
## Variables
struct button_cb_tag | button_cb_env
| Button callback.

## Detailed Description

Driver for physical button connected to the reference platform used for demo purposes.

The push button triggers the EXTINT interrupt (bit doorbell)

## Function Documentation

void button_disable | ( |  | ) |

Disable push button interrupt.

void button_enable | ( |  | ) |

Enable push button interrupt.

void button_init | ( |  | ) |

Push button initialization.

void button_isr | ( |  | ) |

Push button interrupt service routine.

void button_register | ( | button_cb | cb,
|  | void * | env |
| ) |  |  |

Register callback for push button.

Parameters:

  `[in]` | cb | Pointer to callback function
  `[in]` | env | Pointer to callback function arguments

void button_unregister | ( |  | ) |

Unregister push button callback.