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
fde32bf0
Commit
fde32bf0
authored
10 years ago
by
Hauke Petersen
Browse files
Options
Downloads
Plain Diff
Merge pull request #2578 from fnack/msb_feat
boards/msbiot: Extend the provided features
parents
2ebf6006
54d98a4c
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
boards/msbiot/Makefile.features
+2
-1
2 additions, 1 deletion
boards/msbiot/Makefile.features
boards/msbiot/include/periph_conf.h
+50
-0
50 additions, 0 deletions
boards/msbiot/include/periph_conf.h
with
52 additions
and
1 deletion
boards/msbiot/Makefile.features
+
2
−
1
View file @
fde32bf0
FEATURES_PROVIDED
+=
cpp
FEATURES_PROVIDED
+=
cpp
FEATURES_PROVIDED
+=
periph_uart periph_gpio periph_spi periph_i2c periph_pwm
FEATURES_PROVIDED
+=
periph_uart periph_gpio periph_spi periph_i2c periph_pwm periph_random
\
periph_adc periph_dac
FEATURES_PROVIDED
+=
transceiver
FEATURES_PROVIDED
+=
transceiver
FEATURES_MCU_GROUP
=
cortex_m4
FEATURES_MCU_GROUP
=
cortex_m4
This diff is collapsed.
Click to expand it.
boards/msbiot/include/periph_conf.h
+
50
−
0
View file @
fde32bf0
...
@@ -91,6 +91,56 @@ extern "C" {
...
@@ -91,6 +91,56 @@ extern "C" {
#define PWM_0_PIN_AF 3
#define PWM_0_PIN_AF 3
/** @} */
/** @} */
/**
* @name ADC configuration
* @{
*/
#define ADC_NUMOF (1U)
#define ADC_0_EN 1
#define ADC_MAX_CHANNELS 2
/* ADC 0 configuration */
#define ADC_0_DEV ADC1
#define ADC_0_CHANNELS 2
#define ADC_0_CLKEN() (RCC->APB2ENR |= RCC_APB2ENR_ADC1EN)
#define ADC_0_CLKDIS() (RCC->APB2ENR &= ~(RCC_APB2ENR_ADC1EN))
#define ADC_0_PORT GPIOB
#define ADC_0_PORT_CLKEN() (RCC->AHB1ENR |= RCC_AHB1ENR_GPIOBEN)
/* ADC 0 channel 0 pin config */
#define ADC_0_CH0 8
#define ADC_0_CH0_PIN 0
/* ADC 0 channel 1 pin config */
#define ADC_0_CH1 9
#define ADC_0_CH1_PIN 1
/** @} */
/**
* @name DAC configuration
* @{
*/
#define DAC_NUMOF (1U)
#define DAC_0_EN 1
#define DAC_MAX_CHANNELS 2
/* DAC 0 configuration */
#define DAC_0_DEV DAC
#define DAC_0_CHANNELS 2
#define DAC_0_CLKEN() (RCC->APB1ENR |= (RCC_APB1ENR_DACEN))
#define DAC_0_CLKDIS() (RCC->APB1ENR &= ~(RCC_APB1ENR_DACEN))
#define DAC_0_PORT GPIOA
#define DAC_0_PORT_CLKEN() (RCC->AHB1ENR |= RCC_AHB1ENR_GPIOAEN)
/* DAC 0 channel config */
#define DAC_0_CH0_PIN 4
#define DAC_0_CH1_PIN 5
/** @} */
/**
* @name Random Number Generator configuration
* @{
*/
#define RANDOM_NUMOF (1U)
/** @} */
/**
/**
* @name UART configuration
* @name UART configuration
* @{
* @{
...
...
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