From fe7dabd1f2a6707dc22def9a94dcaa23407dfe18 Mon Sep 17 00:00:00 2001 From: Mariano Alvira Date: Sat, 4 Apr 2009 15:52:09 -0400 Subject: [PATCH] updated other tests with startup section --- tests/blink-blue.c | 1 + tests/blink-green.c | 1 + tests/blink-white.c | 1 + tests/uart1-loopback.c | 1 + 4 files changed, 4 insertions(+) diff --git a/tests/blink-blue.c b/tests/blink-blue.c index 095fd9cd7..dda1750bf 100644 --- a/tests/blink-blue.c +++ b/tests/blink-blue.c @@ -6,6 +6,7 @@ #include "embedded_types.h" +__attribute__ ((section ("startup"))) void main(void) { *(volatile uint32_t *)GPIO_PAD_DIR0 = 0x00000400; diff --git a/tests/blink-green.c b/tests/blink-green.c index ededc94e7..2a7aa7add 100644 --- a/tests/blink-green.c +++ b/tests/blink-green.c @@ -6,6 +6,7 @@ #include "embedded_types.h" +__attribute__ ((section ("startup"))) void main(void) { *(volatile uint32_t *)GPIO_PAD_DIR0 = 0x00000200; diff --git a/tests/blink-white.c b/tests/blink-white.c index 0376d3f7d..87a7f6720 100644 --- a/tests/blink-white.c +++ b/tests/blink-white.c @@ -6,6 +6,7 @@ #include "embedded_types.h" +__attribute__ ((section ("startup"))) void main(void) { *(volatile uint32_t *)GPIO_PAD_DIR0 = 0x00000700; diff --git a/tests/uart1-loopback.c b/tests/uart1-loopback.c index f0bc4b17b..ce516d7ad 100644 --- a/tests/uart1-loopback.c +++ b/tests/uart1-loopback.c @@ -11,6 +11,7 @@ #include "embedded_types.h" +__attribute__ ((section ("startup"))) void main(void) { /* Restore UART regs. to default */ /* in case there is still bootloader state leftover */