Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
micropython
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Anne Jan Brouwer
micropython
Commits
dbcd4030
Verified
Commit
dbcd4030
authored
6 years ago
by
rahix
Browse files
Options
Downloads
Patches
Plain Diff
WIP: Fix uart HAL
Signed-off-by:
Rahix
<
rahix@rahix.de
>
parent
8c8d49d0
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
ports/card10/uart_core.c
+2
-17
2 additions, 17 deletions
ports/card10/uart_core.c
with
2 additions
and
17 deletions
ports/card10/uart_core.c
+
2
−
17
View file @
dbcd4030
...
@@ -6,22 +6,7 @@
...
@@ -6,22 +6,7 @@
* Core UART functions to implement for a port
* Core UART functions to implement for a port
*/
*/
mxc_uart_regs_t
*
ConsoleUart
=
MXC_UART_GET_UART
(
CONSOLE_UART
);
extern
mxc_uart_regs_t
*
ConsoleUart
;
const
uart_cfg_t
uart_cfg
=
{
.
parity
=
UART_PARITY_DISABLE
,
.
size
=
UART_DATA_SIZE_8_BITS
,
.
stop
=
UART_STOP_1
,
.
flow
=
UART_FLOW_CTRL_DIS
,
.
pol
=
UART_FLOW_POL_DIS
,
.
baud
=
CONSOLE_BAUD
,
.
clksel
=
UART_CLKSEL_SYSTEM
};
const
sys_cfg_uart_t
uart_sys_cfg
=
{
.
map
=
MAP_A
,
.
flow
=
Disable
};
// Receive single character
// Receive single character
int
mp_hal_stdin_rx_chr
(
void
)
{
int
mp_hal_stdin_rx_chr
(
void
)
{
...
@@ -30,5 +15,5 @@ int mp_hal_stdin_rx_chr(void) {
...
@@ -30,5 +15,5 @@ int mp_hal_stdin_rx_chr(void) {
// Send string of given length
// Send string of given length
void
mp_hal_stdout_tx_strn
(
const
char
*
str
,
mp_uint_t
len
)
{
void
mp_hal_stdout_tx_strn
(
const
char
*
str
,
mp_uint_t
len
)
{
UART_Write
(
ConsoleUart
,
str
,
len
);
UART_Write
(
ConsoleUart
,
(
uint8_t
*
)
str
,
len
);
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment