Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RIOT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cm-projects
RIOT
Commits
6541678f
You need to sign in or sign up before continuing.
Commit
6541678f
authored
6 years ago
by
Jose Alamos
Browse files
Options
Downloads
Patches
Plain Diff
pkg/openthread: adapt to newer stdio uart header file
parent
3a966526
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pkg/openthread/contrib/platform_uart.c
+4
-4
4 additions, 4 deletions
pkg/openthread/contrib/platform_uart.c
with
4 additions
and
4 deletions
pkg/openthread/contrib/platform_uart.c
+
4
−
4
View file @
6541678f
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
#include
<stdio.h>
#include
<stdio.h>
#include
<string.h>
#include
<string.h>
#include
"
uart_
stdio.h"
#include
"stdio
_uart
.h"
#include
"periph/uart.h"
#include
"periph/uart.h"
#include
"openthread/types.h"
#include
"openthread/types.h"
#include
"openthread/platform/uart.h"
#include
"openthread/platform/uart.h"
...
@@ -71,21 +71,21 @@ otError otPlatUartEnable(void)
...
@@ -71,21 +71,21 @@ otError otPlatUartEnable(void)
gSerialMessage
[
i
].
serial_buffer_status
=
OPENTHREAD_SERIAL_BUFFER_STATUS_FREE
;
gSerialMessage
[
i
].
serial_buffer_status
=
OPENTHREAD_SERIAL_BUFFER_STATUS_FREE
;
}
}
uart_init
(
UART_
STDIO_
DEV
,
UART_STDIO
_BAUDRATE
,
(
uart_rx_cb_t
)
uart_handler
,
NULL
);
uart_init
(
STDIO_
UART_DEV
,
STDIO_UART
_BAUDRATE
,
(
uart_rx_cb_t
)
uart_handler
,
NULL
);
return
OT_ERROR_NONE
;
return
OT_ERROR_NONE
;
}
}
/* OpenThread will call this for disabling UART */
/* OpenThread will call this for disabling UART */
otError
otPlatUartDisable
(
void
)
otError
otPlatUartDisable
(
void
)
{
{
uart_poweroff
(
UART_
STDIO_DEV
);
uart_poweroff
(
STDIO
_UART
_DEV
);
return
OT_ERROR_NONE
;
return
OT_ERROR_NONE
;
}
}
/* OpenThread will call this for sending data through UART */
/* OpenThread will call this for sending data through UART */
otError
otPlatUartSend
(
const
uint8_t
*
aBuf
,
uint16_t
aBufLength
)
otError
otPlatUartSend
(
const
uint8_t
*
aBuf
,
uint16_t
aBufLength
)
{
{
uart_write
(
UART_
STDIO_DEV
,
aBuf
,
aBufLength
);
uart_write
(
STDIO
_UART
_DEV
,
aBuf
,
aBufLength
);
/* Tell OpenThread the sending of UART is done */
/* Tell OpenThread the sending of UART is done */
otPlatUartSendDone
();
otPlatUartSendDone
();
...
...
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