-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.c
42 lines (33 loc) · 752 Bytes
/
main.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 <bmarm/arm.h>
#include <bmarm/omap35x.h>
extern int printf(const char *fmt, ...);
int putchar(int c)
{
if (c == '\n')
uart3_write('\r');
uart3_write(c);
return 0;
}
int puts(const char *s)
{
while (*s)
putchar(*s++);
putchar('\n');
return 0;
}
#define BANNER \
"BBBBB MM MM AA RRRRR MM MM \n" \
"B B M M M M A A R R M M M M \n" \
"B B M M M A A R R M M M \n" \
"BBBBB M M M A A RRRRR M M M \n" \
"B B M M AAAAAA R R M M \n" \
"B B M M A A R R M M \n" \
"BBBBB M M A A R R M M \n" \
int main(void)
{
uart3_init();
printf("Hello World!\n");
printf("\n\n%s\n", BANNER);
while (1);
return 0;
}