Update at91sam7 demo to new directory layout.
authorbatt <batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 4 Apr 2008 14:00:32 +0000 (14:00 +0000)
committerbatt <batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 4 Apr 2008 14:00:32 +0000 (14:00 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1215 38d2e660-2303-0410-9eaa-f027e97ec537

app/at91sam7s/appconfig.h
app/at91sam7s/at91sam7s.mk
bertos/cpu/arm/io/at91sam7.h
bertos/drv/kdebug.c

index 501b07764dc7b2f0b938fd8790cf6c0cb1da1433..13e0171b77d5b8a4fdf0d2a6829ccae3d51fa6cf 100644 (file)
        #define CONFIG_UART1_RXBUFSIZE  64
 
        /** [bytes] Size of the outbound FIFO buffer for SPI port (AVR only). */
-       #define CONFIG_SPI_TXBUFSIZE    16
+       #define CONFIG_SPI0_TXBUFSIZE   16
 
        /** [bytes] Size of the inbound FIFO buffer for SPI port (AVR only). */
-       #define CONFIG_SPI_RXBUFSIZE    32
+       #define CONFIG_SPI0_RXBUFSIZE   32
 
        /** SPI data order (AVR only). */
        #define CONFIG_SPI_DATA_ORDER   SER_MSB_FIRST
 /// Disable tests.
 #define CONFIG_TEST 0
 
+#define CONFIG_FAST_MEM 0
+
 
 #endif /* APPCONFIG_COMMON_H */
index e346ceb0e53a8aa526a495daaf7b3fb277b826bc..c8ea600ef45a738d7a2d798c1db39c9679f0850a 100644 (file)
@@ -17,34 +17,34 @@ TRG += at91sam7s
 
 at91sam7s_CSRC = \
        app/at91sam7s/at91sam7s.c \
-       drv/timer.c \
-       drv/ser.c \
-       cpu/arm/drv/sysirq_at91.c \
-       cpu/arm/drv/ser_at91.c \
-       mware/event.c \
-       mware/formatwr.c \
-       mware/hex.c \
-       kern/kfile.c \
-       kern/proc.c \
-       kern/proc_test.c \
-       kern/monitor.c \
-       kern/signal.c
+       bertos/drv/timer.c \
+       bertos/drv/ser.c \
+       bertos/cpu/arm/drv/sysirq_at91.c \
+       bertos/cpu/arm/drv/ser_at91.c \
+       bertos/mware/event.c \
+       bertos/mware/formatwr.c \
+       bertos/mware/hex.c \
+       bertos/kern/kfile.c \
+       bertos/kern/proc.c \
+       bertos/kern/proc_test.c \
+       bertos/kern/monitor.c \
+       bertos/kern/signal.c
 
 at91sam7s_CPPASRC = \
-       cpu/arm/hw/crtat91sam7_rom.S \
-       kern/switch_arm.S
+       bertos/cpu/arm/hw/crtat91sam7_rom.S \
+       bertos/kern/switch_arm.S
 
 at91sam7s_CROSS = arm-elf-
 
 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/at91sam7_256_ram.ld -Wl,--no-warn-mismatch
+at91sam7s_CPPFLAGS = -O0 -D'ARCH=0' -D__ARM_AT91SAM7S256__ -g3 -gdwarf-2 -fverbose-asm -Iapp/at91sam7s/hw -Iapp/at91sam7s -Ibertos/cpu/arm
+at91sam7s_LDFLAGS = -nostartfiles -T bertos/cpu/arm/scripts/at91sam7_256_ram.ld -Wl,--no-warn-mismatch
 
 at91sam7s_CPU = arm7tdmi
 
 # Debug stuff
 ifeq ($(at91sam7s_DEBUG),1)
        at91sam7s_CFLAGS += -D_DEBUG
-       at91sam7s_CSRC += drv/kdebug.c
+       at91sam7s_CSRC += bertos/drv/kdebug.c
 endif
 
index 978c9e34db5e3a8d11d342ec0b3b1996f865e417..807a5e6ad1563d66d4652298baf5763166765dd9 100644 (file)
 #if CPU_ARM_AT91SAM7X256 || CPU_ARM_AT91SAM7X128
        #define TWD  10
        #define TWCK 11
+#elif CPU_ARM_AT91SAM7S256
+       #define TWD  3
+       #define TWCK 4
 #else
        #error No TWI pin names definition for selected ARM CPU
 #endif
index c461b7281cbf2b496ef374119748fbdd082318d4..3b2c18bd90671c6ffc76dfa73ca2d38c08dcaa4a 100644 (file)
@@ -46,9 +46,6 @@
 #include <cfg/debug.h>
 
 #include <appconfig.h>
-#warning what about these?
-//#include <hw_cpu.h>     /* for CLOCK_FREQ */
-//#include <hw_ser.h>     /* Required for bus macros overrides */
 
 #include <mware/formatwr.h> /* for _formatted_write() */
 #include <mware/pgm.h>