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
9136de69
You need to sign in or sign up before continuing.
Commit
9136de69
authored
7 years ago
by
Hauke Petersen
Browse files
Options
Downloads
Patches
Plain Diff
boards/arduino-due: style cleanup in periph_conf.h
parent
b0aaf8d1
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
boards/arduino-due/include/periph_conf.h
+50
-16
50 additions, 16 deletions
boards/arduino-due/include/periph_conf.h
with
50 additions
and
16 deletions
boards/arduino-due/include/periph_conf.h
+
50
−
16
View file @
9136de69
...
@@ -28,7 +28,7 @@ extern "C" {
...
@@ -28,7 +28,7 @@ extern "C" {
#endif
#endif
/**
/**
* @name Clock configuration
* @name
Clock configuration
* @{
* @{
*/
*/
/* targeted system core clock */
/* targeted system core clock */
...
@@ -48,13 +48,12 @@ extern "C" {
...
@@ -48,13 +48,12 @@ extern "C" {
/** @} */
/** @} */
/**
/**
* @name Timer peripheral configuration
* @name
Timer peripheral configuration
* @{
* @{
*/
*/
static
const
timer_conf_t
timer_config
[]
=
{
static
const
timer_conf_t
timer_config
[]
=
{
/* dev, channel 0 ID */
{
.
dev
=
TC0
,
.
id_ch0
=
ID_TC0
},
{
TC0
,
ID_TC0
},
{
.
dev
=
TC1
,
.
id_ch0
=
ID_TC3
}
{
TC1
,
ID_TC3
},
};
};
#define TIMER_0_ISR isr_tc0
#define TIMER_0_ISR isr_tc0
...
@@ -64,15 +63,50 @@ static const timer_conf_t timer_config[] = {
...
@@ -64,15 +63,50 @@ static const timer_conf_t timer_config[] = {
/** @} */
/** @} */
/**
/**
* @name UART configuration
* @name
UART configuration
* @{
* @{
*/
*/
static
const
uart_conf_t
uart_config
[]
=
{
static
const
uart_conf_t
uart_config
[]
=
{
/* device, rx port, tx port, rx pin, tx pin, mux, PMC bit, IRGn line */
{
{(
Uart
*
)
UART
,
PIOA
,
PIOA
,
8
,
9
,
GPIO_MUX_A
,
ID_UART
,
UART_IRQn
},
.
dev
=
(
Uart
*
)
UART
,
{(
Uart
*
)
USART0
,
PIOA
,
PIOA
,
10
,
11
,
GPIO_MUX_A
,
ID_USART0
,
USART0_IRQn
},
.
rx_port
=
PIOA
,
{(
Uart
*
)
USART1
,
PIOA
,
PIOA
,
12
,
13
,
GPIO_MUX_A
,
ID_USART1
,
USART1_IRQn
},
.
tx_port
=
PIOA
,
{(
Uart
*
)
USART3
,
PIOD
,
PIOD
,
4
,
5
,
GPIO_MUX_B
,
ID_USART3
,
USART3_IRQn
}
.
rx_pin
=
8
,
.
tx_pin
=
9
,
.
mux
=
GPIO_MUX_A
,
.
pmc_id
=
ID_UART
,
.
irqn
=
UART_IRQn
},
{
.
dev
=
(
Uart
*
)
USART0
,
.
rx_port
=
PIOA
,
.
tx_port
=
PIOA
,
.
rx_pin
=
10
,
.
tx_pin
=
11
,
.
mux
=
GPIO_MUX_A
,
.
pmc_id
=
ID_USART0
,
.
irqn
=
USART0_IRQn
},
{
.
dev
=
(
Uart
*
)
USART1
,
.
rx_port
=
PIOA
,
.
tx_port
=
PIOA
,
.
rx_pin
=
12
,
.
tx_pin
=
13
,
.
mux
=
GPIO_MUX_A
,
.
pmc_id
=
ID_USART1
,
.
irqn
=
USART1_IRQn
},
{
.
dev
=
(
Uart
*
)
USART3
,
.
rx_port
=
PIOD
,
.
tx_port
=
PIOD
,
.
rx_pin
=
4
,
.
tx_pin
=
5
,
.
mux
=
GPIO_MUX_B
,
.
pmc_id
=
ID_USART3
,
.
irqn
=
USART3_IRQn
},
};
};
/* define interrupt vectors */
/* define interrupt vectors */
...
@@ -85,7 +119,7 @@ static const uart_conf_t uart_config[] = {
...
@@ -85,7 +119,7 @@ static const uart_conf_t uart_config[] = {
/** @} */
/** @} */
/**
/**
* @name SPI configuration
* @name
SPI configuration
* @{
* @{
*/
*/
static
const
spi_conf_t
spi_config
[]
=
{
static
const
spi_conf_t
spi_config
[]
=
{
...
@@ -107,10 +141,10 @@ static const spi_conf_t spi_config[] = {
...
@@ -107,10 +141,10 @@ static const spi_conf_t spi_config[] = {
* @{
* @{
*/
*/
static
const
pwm_chan_conf_t
pwm_chan
[]
=
{
static
const
pwm_chan_conf_t
pwm_chan
[]
=
{
{
.
pin
=
GPIO_PIN
(
PC
,
21
),
.
hwchan
=
4
,
},
{
.
pin
=
GPIO_PIN
(
PC
,
21
),
.
hwchan
=
4
},
{
.
pin
=
GPIO_PIN
(
PC
,
22
),
.
hwchan
=
5
,
},
{
.
pin
=
GPIO_PIN
(
PC
,
22
),
.
hwchan
=
5
},
{
.
pin
=
GPIO_PIN
(
PC
,
23
),
.
hwchan
=
6
,
},
{
.
pin
=
GPIO_PIN
(
PC
,
23
),
.
hwchan
=
6
},
{
.
pin
=
GPIO_PIN
(
PC
,
24
),
.
hwchan
=
7
,
}
{
.
pin
=
GPIO_PIN
(
PC
,
24
),
.
hwchan
=
7
}
};
};
#define PWM_NUMOF (1U)
#define PWM_NUMOF (1U)
...
...
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