Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
cf11c961
Commit
cf11c961
authored
Jan 11, 2014
by
Damien George
Browse files
stm: Disable usart calls from C.
Fixes Issue #132.
parent
bc1d3692
Changes
1
Show whitespace changes
Inline
Side-by-side
stm/main.c
View file @
cf11c961
...
...
@@ -307,7 +307,7 @@ char *strdup(const char *str) {
static
const
char
*
readline_hist
[
READLINE_HIST_SIZE
]
=
{
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
};
void
stdout_tx_str
(
const
char
*
str
)
{
usart_tx_str
(
str
);
//
usart_tx_str(str);
// disabled because usart is a Python object and we now need specify which USART port
usb_vcp_send_str
(
str
);
}
...
...
@@ -322,10 +322,10 @@ int readline(vstr_t *line, const char *prompt) {
if
(
usb_vcp_rx_any
()
!=
0
)
{
c
=
usb_vcp_rx_get
();
break
;
}
else
if
(
usart_rx_any
())
{
}
/*
else if (usart_rx_any()) {
// disabled because usart is a Python object and we now need specify which USART port
c = usart_rx_char();
break;
}
}
*/
sys_tick_delay_ms
(
1
);
if
(
storage_needs_flush
())
{
storage_flush
();
...
...
@@ -775,7 +775,7 @@ int main(void) {
switch_init
();
storage_init
();
//usart_init(); disabled while wi-fi is enabled
//usart_init(); disabled while wi-fi is enabled
; also disabled because now usart is a proper Python object
int
first_soft_reset
=
true
;
...
...
Write
Preview
Supports
Markdown
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