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
7913d192
Commit
7913d192
authored
8 years ago
by
Antonio Galea
Committed by
Alexandre Abadie
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
boards/saml21-xpro: add i2c configuration
parent
dae3472d
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/saml21-xpro/Makefile.features
+1
-0
1 addition, 0 deletions
boards/saml21-xpro/Makefile.features
boards/saml21-xpro/include/periph_conf.h
+17
-1
17 additions, 1 deletion
boards/saml21-xpro/include/periph_conf.h
with
18 additions
and
1 deletion
boards/saml21-xpro/Makefile.features
+
1
−
0
View file @
7913d192
...
@@ -3,6 +3,7 @@ FEATURES_PROVIDED += periph_adc
...
@@ -3,6 +3,7 @@ FEATURES_PROVIDED += periph_adc
FEATURES_PROVIDED
+=
periph_cpuid
FEATURES_PROVIDED
+=
periph_cpuid
FEATURES_PROVIDED
+=
periph_flashpage
FEATURES_PROVIDED
+=
periph_flashpage
FEATURES_PROVIDED
+=
periph_gpio
FEATURES_PROVIDED
+=
periph_gpio
FEATURES_PROVIDED
+=
periph_i2c
FEATURES_PROVIDED
+=
periph_rtc
FEATURES_PROVIDED
+=
periph_rtc
FEATURES_PROVIDED
+=
periph_rtt
FEATURES_PROVIDED
+=
periph_rtt
FEATURES_PROVIDED
+=
periph_spi
FEATURES_PROVIDED
+=
periph_spi
...
...
This diff is collapsed.
Click to expand it.
boards/saml21-xpro/include/periph_conf.h
+
17
−
1
View file @
7913d192
...
@@ -96,7 +96,23 @@ static const spi_conf_t spi_config[] = {
...
@@ -96,7 +96,23 @@ static const spi_conf_t spi_config[] = {
* @name I2C configuration
* @name I2C configuration
* @{
* @{
*/
*/
#define I2C_NUMOF (0)
#define I2C_NUMOF (1U)
#define I2C_0_EN 1
#define I2C_1_EN 0
#define I2C_2_EN 0
#define I2C_3_EN 0
#define I2C_IRQ_PRIO 1
#define I2C_0_DEV SERCOM2->I2CM
#define I2C_0_IRQ SERCOM2_IRQn
#define I2C_0_ISR isr_sercom2
/* I2C 0 GCLK */
#define I2C_0_GCLK_ID SERCOM2_GCLK_ID_CORE
#define I2C_0_GCLK_ID_SLOW SERCOM2_GCLK_ID_SLOW
/* I2C 0 pin configuration */
#define I2C_0_SDA GPIO_PIN(PA, 8)
#define I2C_0_SCL GPIO_PIN(PA, 9)
#define I2C_0_MUX GPIO_MUX_D
/** @} */
/** @} */
/**
/**
...
...
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