EE445M RTOS
Taken at the University of Texas Spring 2015
button.h File Reference
#include "libstd/nexus.h"
#include "libhw/hardware.h"
Include dependency graph for button.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define button_metadata_init_(_name, _base, _pin, _interrupt)
 
#define button_metadata_init(_base, _pin, _interrupt)   button_metadata_init_(button_metadata, _base, _pin, _interrupt)
 
#define BUTTON_LEFT   GPIO_PIN_4
 
#define BUTTON_RIGHT   GPIO_PIN_0
 
#define BUTTONS_BOTH   (BUTTON_LEFT | BUTTON_RIGHT)
 

Functions

void button_init (hw_metadata)
 
void button_set_interrupt (hw_metadata)