Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cpu/saml21: add compatibily headers for vendor files migration #20850

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion boards/bastwan/include/periph_conf.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ static const tc32_conf_t timer_config[] = {
.dev = TC0,
.irq = TC0_IRQn,
.mclk = &MCLK->APBCMASK.reg,
.mclk_mask = MCLK_APBCMASK_TC0 | MCLK_APBCMASK_TC1,
.mclk_mask = MCLK_APBCMASK_TC0_Msk | MCLK_APBCMASK_TC1_Msk,
.gclk_id = TC0_GCLK_ID,
.gclk_src = SAM0_GCLK_TIMER,
.flags = TC_CTRLA_MODE_COUNT32,
Expand Down
2 changes: 1 addition & 1 deletion boards/saml21-xpro/include/periph_conf.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
.dev = TC0,
.irq = TC0_IRQn,
.mclk = &MCLK->APBCMASK.reg,
.mclk_mask = MCLK_APBCMASK_TC0 | MCLK_APBCMASK_TC1,
.mclk_mask = MCLK_APBCMASK_TC0_Msk | MCLK_APBCMASK_TC1_Msk,
.gclk_id = TC0_GCLK_ID,
.gclk_src = SAM0_GCLK_TIMER,
.flags = TC_CTRLA_MODE_COUNT32,
Expand All @@ -69,8 +69,8 @@
static const uart_conf_t uart_config[] = {
{ /* Virtual COM Port */
.dev = &SERCOM3->USART,
.rx_pin = GPIO_PIN(PA,23),

Check warning on line 72 in boards/saml21-xpro/include/periph_conf.h

View workflow job for this annotation

GitHub Actions / static-tests

comma should be followed by whitespace
.tx_pin = GPIO_PIN(PA,22),

Check warning on line 73 in boards/saml21-xpro/include/periph_conf.h

View workflow job for this annotation

GitHub Actions / static-tests

comma should be followed by whitespace
#ifdef MODULE_PERIPH_UART_HW_FC
.rts_pin = GPIO_UNDEF,
.cts_pin = GPIO_UNDEF,
Expand Down
2 changes: 1 addition & 1 deletion boards/samr30-xpro/include/periph_conf.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
.dev = TC0,
.irq = TC0_IRQn,
.mclk = &MCLK->APBCMASK.reg,
.mclk_mask = MCLK_APBCMASK_TC0 | MCLK_APBCMASK_TC1,
.mclk_mask = MCLK_APBCMASK_TC0_Msk | MCLK_APBCMASK_TC1_Msk,
.gclk_id = TC0_GCLK_ID,
.gclk_src = SAM0_GCLK_TIMER,
.flags = TC_CTRLA_MODE_COUNT32,
Expand All @@ -59,8 +59,8 @@
static const uart_conf_t uart_config[] = {
{ /* Virtual COM Port */
.dev = &SERCOM0->USART,
.rx_pin = GPIO_PIN(PA,5),

Check warning on line 62 in boards/samr30-xpro/include/periph_conf.h

View workflow job for this annotation

GitHub Actions / static-tests

comma should be followed by whitespace
.tx_pin = GPIO_PIN(PA,4),

Check warning on line 63 in boards/samr30-xpro/include/periph_conf.h

View workflow job for this annotation

GitHub Actions / static-tests

comma should be followed by whitespace
#ifdef MODULE_PERIPH_UART_HW_FC
.rts_pin = GPIO_UNDEF,
.cts_pin = GPIO_UNDEF,
Expand Down
4 changes: 2 additions & 2 deletions boards/samr34-xpro/include/periph_conf.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ static const tc32_conf_t timer_config[] = {
.dev = TC0,
.irq = TC0_IRQn,
.mclk = &MCLK->APBCMASK.reg,
.mclk_mask = MCLK_APBCMASK_TC0 | MCLK_APBCMASK_TC1,
.mclk_mask = MCLK_APBCMASK_TC0_Msk | MCLK_APBCMASK_TC1_Msk,
.gclk_id = TC0_GCLK_ID,
.gclk_src = SAM0_GCLK_TIMER,
.flags = TC_CTRLA_MODE_COUNT32,
Expand All @@ -56,7 +56,7 @@ static const tc32_conf_t timer_config[] = {
.dev = TC2,
.irq = TC2_IRQn,
.mclk = &MCLK->APBCMASK.reg,
.mclk_mask = MCLK_APBCMASK_TC2 | MCLK_APBCMASK_TC3,
.mclk_mask = MCLK_APBCMASK_TC2_Msk | MCLK_APBCMASK_TC3_Msk,
.gclk_id = TC2_GCLK_ID,
.gclk_src = SAM0_GCLK_TIMER,
.flags = TC_CTRLA_MODE_COUNT32,
Expand Down
2 changes: 1 addition & 1 deletion boards/yarm/include/periph_conf.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ static const tc32_conf_t timer_config[] = {
.dev = TC0,
.irq = TC0_IRQn,
.mclk = &MCLK->APBCMASK.reg,
.mclk_mask = MCLK_APBCMASK_TC0 | MCLK_APBCMASK_TC1,
.mclk_mask = MCLK_APBCMASK_TC0_Msk | MCLK_APBCMASK_TC1_Msk,
.gclk_id = TC0_GCLK_ID,
.gclk_src = SAM0_GCLK_TIMER,
.flags = TC_CTRLA_MODE_COUNT32,
Expand Down
1,595 changes: 1,595 additions & 0 deletions cpu/sam0_common/include/vendor/saml21/include/compat_saml21a.h

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions cpu/sam0_common/include/vendor/saml21/include/saml21.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,6 @@
#error Library does not support the specified device.
#endif

#include "compat_saml21a.h"

#endif /* _SAML21_ */
1,586 changes: 1,586 additions & 0 deletions cpu/sam0_common/include/vendor/saml21/include_b/compat_saml21b.h

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions cpu/sam0_common/include/vendor/saml21/include_b/saml21.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,6 @@
#error Library does not support the specified device.
#endif

#include "compat_saml21b.h"

#endif /* _SAML21_ */
Loading