Skip to content

Commit

Permalink
boards: Add UART LLWU config to Kinetis boards
Browse files Browse the repository at this point in the history
  • Loading branch information
Joakim Nohlgård authored and benemorius committed Jul 4, 2019
1 parent e895642 commit 1bb1c79
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 2 deletions.
7 changes: 5 additions & 2 deletions boards/common/kw41z/include/periph_conf_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,15 @@ static const uart_conf_t uart_config[] = {
.scgc_bit = SIM_SCGC5_LPUART0_SHIFT,
.mode = UART_MODE_8N1,
.type = KINETIS_LPUART,
.llwu_rx = LLWU_WAKEUP_PIN_PTC6,
},
};
#define UART_NUMOF (sizeof(uart_config) / sizeof(uart_config[0]))
#define LPUART_0_ISR isr_lpuart0
/* Use MCGIRCLK (internal reference 4 MHz clock) */
#define LPUART_0_SRC 3
/* Use MCGIRCLK (4 MHz internal reference - not available <= KINETIS_PM_LLS) */
#define LPUART_0_SRC 3
#define UART_CLOCK_PM_BLOCKER KINETIS_PM_LLS
#define UART_MAX_UNCLOCKED_BAUDRATE 19200ul
/** @} */

/**
Expand Down
1 change: 1 addition & 0 deletions boards/frdm-k22f/include/periph_conf.h
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ static const uart_conf_t uart_config[] = {
.scgc_bit = SIM_SCGC4_UART1_SHIFT,
.mode = UART_MODE_8N1,
.type = KINETIS_UART,
.llwu_rx = LLWU_WAKEUP_PIN_PTE1,
},
{
.dev = UART0,
Expand Down
1 change: 1 addition & 0 deletions boards/frdm-k64f/include/periph_conf.h
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ static const uart_conf_t uart_config[] = {
.scgc_bit = SIM_SCGC4_UART0_SHIFT,
.mode = UART_MODE_8N1,
.type = KINETIS_UART,
.llwu_rx = LLWU_WAKEUP_PIN_UNDEF,
},
};

Expand Down
2 changes: 2 additions & 0 deletions boards/mulle/include/periph_conf.h
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ static const uart_conf_t uart_config[] = {
.scgc_bit = SIM_SCGC4_UART0_SHIFT,
.mode = UART_MODE_8N1,
.type = KINETIS_UART,
.llwu_rx = LLWU_WAKEUP_PIN_UNDEF,
},
{
.dev = UART1,
Expand All @@ -151,6 +152,7 @@ static const uart_conf_t uart_config[] = {
.scgc_bit = SIM_SCGC4_UART1_SHIFT,
.mode = UART_MODE_8N1,
.type = KINETIS_UART,
.llwu_rx = LLWU_WAKEUP_PIN_PTC3,
},
};

Expand Down
2 changes: 2 additions & 0 deletions boards/pba-d-01-kw2x/include/periph_conf.h
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ static const uart_conf_t uart_config[] = {
.scgc_bit = SIM_SCGC4_UART2_SHIFT,
.mode = UART_MODE_8N1,
.type = KINETIS_UART,
.llwu_rx = LLWU_WAKEUP_PIN_PTD2,
},
{
.dev = UART0,
Expand All @@ -121,6 +122,7 @@ static const uart_conf_t uart_config[] = {
.scgc_bit = SIM_SCGC4_UART0_SHIFT,
.mode = UART_MODE_8N1,
.type = KINETIS_UART,
.llwu_rx = LLWU_WAKEUP_PIN_PTD6,
}
};

Expand Down
2 changes: 2 additions & 0 deletions boards/teensy31/include/periph_conf.h
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ static const uart_conf_t uart_config[] = {
.scgc_bit = SIM_SCGC4_UART0_SHIFT,
.mode = UART_MODE_8N1,
.type = KINETIS_UART,
.llwu_rx = LLWU_WAKEUP_PIN_UNDEF,
},
{
.dev = UART1,
Expand All @@ -126,6 +127,7 @@ static const uart_conf_t uart_config[] = {
.scgc_bit = SIM_SCGC4_UART1_SHIFT,
.mode = UART_MODE_8N1,
.type = KINETIS_UART,
.llwu_rx = LLWU_WAKEUP_PIN_PTC3,
},
};

Expand Down

0 comments on commit 1bb1c79

Please sign in to comment.