• Main Page
  • Modules
  • Index
  • File List
  • Globals

projects/nrfgo_sdk/gazell_configuration_tool/buttons.h

Go to the documentation of this file.
00001 /* Copyright (c) 2009 Nordic Semiconductor. All Rights Reserved.
00002  *
00003  * The information contained herein is confidential property of Nordic 
00004  * Semiconductor ASA.Terms and conditions of usage are described in detail 
00005  * in NORDIC SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT. 
00006  *
00007  * Licensees are granted free, non-transferable use of the information. NO
00008  * WARRENTY of ANY KIND is provided. This heading must NOT be removed from
00009  * the file.
00010  *              
00011  * $LastChangedRevision: 133 $
00012  */
00013 
00020 #ifndef GG_BUTTONS_H__
00021 #define GG_BUTTONS_H__
00022 
00023 
00024 #define BUTTONS P2
00025 #define JS_DEBOUNCE 150
00026 #define BUTTONS_DEBOUNCE_SLOW 170
00027 #define BUTTON_HOLD_THRESHOLD (1200 / BUTTONS_DEBOUNCE_SLOW)
00028 #define BUTTONS_DEBOUNCE_FAST 1    
00029 #define DELAY_SHORT_MESSAGE 600  //600 ms
00030 
00031 #define MAIN_MENU_DEC (1 << 0)
00032 #define MAIN_MENU_INC (1 << 1)
00033 #define SUB_MENU_DEC  (1 << 2)
00034 #define SUB_MENU_INC  (1 << 3)
00035 #define VALUE_DEC (1 << 4)
00036 #define VALUE_INC (1 << 5)
00037 #define CLEAR_STATISTICS (1 << 6)
00038 #define RUN_STOP (1 << 7)
00039 
00040 #endif
00041 

Generated on Fri Apr 20 2012 14:11:45 for nRFGo SDK by  doxygen 1.7.2