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
6e51bb74
Commit
6e51bb74
authored
9 years ago
by
Cenk Gündoğan
Browse files
Options
Downloads
Patches
Plain Diff
boards: samr21-xpro: uart config cleanup
parent
3a4b8d79
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
boards/samr21-xpro/include/board.h
+1
-1
1 addition, 1 deletion
boards/samr21-xpro/include/board.h
boards/samr21-xpro/include/periph_conf.h
+2
-6
2 additions, 6 deletions
boards/samr21-xpro/include/periph_conf.h
with
3 additions
and
7 deletions
boards/samr21-xpro/include/board.h
+
1
−
1
View file @
6e51bb74
...
...
@@ -45,7 +45,7 @@ extern "C" {
* @name Define UART device and baudrate for stdio
* @{
*/
#define STDIO UART_
0
#define STDIO UART_
DEV(0)
#define STDIO_BAUDRATE (115200U)
#define STDIO_RX_BUFSIZE (64U)
/** @} */
...
...
This diff is collapsed.
Click to expand it.
boards/samr21-xpro/include/periph_conf.h
+
2
−
6
View file @
6e51bb74
...
...
@@ -103,12 +103,6 @@ extern "C" {
* @name UART configuration
* @{
*/
/* deprecated UART enable defines (to be removed) */
#define UART_NUMOF (2U)
#define UART_0_EN 1
#define UART_1_EN 1
/* UART device configuration */
static
const
uart_conf_t
uart_config
[]
=
{
/* device, RX pin, TX pin, mux */
{
&
SERCOM0
->
USART
,
GPIO_PIN
(
PA
,
5
),
GPIO_PIN
(
PA
,
4
),
GPIO_MUX_D
},
...
...
@@ -118,6 +112,8 @@ static const uart_conf_t uart_config[] = {
/* interrupt function name mapping */
#define UART_0_ISR isr_sercom0
#define UART_1_ISR isr_sercom5
#define UART_NUMOF (sizeof(uart_config) / sizeof(uart_config[0]))
/** @} */
/**
...
...
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