avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] Threads implementation for 8535.


From: Brian Dean
Subject: Re: [avr-gcc-list] Threads implementation for 8535.
Date: Sun, 19 Oct 2003 13:53:45 -0400
User-agent: Mutt/1.5.4i

On Sun, Oct 19, 2003 at 03:58:58PM +0300, John Yannakopoulos wrote:

> Does anybody know of an existing preemptive thread implementation in
> C for the AVR 8535 series microcontroller? I have already
> encountered the Mini Threads for the 1200 mC but its model is
> cooperative and not preemptive, as well as is written in assembly
> totally.

I've written one, you might find it useful.  See:

        http://www.bdmicro.com/code/

See the 'diag' project.  The interesting files are:

        threads.c
        threads.h
        thread_swtch.S

Mostly C, the context switch routine is in assembly.  See the 'diag.c'
file for declarations and usage.  I've used this on ATmega128 mostly,
but I've also used it on an ATmega163.

Cheers,
-Brian
-- 
Brian Dean, address@hidden
BDMICRO - Maker of the MAVRIC ATmega128 Dev Board
http://www.bdmicro.com/


reply via email to

[Prev in Thread] Current Thread [Next in Thread]