updated other tests with startup section

This commit is contained in:
Mariano Alvira 2009-04-04 15:52:09 -04:00
parent a940f4db2b
commit fe7dabd1f2
4 changed files with 4 additions and 0 deletions

View file

@ -6,6 +6,7 @@
#include "embedded_types.h"
__attribute__ ((section ("startup")))
void main(void) {
*(volatile uint32_t *)GPIO_PAD_DIR0 = 0x00000400;

View file

@ -6,6 +6,7 @@
#include "embedded_types.h"
__attribute__ ((section ("startup")))
void main(void) {
*(volatile uint32_t *)GPIO_PAD_DIR0 = 0x00000200;

View file

@ -6,6 +6,7 @@
#include "embedded_types.h"
__attribute__ ((section ("startup")))
void main(void) {
*(volatile uint32_t *)GPIO_PAD_DIR0 = 0x00000700;

View file

@ -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 */