Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Sunxi Tools
Commits
6829404a
Commit
6829404a
authored
May 18, 2013
by
Henrik Nordstrom
Browse files
felboot: Correct merge conflict
parent
99c3501b
Changes
1
Hide whitespace changes
Inline
Side-by-side
felboot/main.c
View file @
6829404a
...
@@ -42,6 +42,7 @@ void preloader_console_init(void)
...
@@ -42,6 +42,7 @@ void preloader_console_init(void)
void
hang
(
void
)
void
hang
(
void
)
{
{
printf
(
"Please reset the board!"
);
printf
(
"Please reset the board!"
);
while
(
1
);
}
}
void
udelay
(
unsigned
long
usec
)
void
udelay
(
unsigned
long
usec
)
...
@@ -98,12 +99,11 @@ void sunxi_board_init(void)
...
@@ -98,12 +99,11 @@ void sunxi_board_init(void)
}
}
#ifndef NO_PRINTF
#ifndef NO_PRINTF
int
putchar
(
int
ch
)
void
putchar
(
int
ch
)
{
{
if
(
ch
==
'\n'
)
if
(
ch
==
'\n'
)
uart_putc
(
'\r'
);
uart_putc
(
'\r'
);
uart_putc
(
ch
);
uart_putc
(
ch
);
return
0
;
}
}
void
puts
(
const
char
*
str
)
void
puts
(
const
char
*
str
)
...
@@ -113,14 +113,12 @@ void puts(const char *str)
...
@@ -113,14 +113,12 @@ void puts(const char *str)
}
}
#else
#else
int
putchar
(
int
ch
)
void
putchar
(
int
ch
)
{
{
return
uart_putc
(
ch
);
}
}
int
puts
(
const
char
*
str
)
void
puts
(
const
char
*
str
)
{
{
return
uart_puts
(
str
);
}
}
int
printf
(
const
char
*
fmt
,
...)
int
printf
(
const
char
*
fmt
,
...)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment