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
00e13e57
Commit
00e13e57
authored
6 years ago
by
Bas Stottelaar
Browse files
Options
Downloads
Patches
Plain Diff
boards: slstk3402a: use wtimer by default
parent
28d0e468
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
boards/slstk3402a/doc.txt
+13
-13
13 additions, 13 deletions
boards/slstk3402a/doc.txt
boards/slstk3402a/include/board.h
+2
-4
2 additions, 4 deletions
boards/slstk3402a/include/board.h
boards/slstk3402a/include/periph_conf.h
+6
-6
6 additions, 6 deletions
boards/slstk3402a/include/periph_conf.h
with
21 additions
and
23 deletions
boards/slstk3402a/doc.txt
+
13
−
13
View file @
00e13e57
...
@@ -55,19 +55,19 @@ This is the pinout of the expansion header on the right side of the board. PIN 1
...
@@ -55,19 +55,19 @@ This is the pinout of the expansion header on the right side of the board. PIN 1
**Note:** some pins are connected to the board controller, when enabled!
**Note:** some pins are connected to the board controller, when enabled!
### Peripheral mapping
### Peripheral mapping
| Peripheral | Number | Hardware | Pins | Comments |
| Peripheral | Number | Hardware
| Pins | Comments |
|------------|---------|-----------------|---------------------------------|-----------------------------------------------------------|
|------------|---------|-----------------
--
|---------------------------------|-----------------------------------------------------------|
| ADC | 0 | ADC0 | CHAN0: internal temperature | Ports are fixed, 14/16-bit resolution not supported |
| ADC | 0 | ADC0
| CHAN0: internal temperature | Ports are fixed, 14/16-bit resolution not supported |
| I2C | 0 | I2C0 | SDA: PC10, CLK: PC11 | `I2C_SPEED_LOW` and `I2C_SPEED_HIGH` clock speed deviate |
| I2C | 0 | I2C0
| SDA: PC10, CLK: PC11 | `I2C_SPEED_LOW` and `I2C_SPEED_HIGH` clock speed deviate |
| HWCRYPTO | — | — | | AES128/AES256, SHA1, SHA256 |
| HWCRYPTO | — | —
| | AES128/AES256, SHA1, SHA256 |
| HWRNG | — | TNRG0 | | Hardware-based true random number generator |
| HWRNG | — | TNRG0
| | Hardware-based true random number generator |
| RTT | — | RTCC | | 1 Hz interval. Either RTT or RTC (see below) |
| RTT | — | RTCC
| | 1 Hz interval. Either RTT or RTC (see below) |
| RTC | — | RTCC | | 1 Hz interval. Either RTC or RTT (see below) |
| RTC | — | RTCC
| | 1 Hz interval. Either RTC or RTT (see below) |
| SPI | 0 | USART1 | MOSI: PC6, MISO: PC7, CLK: PC8 | |
| SPI | 0 | USART1
| MOSI: PC6, MISO: PC7, CLK: PC8 | |
| Timer | 0 | TIMER0 + TIMER1 | | TIMER0 is used as prescaler (must be adjecent) |
| Timer | 0 |
W
TIMER0 +
W
TIMER1 | |
W
TIMER0 is used as prescaler (must be adjecent) |
| UART | 0 | USART0 | RX: PA1, TX: PA0 | Default STDIO output |
| UART | 0 | USART0
| RX: PA1, TX: PA0 | Default STDIO output |
| | 1 | USART1 | RX: PC6, TX: PC7 | |
| | 1 | USART1
| RX: PC6, TX: PC7 | |
| | 2 | LEUART0 | RX: PD11, TX: PD10 | Baud rate limited (see below) |
| | 2 | LEUART0
| RX: PD11, TX: PD10 | Baud rate limited (see below) |
### User interface
### User interface
| Peripheral | Mapped to | Pin | Comments |
| Peripheral | Mapped to | Pin | Comments |
...
...
This diff is collapsed.
Click to expand it.
boards/slstk3402a/include/board.h
+
2
−
4
View file @
00e13e57
...
@@ -31,12 +31,10 @@ extern "C" {
...
@@ -31,12 +31,10 @@ extern "C" {
/**
/**
* @name Xtimer configuration
* @name Xtimer configuration
*
* The timer runs at 250 KHz to increase accuracy.
* @{
* @{
*/
*/
#define XTIMER_HZ (
25
0000UL)
#define XTIMER_HZ (
100
0000UL)
#define XTIMER_WIDTH (
16
)
#define XTIMER_WIDTH (
32
)
/** @} */
/** @} */
/**
/**
...
...
This diff is collapsed.
Click to expand it.
boards/slstk3402a/include/periph_conf.h
+
6
−
6
View file @
00e13e57
...
@@ -150,19 +150,19 @@ static const spi_dev_t spi_config[] = {
...
@@ -150,19 +150,19 @@ static const spi_dev_t spi_config[] = {
static
const
timer_conf_t
timer_config
[]
=
{
static
const
timer_conf_t
timer_config
[]
=
{
{
{
{
{
.
dev
=
TIMER0
,
.
dev
=
W
TIMER0
,
.
cmu
=
cmuClock_TIMER0
.
cmu
=
cmuClock_
W
TIMER0
},
},
{
{
.
dev
=
TIMER1
,
.
dev
=
W
TIMER1
,
.
cmu
=
cmuClock_TIMER1
.
cmu
=
cmuClock_
W
TIMER1
},
},
.
irq
=
TIMER1_IRQn
.
irq
=
W
TIMER1_IRQn
}
}
};
};
#define TIMER_NUMOF PERIPH_NUMOF(timer_config)
#define TIMER_NUMOF PERIPH_NUMOF(timer_config)
#define TIMER_0_ISR isr_timer1
#define TIMER_0_ISR isr_
w
timer1
/** @} */
/** @} */
/**
/**
...
...
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