dev builds
themes manual
device status forums
mailing lists
IRC bugs
dev guide

Rockbox mail archive

Subject: No Radio with cvs version - Preprocessor problem?

No Radio with cvs version - Preprocessor problem?

From: Alex Pleiner <>
Date: Fri, 23 Apr 2004 11:33:03 +0200

I checked the latest cvs version and noticed that I have no radio on my
FMR. So I commented out if(radio_hardware_present()) in main_menu.c to
have it apear in the menu. Still the radio is silent (besides some

I recompiled everything with version 1.2 of firmware/drivers/fmradio.c
and voila the radio is back.

#define CE_LO (PBDR &= ~PB3) works

#define CE_LO and_b(~0x08, PBDRL_ADDR) does not work

After playing around for some while I now think that the problem is
coming from the function calls in the defines for CE_LO etc. It looks
like they are not working here. I remember a similar problem with
#define's some months ago when writing a plugin.

So my question: is there a problem with preprocessing?

My system: Linux (SuSE 7.1), compiler versions as requested by

I get no errors while compiling.

Thanks for help

Alex Pleiner
zeitform Internet Dienste         Fraunhoferstrasse 5
                                  64283 Darmstadt, Germany            Tel.: +49 (0)6151 155-635        Fax:  +49 (0)6151 155-634
GnuPG/PGP Key-ID: 0x613C21EA
Received on 2004-04-23

Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy