0

Definition of AJ_*printf

asked 2014-06-05 14:15:28 -0800

congtam gravatar image

Hi everyone, I'm trying to port from Arduino to PIC32. For the purpose of debug, I want to modify AJ_*printf to adapt to my needs. However, when I search all the project for the definition of theses functions , I could find them nowhere. Could you please point out their locations? Many thanks,

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-06-06 13:15:36 -0800

bspencer gravatar image

The AJ_Printf method is locate in the target layer of the software found under ajtcl/target/<platform>/aj_target.h: #define AJ_Printf(fmat, ...) \ do { printf(fmat, ## __VA_ARGS__); } while (0)

So for the Arduino port the file is ajtcl/target/arduino/aj_target.h line 79-80

Each of the AJ_*Printf methods (AJ_ErrPrintf, AJ_WarnPrintf and AJ_InfoPrintf) are located in ajtcl/inc/aj_debug.h. These #defines will use the target AJ_Printf defined method.

edit flag offensive delete publish link more

Comments

Thanks a lot for your information. :)

congtam ( 2014-06-10 23:52:11 -0800 )edit
Login/Signup to Answer

Question Tools

Follow
1 follower

Stats

Asked: 2014-06-05 14:15:28 -0800

Seen: 32 times

Last updated: Jun 06 '14