summaryrefslogtreecommitdiff
path: root/apps/plugins/xworld/sys.c
diff options
context:
space:
mode:
authorFranklin Wei <frankhwei536@gmail.com>2014-12-24 11:43:28 -0500
committerMichael Giacomelli <giac2000@hotmail.com>2014-12-28 02:48:42 +0100
commit193c5df75d3b6d9e3442e42fa26fd8ccc4c5e3aa (patch)
tree1afbe3a32d57b7689686a715de549a441efc0314 /apps/plugins/xworld/sys.c
parente7c282fed754bfc4a2fbdc2e8e1a7598b5fae27c (diff)
downloadrockbox-193c5df75d3b6d9e3442e42fa26fd8ccc4c5e3aa.tar.gz
rockbox-193c5df75d3b6d9e3442e42fa26fd8ccc4c5e3aa.zip
XWorld: cleanup
- Comment keymaps.h - Tie XWORLD_DEBUG into ROCKBOX_HAS_LOGF to ease debugging - Fix up the manual a little bit Change-Id: I12cfb58001199036cd67dbaa27f164e6790a199d Reviewed-on: http://gerrit.rockbox.org/1084 Reviewed-by: Michael Giacomelli <giac2000@hotmail.com>
Diffstat (limited to 'apps/plugins/xworld/sys.c')
-rw-r--r--apps/plugins/xworld/sys.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/plugins/xworld/sys.c b/apps/plugins/xworld/sys.c
index 0af13efd11..14c928f067 100644
--- a/apps/plugins/xworld/sys.c
+++ b/apps/plugins/xworld/sys.c
@@ -787,13 +787,13 @@ void sys_sleep(struct System* sys, uint32_t duration)
787{ 787{
788 (void) sys; 788 (void) sys;
789 /* duration is in ms */ 789 /* duration is in ms */
790 rb->sleep(duration / 10); 790 rb->sleep(duration / (1000/HZ));
791} 791}
792 792
793uint32_t sys_getTimeStamp(struct System* sys) 793uint32_t sys_getTimeStamp(struct System* sys)
794{ 794{
795 (void) sys; 795 (void) sys;
796 return (uint32_t) (*rb->current_tick) * 10; 796 return (uint32_t) (*rb->current_tick * (1000/HZ));
797} 797}
798 798
799static int16_t rb_soundbuf [MAX_SOUNDBUF_SIZE] IBSS_ATTR; 799static int16_t rb_soundbuf [MAX_SOUNDBUF_SIZE] IBSS_ATTR;