From 05d2bfd5e096d76ede965226520e680cafe22dc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nils=20Wallm=C3=A9nius?= Date: Sat, 19 Apr 2008 13:19:04 +0000 Subject: Introduce support for passing decimal numbers in talk ids and speak them, use in the settings menu to fix FS#7622 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17168 a1c6a512-1295-4272-9138-f99709370657 --- apps/talk.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'apps/talk.h') diff --git a/apps/talk.h b/apps/talk.h index 97b8c58..afd280e 100644 --- a/apps/talk.h +++ b/apps/talk.h @@ -55,10 +55,18 @@ enum { #define UNIT_SHIFT (32-5) /* this many bits left from UNIT_xx enum */ +#define DECIMAL_SHIFT (32 - 8) + /* make a "talkable" ID from number + unit unit is upper 4 bits, number the remaining (in regular 2's complement) */ #define TALK_ID(n,u) (((long)(u))<