Skip to content

Commit

Permalink
[sam] Do not use deprecated uart defines on x7x b-variant devices
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-durand committed Sep 29, 2022
1 parent 95e3f74 commit 83fbc1c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/modm/platform/uart/sam/uart.cpp.in
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

%% set name="{}{}".format(type.capitalize(), id)
%% set reg=name.upper()
%% if type == "usart" and target.series == "e70" and target.variant == "b"
%% if type == "usart" and target.family == "e7x/s7x/v7x" and target.variant == "b"
%% set reg_suffix="_USART"
%% else
%% set reg_suffix=""
Expand Down
2 changes: 1 addition & 1 deletion src/modm/platform/uart/sam/uart.hpp.in
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

%% set name="{}{}".format(type.capitalize(), id)
%% set reg=name.upper()
%% if type == "usart" and target.series == "e70" and target.variant == "b"
%% if type == "usart" and target.family == "e7x/s7x/v7x" and target.variant == "b"
%% set reg_suffix="_USART"
%% else
%% set reg_suffix=""
Expand Down
2 changes: 1 addition & 1 deletion src/modm/platform/uart/sam/uart_base.hpp.in
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public:
enum class Parity : uint32_t
{
%% if type == "usart"
%% if target.series == "e70" and target.variant == "b"
%% if target.family == "e7x/s7x/v7x" and target.variant == "b"
Disabled = US_MR_USART_PAR_NO_Val,
Even = US_MR_USART_PAR_EVEN_Val,
Odd = US_MR_USART_PAR_ODD_Val,
Expand Down

0 comments on commit 83fbc1c

Please sign in to comment.