forked from pacew/armdsp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdsptest.c
42 lines (33 loc) · 1.02 KB
/
dsptest.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#include <stdio.h>
#include <stdint.h>
#include "regs-omap-l138.h"
#define writereg(addr,val) (*(uint32_t volatile *)(addr) = (val))
double x = 3.14;
int
main (int argc, char **argv)
{
int i;
unsigned char *p;
printf ("dsptest %s %g\n", __TIME__, x);
p = (unsigned char *)&x;
for (i = 0; i < 8; i++)
printf ("%02x ", p[i]);
printf ("\n");
writereg (SYSCFG0_CHIPSIG, 2); /* CHIPINT1 to arm */
return (0);
}
void __interrupt int_handler1 (void) { }
void __interrupt int_handler2 (void) { }
void __interrupt int_handler3 (void) { }
void __interrupt int_handler4 (void) { }
void __interrupt int_handler5 (void) { }
void __interrupt int_handler6 (void) { }
void __interrupt int_handler7 (void) { }
void __interrupt int_handler8 (void) { }
void __interrupt int_handler9 (void) { }
void __interrupt int_handler10 (void) { }
void __interrupt int_handler11 (void) { }
void __interrupt int_handler12 (void) { }
void __interrupt int_handler13 (void) { }
void __interrupt int_handler14 (void) { }
void __interrupt int_handler15 (void) { }