* \brief AT91SAM7S-EK porting test.
*/
+#include <cfg/macros.h>
#include <drv/timer.h>
#include <drv/sysirq_at91.h>
+#include <kern/proc.h>
#include <drv/ser.h>
#include <cfg/macros.h>
#include <io/arm.h>
sysirq_init();
timer_init();
+ proc_init();
+ ASSERT(!IRQ_GETSTATE());
+
+
/* Open the main communication port */
Serial *host_port = ser_open(0);
ser_setparity(host_port, SER_PARITY_NONE);
IRQ_ENABLE;
+ ASSERT(IRQ_GETSTATE());
/* Disable all pullups */
PIOA_PUDR = 0xffffffff;
/* turn first led on */
PIOA_CODR = 0x00000001;
-
-
-
-/*
timer_set_event_softint(&leds_timer, (Hook)leds_toggle, 0);
timer_setDelay(&leds_timer, ms_to_ticks(100));
timer_add(&leds_timer);
-*/
// Main loop
for(;;)
{
ser_printf(host_port," %s", "a");
kprintf("W la figa!\n");
+ proc_test();
iort+= 1;
iort1+= 1;
iort2+= 1;
cpu/arm/drv/ser_at91.c \
mware/event.c \
mware/formatwr.c \
- mware/hex.c
-
-
-
-at91sam7s_CPPASRC = cpu/arm/hw/crtat91sam7s256_rom.S
+ mware/hex.c \
+ kern/proc.c \
+ kern/proc_test.c \
+ kern/monitor.c \
+ kern/signal.c \
+
+at91sam7s_CPPASRC = \
+ cpu/arm/hw/crtat91sam7s256_rom.S \
+ kern/switch_arm.S
at91sam7s_CPPAFLAGS = -O0 -g -gdwarf-2 -g -gen-debug
at91sam7s_CPPFLAGS = -O0 -D'ARCH=0' -D__ARM_AT91SAM7S256__ -g3 -gdwarf-2 -fverbose-asm -Iapp/at91sam7s/hw -Iapp/at91sam7s -Icpu/arm
#if (ARCH & ARCH_EMUL)
#define CONFIG_KERN_DEFSTACKSIZE 65536
#else
- #define CONFIG_KERN_DEFSTACKSIZE 128 /**< Default stack size for each thread. */
+ #define CONFIG_KERN_DEFSTACKSIZE 1024 /**< Default stack size for each thread. */
#endif
/* Memory fill codes to help debugging */