blob: ece1e3610b9976ebdd0c7403673460573d4cc700 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#ifndef CONFIG_H
#define CONFIG_H
/* time to wait in /dev/input fred loop */
#define DEBOUNCE (10 MS)
/* time to wait in backlight setter loop */
#define THREAD_WAIT (100 MS)
/* how long to keep the light on */
#define BACKLIGHT_TIME (5 SEC)
/* path to keypad evdev */
#define KEYBOARD_FILE "/dev/input/event1"
/* path to keyboard's backlight brightness */
#define BACKLIGHT_FILE "/sys/class/leds/keyboard_light/brightness"
/* cat `echo $BACKLIGHT_FILE | sed 's/brightness/max_brightness/g'` */
#define MAX_BRIGHTNESS 255
#endif
|