From: Matthias T. <mt...@we...> - 2012-10-08 17:36:47
|
Hi, > On the at90can128, for example, one has to introduce "TCCR0 constant > TCCR0B" before uploading lib/hardware/time0.frt > > How about extending Keith's fantastic shell with conditional upload > constructs such as: > > #ifdev at90can128 > %00000000 TCCR0 c! \ stop timer > #else > %00000000 TCCR0B c! \ stop timer > #endif There are a few (~15 IIRC) more devices, that suffer the same problem. Your solution does not scale enough, unfortuatly. > Any better idea? Highly appricated! I considered something like #ifndef TCCR0B #define TCCR0B TCCR0 #endif but who wants to maintain the matching rules? And who wants to check _in detail_ if they are really compatible with each other for every controller type (~120 by now)? I wont do it. Matthias |