#ifndef APPCONFIG_H
#define APPCONFIG_H
+/** Kdebug console on debug unit */
+#define CONFIG_KDEBUG_PORT KDEBUG_PORT_DBGU
+
/** Baud-rate for the kdebug console */
#define CONFIG_KDEBUG_BAUDRATE 115200
int main(void)
{
- //kdbg_init();
+ kdbg_init();
sysirq_init();
timer_init();
IRQ_ENABLE;
/* Disable all pullups */
PIOA_PUDR = 0xffffffff;
- /* Set all port pin connected to PIOA */
- PIOA_PER = 0xffffffff;
+ /* Set PA0..3 connected to PIOA */
+ PIOA_PER = 0x0000000f;
/* Set PA0..3 as output */
PIOA_OER = 0x0000000f;
/* Disable multidrive on all pins */
// Main loop
for(;;)
{
+ kprintf("W la figa!\n");
iort+= 1;
iort1+= 1;
iort2+= 1;
# Set to 1 for debug builds
-at91sam7s_DEBUG = 0
+at91sam7s_DEBUG = 1
# Our target application
TRG += at91sam7s
app/at91sam7s/at91sam7s.c \
drv/timer.c \
cpu/arm/drv/sysirq_at91.c \
- mware/event.c
+ mware/event.c \
+ mware/formatwr.c \
+ mware/hex.c
+
at91sam7s_CPPASRC = cpu/arm/hw/crtat91sam7s256_rom.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
-at91sam7s_LDFLAGS = -nostartfiles -T cpu/arm/scripts/at91sam7s256_rom.ld -Wl,--no-warn-mismatch
+at91sam7s_LDFLAGS = -nostartfiles -T cpu/arm/scripts/at91sam7s256_ram.ld -Wl,--no-warn-mismatch
at91sam7s_CPU = arm7tdmi
# Debug stuff
ifeq ($(at91sam7s_DEBUG),1)
at91sam7s_CFLAGS += -D_DEBUG
- at91sam7s_PCSRC += drv/kdebug.c
+ at91sam7s_CSRC += drv/kdebug.c
endif