updated other tests with startup section
This commit is contained in:
parent
a940f4db2b
commit
fe7dabd1f2
|
@ -6,6 +6,7 @@
|
||||||
|
|
||||||
#include "embedded_types.h"
|
#include "embedded_types.h"
|
||||||
|
|
||||||
|
__attribute__ ((section ("startup")))
|
||||||
void main(void) {
|
void main(void) {
|
||||||
|
|
||||||
*(volatile uint32_t *)GPIO_PAD_DIR0 = 0x00000400;
|
*(volatile uint32_t *)GPIO_PAD_DIR0 = 0x00000400;
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
|
|
||||||
#include "embedded_types.h"
|
#include "embedded_types.h"
|
||||||
|
|
||||||
|
__attribute__ ((section ("startup")))
|
||||||
void main(void) {
|
void main(void) {
|
||||||
|
|
||||||
*(volatile uint32_t *)GPIO_PAD_DIR0 = 0x00000200;
|
*(volatile uint32_t *)GPIO_PAD_DIR0 = 0x00000200;
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
|
|
||||||
#include "embedded_types.h"
|
#include "embedded_types.h"
|
||||||
|
|
||||||
|
__attribute__ ((section ("startup")))
|
||||||
void main(void) {
|
void main(void) {
|
||||||
|
|
||||||
*(volatile uint32_t *)GPIO_PAD_DIR0 = 0x00000700;
|
*(volatile uint32_t *)GPIO_PAD_DIR0 = 0x00000700;
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
|
|
||||||
#include "embedded_types.h"
|
#include "embedded_types.h"
|
||||||
|
|
||||||
|
__attribute__ ((section ("startup")))
|
||||||
void main(void) {
|
void main(void) {
|
||||||
/* Restore UART regs. to default */
|
/* Restore UART regs. to default */
|
||||||
/* in case there is still bootloader state leftover */
|
/* in case there is still bootloader state leftover */
|
||||||
|
|
Loading…
Reference in a new issue