OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [freertos-6.1.1/] [Demo/] [MSP430X_MSP430F5438_IAR/] [MSP-EXP430F5438_HAL/] [hal_buttons.h] - Blame information for rev 584

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 584 jeremybenn
/*******************************************************************************
2
    Filename: hal_buttons.h
3
 
4
    Copyright 2010 Texas Instruments, Inc.
5
***************************************************************************/
6
#ifndef HAL_BUTTONS_H
7
#define HAL_BUTTONS_H
8
 
9
#define BUTTON_PORT_DIR   P2DIR
10
#define BUTTON_PORT_SEL   P2SEL
11
#define BUTTON_PORT_OUT   P2OUT
12
#define BUTTON_PORT_REN   P2REN
13
#define BUTTON_PORT_IE    P2IE
14
#define BUTTON_PORT_IES   P2IES
15
#define BUTTON_PORT_IFG   P2IFG
16
#define BUTTON_PORT_IN    P2IN
17
 
18
#define BUTTON_SELECT     BIT3
19
#define BUTTON_DOWN       BIT5
20
#define BUTTON_UP         BIT4
21
#define BUTTON_RIGHT      BIT2
22
#define BUTTON_LEFT       BIT1 
23
#define BUTTON_S1         BIT6 
24
#define BUTTON_S2         BIT7 
25
#define BUTTON_ALL        0xFE
26
 
27
extern volatile unsigned char buttonsPressed;
28
 
29
/*-------------------------------------------------------------
30
 *                  Function Prototypes
31
 * ------------------------------------------------------------*/
32
extern void halButtonsInit(unsigned char buttonsMask);
33
extern unsigned char halButtonsPressed(void);
34
extern void halButtonsInterruptEnable(unsigned char buttonIntEnableMask);
35
extern void halButtonsInterruptDisable(unsigned char buttonIntEnableMask);
36
extern void halButtonsShutDown();
37
 
38
#endif /* HAL_BUTTONS_H */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.