updated other tests with startup section
This commit is contained in:
parent
a940f4db2b
commit
fe7dabd1f2
4 changed files with 4 additions and 0 deletions
|
@ -6,6 +6,7 @@
|
|||
|
||||
#include "embedded_types.h"
|
||||
|
||||
__attribute__ ((section ("startup")))
|
||||
void main(void) {
|
||||
|
||||
*(volatile uint32_t *)GPIO_PAD_DIR0 = 0x00000400;
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
#include "embedded_types.h"
|
||||
|
||||
__attribute__ ((section ("startup")))
|
||||
void main(void) {
|
||||
|
||||
*(volatile uint32_t *)GPIO_PAD_DIR0 = 0x00000200;
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
#include "embedded_types.h"
|
||||
|
||||
__attribute__ ((section ("startup")))
|
||||
void main(void) {
|
||||
|
||||
*(volatile uint32_t *)GPIO_PAD_DIR0 = 0x00000700;
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue