EE445M RTOS
Taken at the University of Texas Spring 2015
|
#include <stdint.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include "inc/hw_ints.h"
#include "inc/hw_gpio.h"
#include "inc/hw_memmap.h"
#include "driverlib/debug.h"
#include "driverlib/gpio.h"
#include "driverlib/interrupt.h"
#include "driverlib/pin_map.h"
#include "driverlib/sysctl.h"
#include "driverlib/systick.h"
#include "driverlib/rom.h"
#include "libos/os.h"
#include "libbutton/button.h"
#include "libhw/hardware.h"
Go to the source code of this file.
Functions | |
void | update_pid (notification button_bitmask) |
int | main () |
Variables | |
uint32_t | button_left_pressed = 0 |
uint32_t | button_right_pressed = 0 |
int main | ( | void | ) |
Definition at line 43 of file test-button.c.
References button_metadata_init, BUTTONS_BOTH, GPIO_BOTH_EDGES, GPIO_PORTF_BASE, HW_BUTTON, hw_init, hw_subscribe, IntMasterDisable(), IntMasterEnable(), postpone_death, SYSCTL_OSC_MAIN, SYSCTL_SYSDIV_1, SYSCTL_USE_OSC, SYSCTL_XTAL_16MHZ, SysCtlClockSet(), and update_pid().
void update_pid | ( | notification | button_bitmask | ) |
Definition at line 32 of file test-button.c.
References notification::_int, BUTTON_LEFT, button_left_pressed, BUTTON_RIGHT, and button_right_pressed.
Referenced by main().
uint32_t button_left_pressed = 0 |
Definition at line 29 of file test-button.c.
Referenced by update_pid().
uint32_t button_right_pressed = 0 |
Definition at line 30 of file test-button.c.
Referenced by update_pid().