The 10 or 20 year electronics project There is no shortage of "reliable" old computers, the supply is much bigger than the demand. The problem is that they can't do what people want them to do these days.
What is...
Tuesday, 12 February 2013 - 14:42
library implementation clawson wrote:Quote:
I *think* that works by making the linker see each function as a separate "module". Right or wrong - who cares how it is done ? It has been done for more than...
Tuesday, 12 February 2013 - 14:29
library implementation skeeve wrote:ChaunceyGardiner wrote:You would think that modern tools could generate good code without imposing a file structure on the developer.Are there C compilers that can...
Tuesday, 12 February 2013 - 12:06
Variable Arguments function If he is doing all the AVR-related work, they should pay him for it - whether he is happy to do it for free or not. What's good for the customers is good for them. I am very...
Monday, 11 February 2013 - 17:25
help in understanding bit fields For the record - I don't use code like this myself. I posted it to help the OP uncerstand what his code does.
Monday, 11 February 2013 - 17:19
Variable Arguments function clawson wrote:Quote:
I am not aware of a single downside.
Just to warn that I think the transition to _flash in 4.7/4.8 is only for C not C++ which is one small possible downside...
Monday, 11 February 2013 - 14:11
Variable Arguments function Only because you have given into the big C++ compiler scare. (You're in good company, most people in here are very afraid of it.)
There are many other benefits related to...
Monday, 11 February 2013 - 13:57
help in understanding bit fields The generated code is identical for what I suggested and what the OP posted.
I think my code is easier to understand.
Monday, 11 February 2013 - 13:29
library implementation clawson wrote:With modern source browsing editors I'd have thought that putting functions in separate files would be far less onerous than it might once have been.
They are not...
Monday, 11 February 2013 - 12:32
library implementation Yes, the two suggestions I'm aware of are 1) put each function in a separate source file and 2) use options.
Either way should work for you.
Monday, 11 February 2013 - 06:43
AVRs in popular use in R/C models One of the pioneers in the multicopter craze uses AVRs.
HobbyKing sold so many of his open source controller that they hired him to create the latest version for them exclusively...
Monday, 11 February 2013 - 06:39
help in understanding bit fields The 8 members are of type bitfield with an underlying type of unsigned char. Since you only have 8 of them and each one is only one bit wide, they are all located in the same...
There is no shortage of "reliable" old computers, the supply is much bigger than the demand. The problem is that they can't do what people want them to do these days. What is...
clawson wrote:Quote: I *think* that works by making the linker see each function as a separate "module". Right or wrong - who cares how it is done ? It has been done for more than...
skeeve wrote:ChaunceyGardiner wrote:You would think that modern tools could generate good code without imposing a file structure on the developer.Are there C compilers that can...
If he is doing all the AVR-related work, they should pay him for it - whether he is happy to do it for free or not. What's good for the customers is good for them. I am very...
For the record - I don't use code like this myself. I posted it to help the OP uncerstand what his code does.
clawson wrote:Quote: I am not aware of a single downside. Just to warn that I think the transition to _flash in 4.7/4.8 is only for C not C++ which is one small possible downside...
Only because you have given into the big C++ compiler scare. (You're in good company, most people in here are very afraid of it.) There are many other benefits related to...
The generated code is identical for what I suggested and what the OP posted. I think my code is easier to understand.
clawson wrote:With modern source browsing editors I'd have thought that putting functions in separate files would be far less onerous than it might once have been. They are not...
Yes, the two suggestions I'm aware of are 1) put each function in a separate source file and 2) use options. Either way should work for you.
One of the pioneers in the multicopter craze uses AVRs. HobbyKing sold so many of his open source controller that they hired him to create the latest version for them exclusively...
The 8 members are of type bitfield with an underlying type of unsigned char. Since you only have 8 of them and each one is only one bit wide, they are all located in the same...
Pages