Post Created date
library implementation
lfmorrison wrote:If a user of your library does that, and then then try to include their bootloader in the same ELF file as their main program, then -gc-sections will cause their...
Thursday, 14 February 2013 - 19:56
AVR C Code question (bitwise & operator)
You ought to separate your understanding of the bitwise operators from your understanding of logical expressions. if, while and for operate on logical expressions. In C and C++,...
Thursday, 14 February 2013 - 05:35
Problems with enums
"The cat did it!" I need to write that one down.
Thursday, 14 February 2013 - 00:04
AVR C programming
The progmem_s parameter declaration needs a type. The same goes for prog_char.
Wednesday, 13 February 2013 - 15:34
library implementation
Any option that improves the generated executable for the vast majority of cases should be on by default. The few that do "strange" things can still revert any such default...
Wednesday, 13 February 2013 - 12:59
help in understanding bit fields
If you want to toggle a pin, you use PINx not PORTx. And either way, do you do a lot of pin toggling by means of PORTx in your projects ?
Wednesday, 13 February 2013 - 02:52
library implementation
How do they make it work on other platforms ? You're saying that because every once in a blue moon somebody wants to do something that 99.9% of the users don't, we should default...
Wednesday, 13 February 2013 - 01:21
help in understanding bit fields
midea31 wrote: led_port = 1; which produces the SBI instruction midea31 wrote:ok. so bit fields are inefficient. You already found out that bit fields generate SBI instructions...
Wednesday, 13 February 2013 - 01:16
AVR C Code question (bitwise & operator)
And, in the context of AVR source code it is generally not used to find out if a number is odd or not. It is used to find out if a bit is set. This is useful for instance when...
Tuesday, 12 February 2013 - 22:04
AVR C Code question (bitwise & operator)
Also note that 0x1 and 1 is the same number.
Tuesday, 12 February 2013 - 22:00
strlen_P versus sizeof
That depends on how the strings are declared. It's not uncommon to use a fixed size for flash strings regardless of actual string length.
Tuesday, 12 February 2013 - 17:48
library implementation
The only reason this can be perceived as a problem is that apparently both the tools and the development environment (AS6) defaults to off for these options. Why would a typical...
Tuesday, 12 February 2013 - 15:56