Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
494600bc
Commit
494600bc
authored
Mar 19, 2014
by
Damien George
Browse files
stmhal: Add lcd.c to Makefile, and init LCD in main.
parent
e2e90112
Changes
2
Hide whitespace changes
Inline
Side-by-side
stmhal/Makefile
View file @
494600bc
...
...
@@ -83,8 +83,8 @@ SRC_C = \
file.c
\
sdcard.c
\
diskio.c
\
lcd.c
\
# lcd.c \
# servo.c \
# accel.c \
# timer.c \
...
...
stmhal/main.c
View file @
494600bc
...
...
@@ -32,9 +32,9 @@
#include
"storage.h"
#include
"sdcard.h"
#include
"ff.h"
#include
"lcd.h"
#if 0
#include "servo.h"
#include "lcd.h"
#include "accel.h"
#include "timer.h"
#include "pybwlan.h"
...
...
@@ -64,10 +64,8 @@ void flash_error(int n) {
void
__fatal_error
(
const
char
*
msg
)
{
#if MICROPY_HW_HAS_LCD
#if 0
lcd_print_strn
(
"
\n
FATAL ERROR:
\n
"
,
14
);
lcd_print_strn
(
msg
,
strlen
(
msg
));
#endif
#endif
for
(;;)
{
flash_error
(
1
);
...
...
@@ -260,12 +258,12 @@ soft_reset:
switch_init
();
#endif
#if 0
#if MICROPY_HW_HAS_LCD
// LCD init (just creates class, init hardware by calling LCD())
lcd_init
();
#endif
#if 0
#if MICROPY_HW_ENABLE_SERVO
// servo
servo_init();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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