diff options
author | Harald Welte <laforge@gnumonks.org> | 2010-06-24 18:00:45 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2010-06-24 18:03:08 +0200 |
commit | ef81bf80e1c77de099f096c110ceb8a449c6c6ff (patch) | |
tree | 74bccb6878667b24bb7cfdd590ae88e9433ef3e2 /src/target/firmware/apps | |
parent | 93db95712e8f70a60b2e78dc53978bb51eccbafe (diff) |
[firmware] move board_init() to a gcc-type constructor
Instead of calling board_init() from every main() function explicitly,
we simply mark it as a constructor and have it called automagically
Diffstat (limited to 'src/target/firmware/apps')
-rw-r--r-- | src/target/firmware/apps/compal_dsp_dump/main.c | 3 | ||||
-rw-r--r-- | src/target/firmware/apps/hello_world/main.c | 1 | ||||
-rw-r--r-- | src/target/firmware/apps/l1test/main.c | 1 | ||||
-rw-r--r-- | src/target/firmware/apps/layer1/main.c | 1 |
4 files changed, 0 insertions, 6 deletions
diff --git a/src/target/firmware/apps/compal_dsp_dump/main.c b/src/target/firmware/apps/compal_dsp_dump/main.c index a7126118..282bce28 100644 --- a/src/target/firmware/apps/compal_dsp_dump/main.c +++ b/src/target/firmware/apps/compal_dsp_dump/main.c @@ -57,9 +57,6 @@ const char *hr = "============================================================== int main(void) { - /* Initialize basic board support */ - board_init(); - puts("\n\nCompal DSP data dumper\n"); puts(hr); diff --git a/src/target/firmware/apps/hello_world/main.c b/src/target/firmware/apps/hello_world/main.c index d1a566b9..effbc90a 100644 --- a/src/target/firmware/apps/hello_world/main.c +++ b/src/target/firmware/apps/hello_world/main.c @@ -84,7 +84,6 @@ static void l1a_l23_rx_cb(uint8_t dlci, struct msgb *msg) int main(void) { - board_init(); puts("\n\nHello World from " __FILE__ " program code\n"); puts(hr); /* Dump device identification */ diff --git a/src/target/firmware/apps/l1test/main.c b/src/target/firmware/apps/l1test/main.c index 384820c0..6e78f9c9 100644 --- a/src/target/firmware/apps/l1test/main.c +++ b/src/target/firmware/apps/l1test/main.c @@ -179,7 +179,6 @@ static void key_handler(enum key_codes code, enum key_states state); int main(void) { - board_init(); puts("\n\nHello World from " __FILE__ " program code\n"); puts(hr); diff --git a/src/target/firmware/apps/layer1/main.c b/src/target/firmware/apps/layer1/main.c index a4081233..cf45d7fd 100644 --- a/src/target/firmware/apps/layer1/main.c +++ b/src/target/firmware/apps/layer1/main.c @@ -68,7 +68,6 @@ static void key_handler(enum key_codes code, enum key_states state); int main(void) { - board_init(); puts("\n\nHello World from " __FILE__ " program code\n"); puts(hr); |