1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-24 05:53:49 +01:00

[cpu/cc430/gpioint]

* introduced gpioint to make buttons usable
This commit is contained in:
Oliver Hahm 2010-12-14 00:24:42 +01:00
parent 7b5f3900ad
commit d2e45cdf59
2 changed files with 12 additions and 0 deletions

View File

@ -1,5 +1,6 @@
#include <stdint.h>
#include <buzzer.h>
#include <hwtimer.h>
#include <cc430x613x.h>
void buzzer_beep(uint8_t pitch, uint16_t duration) {

11
chronos/include/buttons.h Normal file
View File

@ -0,0 +1,11 @@
#ifndef BUTTONS_H
#define BUTTONS_H
// Button ports
#define BUTTON_STAR_PIN (BIT2)
#define BUTTON_NUM_PIN (BIT1)
#define BUTTON_UP_PIN (BIT4)
#define BUTTON_DOWN_PIN (BIT0)
#define BUTTON_BACKLIGHT_PIN (BIT3)
#endif