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:
parent
7b5f3900ad
commit
d2e45cdf59
@ -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
11
chronos/include/buttons.h
Normal 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
|
||||
Loading…
x
Reference in New Issue
Block a user