On Mon, Aug 15, 2005 at 12:32:04PM +0200, Lars Noschinski wrote:
I'm rewriting an assembler program to C, which had a signature string
at 0x20 in the flash memory. I tried to reproduce this with
const char signature[] __attribute__ ((section (.signature))) =
signature;
and the linker option
On Tue, 16 Aug 2005 00:33:45 -0700 (PDT), Roya Kalantari asked:
how can i have a software reset in my code do you
think?
One way would be to activate the watchdog (and you could give it a short
time-out).
___
AVR-GCC-list mailing list
how can i have a software reset in my code do you
think?
hi again
i have found a code:
#define RESET() (((void(*)(void))(char *)0x)())
Does it work in your opinion?
and about whatch dog:
if i have a while (1) for my reset,can i use a
watchdog for software reset?
I've just recently written a program for an AVR Tiny 12 using avr-gcc, and
thought others might be interested. If there is enough interest, it might
be worth adding information to the documentation or even modifying the
tools.
I used a fairly recent winavr setup (gcc 3.4.1).
As it stands,
David Kelly wrote:
[...]
You need to learn the basics of a circular buffer. Set aside a buffer
which will not be used by anything other than the receive side of the
serial port. Use two indexes into this buffer, I like to call them
head and tail. Think of it as food goes in at the head,
Hi.
We have an alpha version of an avr-gcc plug-in module for AVR Studio ready for
user testing. The component has passed internal testing, but I would like to
expose it to more users to uncover and fix bugs we have not yet discovered.
If any of you are interested in helping us out with
Hi,
Be warned that the head/tail usage can be something of a religious
war with people. There are those who champion the opposite roles
of head/tail, and remember it with when you join a queue, should you
join at the head or the tail ? - so if you inherit code, it is
always worth double
Larry Barello made a post which I believe he meant to go to this list.
I replied (unfortunately just to Larry).
Here's my reply to the list (I'm assuming Larry will repost his
original message).
Hi Larry,
On 8/16/05, Larry Barello [EMAIL PROTECTED] wrote:
So, who has the tiniest fifo routine
This is the original message. Dave's header file only version is
essentially the same as my procedural code. The header file version would,
naturally, be all inline code and likely tighter for small systems with
minimal calls to the fifo routines (or fifo routines buried inside single
point of
On Tuesday 16 August 2005 03:40 pm, Dave Hylands wrote:
but size of compiled code. The best I have done is using powers of two
with masks on the indexes (32 byte buffer being a convenient size).
I have one that's just in a .h file. It also works for powers of 2,
You can test to make sure
On Aug 16, 2005, at 6:07 PM, Bob Paddock wrote:
You can test to make sure that you do have a power of two buffer
size with the
following:
#define myQ_SIZE64
#define myQ_MASK ( myQ__SIZE - 1 )
#if ( myQ__SIZE myQ__MASK )
#error myQ_SIZE buffer size is not a power of 2
#endif
Hi David,
The one clumsy part of code was in my_putchar() which had to reach
directly into the hardware for the specific port to restart the Tx
IRQ if the buffer had been empty, which causes my Tx IRQ routine to
shut itself off. Also there was a possible race condition.
Why not just
Hi,
On Wed, 17 Aug 2005 01:19:04 +0530, Joerg Wunsch [EMAIL PROTECTED]
wrote:
David Brown [EMAIL PROTECTED] wrote:
I've just recently written a program for an AVR Tiny 12 using
avr-gcc, and thought others might be interested.
Interesting approach. Bruce Lightner once also reported
As Royce Pereira wrote:
I wish there were a better way to use program ATtiny12 etc than
keeping 2 copies AVR-GCC. Also Bruce's method is stuck with gcc
2.95. I'd like a command line option or the -mcu option to do the
job!
I don't think Bruce's method is limited to GCC 2.95, it's only that
14 matches
Mail list logo