I believe there's some code that does this in the Knowledge base.
Here's what I have:
#include <Pilot.h>
#include <FeatureMgr.h>
#include "ProcTest_res.h"
#ifndef sysFtrNumProcessorID
#define sysFtrNumProcessorID 2
// Product id
// 0xMMMMRRRR, where MMMM is the processor model and RRRR is the revision.
#define sysFtrNumProcessorMask 0xFFFF0000 // Mask to obtain processor
model
#define sysFtrNumProcessor328 0x00010000 // Motorola 68328
(Dragonball)
#define sysFtrNumProcessorEZ 0x00020000 // Motorola 68EZ328
(Dragonball EZ)
#endif
// And here's the function that does it:
void DrawProcessorInfo( FormPtr frm, Word fieldID )
{
// if we're not using a new include file, define things appropriately
DWord id, chip;
Err err;
Word revision;
CharPtr msg1, msg2, msg3;
err = FtrGet( sysFtrCreator, sysFtrNumProcessorID, &id );
if ( err )
{
// can't get that feature; we must be on an old unit
// without it defined, thus we're on a DragonBall.
msg1 = "This device seems to be running";
msg2 = "a traditional DragonBall.";
msg3 = "(The feature was not defined.)";
}
else
{
chip = id & sysFtrNumProcessorMask;
revision = id & 0x0ffff;
msg1 = "The feature manager says this";
msg2 = "device is running a";
if ( chip == sysFtrNumProcessor328 )
msg3 = "traditional DragonBall (68328).";
else if ( chip == sysFtrNumProcessorEZ )
msg3 = "DragonBall EZ (68EZ328).";
else
msg3 = "chip which I don't know jack about.";
}
SetFieldTextFromStr( fieldID, msg1 );
SetFieldTextFromStr( fieldID, msg2 );
SetFieldTextFromStr( fieldID, msg3 );
}
Now it's in the archives, so it won't ever get asked again! =)
-Rus
>-----Original Message-----
>From: Patrick Ouellet [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, August 01, 2000 11:46 AM
>To: Palm Developer Forum
>Subject: How to know which processor
>
>
>How could I find which Dragon Ball is inside my palm device,
>since many variant of the Dragon Ball processor are present in palm
>device...
>
>
>
>--
>For information on using the Palm Developer Forums, or to
>unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/