Add support for temperature sensor peripheral

* Add TEMP peripheral to all nRF52 chips
* Add async HAL for reading temperature values
* Add example application reading temperature values
This commit is contained in:
Ulf Lilleengen
2021-10-18 15:24:31 +02:00
committed by Ulf Lilleengen
parent 729b17bc25
commit 2ef4a45fa0
11 changed files with 134 additions and 0 deletions

View File

@ -114,6 +114,9 @@ embassy_hal_common::peripherals! {
P0_29,
P0_30,
P0_31,
// TEMP
TEMP,
}
impl_uarte!(UARTE0, UARTE0, UARTE0_UART0);

View File

@ -117,6 +117,9 @@ embassy_hal_common::peripherals! {
P0_29,
P0_30,
P0_31,
// TEMP
TEMP,
}
impl_uarte!(UARTE0, UARTE0, UARTE0_UART0);

View File

@ -117,6 +117,9 @@ embassy_hal_common::peripherals! {
P0_29,
P0_30,
P0_31,
// TEMP
TEMP,
}
impl_uarte!(UARTE0, UARTE0, UARTE0_UART0);

View File

@ -112,6 +112,9 @@ embassy_hal_common::peripherals! {
P0_29,
P0_30,
P0_31,
// TEMP
TEMP,
}
impl_uarte!(UARTE0, UARTE0, UARTE0_UART0);

View File

@ -124,6 +124,9 @@ embassy_hal_common::peripherals! {
P0_29,
P0_30,
P0_31,
// TEMP
TEMP,
}
impl_uarte!(UARTE0, UARTE0, UARTE0_UART0);

View File

@ -144,6 +144,9 @@ embassy_hal_common::peripherals! {
P1_13,
P1_14,
P1_15,
// TEMP
TEMP,
}
impl_uarte!(UARTE0, UARTE0, UARTE0_UART0);

View File

@ -147,6 +147,9 @@ embassy_hal_common::peripherals! {
P1_13,
P1_14,
P1_15,
// TEMP
TEMP,
}
impl_uarte!(UARTE0, UARTE0, UARTE0_UART0);