Merge commit 'af5ee34c353ea2868a4b04b227bc1b511e1ac42b'
[osmocom-bb.git] / src / target / firmware / apps / compal_dsp_dump / main.c
1 /* main program of Free Software for Calypso Phone */
2
3 /* (C) 2010 Harald Welte <laforge@gnumonks.org>
4  * (C) 2010 Sylvain Munaut <tnt@246tNt.com>
5  *
6  * All Rights Reserved
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License along
19  * with this program; if not, write to the Free Software Foundation, Inc.,
20  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
21  *
22  */
23
24 #include <memory.h>
25 #include <delay.h>
26 #include <stdio.h>
27 #include <stdint.h>
28 #include <rffe.h>
29 #include <keypad.h>
30 #include <board.h>
31 #include <abb/twl3025.h>
32 #include <rf/trf6151.h>
33 #include <calypso/clock.h>
34 #include <calypso/tpu.h>
35 #include <calypso/tsp.h>
36 #include <calypso/dsp.h>
37 #include <calypso/irq.h>
38 #include <calypso/misc.h>
39 #include <comm/timer.h>
40
41 /* Main Program */
42 const char *hr = "======================================================================\n";
43
44 int main(void)
45 {
46         board_init();
47
48         puts("\n\nOSMOCOM Compal DSP Dumper (revision " GIT_REVISION ")\n");
49         puts(hr);
50
51         /* Dump device identification */
52         dump_dev_id();
53         puts(hr);
54
55         /* Dump DSP content */
56         dsp_dump();
57
58         while (1) {
59                 update_timers();
60         }
61 }
62