diff options
author | Andrew Ryabinin <ryabinin.a.a@gmail.com> | 2012-04-06 20:17:27 +0400 |
---|---|---|
committer | Andrew Ryabinin <ryabinin.a.a@gmail.com> | 2012-04-19 17:31:13 +0400 |
commit | 6ee3fc81d9299693da29c204b6ebe243caeae46d (patch) | |
tree | b450288696536193b975d669e20400d4d682b754 /firmware | |
parent | 397863ab3d45bdd8292512a22cd3b436cf281c76 (diff) |
hm801: Add support for plugins.
Change-Id: I81654db87d38324d8680a56bcdb7e9922ee5b619
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/export/rk27xx.h | 2 | ||||
-rw-r--r-- | firmware/target/arm/rk27xx/hm801/button-target.h | 6 |
2 files changed, 8 insertions, 0 deletions
diff --git a/firmware/export/rk27xx.h b/firmware/export/rk27xx.h index 7ada367627..d1b9758f65 100644 --- a/firmware/export/rk27xx.h +++ b/firmware/export/rk27xx.h @@ -1023,3 +1023,5 @@ #define PFCNTRB_CTRL (*(volatile unsigned long *)(ARM_CACHE_CTRL + 0x28)) #define PFCNTRB (*(volatile unsigned long *)(ARM_CACHE_CTRL + 0x2C)) +/* Timer frequency */ +#define TIMER_FREQ 50000000 diff --git a/firmware/target/arm/rk27xx/hm801/button-target.h b/firmware/target/arm/rk27xx/hm801/button-target.h index 736efb01c3..7754f867e5 100644 --- a/firmware/target/arm/rk27xx/hm801/button-target.h +++ b/firmware/target/arm/rk27xx/hm801/button-target.h @@ -31,6 +31,12 @@ #define BUTTON_PREV 0x00000080 #define BUTTON_PLAY 0x00000100 +#define BUTTON_MAIN (BUTTON_UP|BUTTON_POWER| \ + BUTTON_DOWN|BUTTON_LEFT| \ + BUTTON_RIGHT|BUTTON_SELECT| \ + BUTTON_NEXT|BUTTON_PREV| \ + BUTTON_PLAY) + #define POWEROFF_BUTTON BUTTON_POWER #define POWEROFF_COUNT 30 |