Battery blinks if >BATTERY_LEVEL_DANGEROUS
[kugel-rb.git] / firmware / thread.h
blobc0eba42597555014e31970ec5183d0494ab8da0d
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
10 * Copyright (C) 2002 by Ulf Ralberg
12 * All files in this archive are subject to the GNU General Public License.
13 * See the file COPYING in the source tree root for full license agreement.
15 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
16 * KIND, either express or implied.
18 ****************************************************************************/
19 #ifndef THREAD_H
20 #define THREAD_H
22 #define MAXTHREADS 16
23 #define DEFAULT_STACK_SIZE 0x800 /* Bytes */
25 int create_thread(void* function, void* stack, int stack_size, char *name);
26 void switch_thread(void);
27 void init_threads(void);
28 int thread_stack_usage(int threadnum);
30 #endif