1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

boards/efm32: enable efm32_coretemp driver

This commit is contained in:
Bas Stottelaar 2020-11-18 01:37:57 +01:00
parent e3b15a4cc4
commit e1b356e884
18 changed files with 99 additions and 0 deletions

View File

@ -1,4 +1,5 @@
ifneq (,$(filter saul_default,$(USEMODULE)))
USEMODULE += efm32_coretemp
USEMODULE += saul_gpio
USEMODULE += si7021
endif

View File

@ -23,6 +23,7 @@
#include "cpu.h"
#include "periph_conf.h"
#include "periph/adc.h"
#include "periph/gpio.h"
#include "periph/spi.h"
@ -87,6 +88,15 @@ extern "C" {
#define LED1_TOGGLE gpio_toggle(LED1_PIN)
/** @} */
/**
* @name Core temperature sensor configuration
*
* Connection to the on-chip temperature sensor.
* @{
*/
#define CORETEMP_ADC ADC_LINE(0)
/** @} */
/**
* @name Display configuration
*

View File

@ -1,4 +1,5 @@
ifneq (,$(filter saul_default,$(USEMODULE)))
USEMODULE += efm32_coretemp
USEMODULE += saul_gpio
endif

View File

@ -21,6 +21,7 @@
#include "cpu.h"
#include "periph_conf.h"
#include "periph/adc.h"
#include "periph/gpio.h"
#include "periph/spi.h"
@ -69,6 +70,15 @@ extern "C" {
#define LED1_TOGGLE gpio_toggle(LED1_PIN)
/** @} */
/**
* @name Core temperature sensor configuration
*
* Connection to the on-chip temperature sensor.
* @{
*/
#define CORETEMP_ADC ADC_LINE(0)
/** @} */
/**
* @name SPI NOR Flash hardware configuration
*

View File

@ -1,4 +1,5 @@
ifneq (,$(filter saul_default,$(USEMODULE)))
USEMODULE += efm32_coretemp
USEMODULE += saul_gpio
USEMODULE += si7021
endif

View File

@ -22,6 +22,7 @@
#include "cpu.h"
#include "periph_conf.h"
#include "periph/adc.h"
#include "periph/gpio.h"
#include "periph/spi.h"
@ -86,6 +87,15 @@ extern "C" {
#define LED1_TOGGLE gpio_toggle(LED1_PIN)
/** @} */
/**
* @name Core temperature sensor configuration
*
* Connection to the on-chip temperature sensor.
* @{
*/
#define CORETEMP_ADC ADC_LINE(0)
/** @} */
/**
* @name Display configuration
*

View File

@ -1,4 +1,5 @@
ifneq (,$(filter saul_default,$(USEMODULE)))
USEMODULE += efm32_coretemp
USEMODULE += saul_gpio
USEMODULE += si7021
endif

View File

@ -22,6 +22,7 @@
#include "cpu.h"
#include "periph_conf.h"
#include "periph/adc.h"
#include "periph/gpio.h"
#include "periph/spi.h"
@ -86,6 +87,15 @@ extern "C" {
#define LED1_TOGGLE gpio_toggle(LED1_PIN)
/** @} */
/**
* @name Core temperature sensor configuration
*
* Connection to the on-chip temperature sensor.
* @{
*/
#define CORETEMP_ADC ADC_LINE(0)
/** @} */
/**
* @name Display configuration
*

View File

@ -1,6 +1,7 @@
ifneq (,$(filter saul_default,$(USEMODULE)))
USEMODULE += bmp280_i2c
USEMODULE += ccs811
USEMODULE += efm32_coretemp
USEMODULE += saul_gpio
USEMODULE += si7021
endif

View File

@ -22,6 +22,7 @@
#include "cpu.h"
#include "periph_conf.h"
#include "periph/adc.h"
#include "periph/gpio.h"
#include "periph/spi.h"
@ -76,6 +77,15 @@ extern "C" {
#define LED1_TOGGLE gpio_toggle(LED1_PIN)
/** @} */
/**
* @name Core temperature sensor configuration
*
* Connection to the on-chip temperature sensor.
* @{
*/
#define CORETEMP_ADC ADC_LINE(0)
/** @} */
/**
* @name Environmental sensors configuration
*

View File

@ -1,4 +1,5 @@
ifneq (,$(filter saul_default,$(USEMODULE)))
USEMODULE += efm32_coretemp
USEMODULE += saul_gpio
USEMODULE += si7021
endif

View File

@ -22,6 +22,7 @@
#include "cpu.h"
#include "periph_conf.h"
#include "periph/adc.h"
#include "periph/gpio.h"
#include "periph/spi.h"
@ -86,6 +87,15 @@ extern "C" {
#define LED1_TOGGLE gpio_toggle(LED1_PIN)
/** @} */
/**
* @name Core temperature sensor configuration
*
* Connection to the on-chip temperature sensor.
* @{
*/
#define CORETEMP_ADC ADC_LINE(0)
/** @} */
/**
* @name Display configuration
*

View File

@ -1,4 +1,5 @@
ifneq (,$(filter saul_default,$(USEMODULE)))
USEMODULE += efm32_coretemp
USEMODULE += saul_gpio
endif

View File

@ -22,6 +22,7 @@
#include "cpu.h"
#include "periph_conf.h"
#include "periph/adc.h"
#include "periph/gpio.h"
#include "periph/spi.h"
@ -79,6 +80,15 @@ extern "C" {
#define LED1_TOGGLE gpio_toggle(LED1_PIN)
/** @} */
/**
* @name Core temperature sensor configuration
*
* Connection to the on-chip temperature sensor.
* @{
*/
#define CORETEMP_ADC ADC_LINE(0)
/** @} */
/**
* @name Display configuration
*

View File

@ -1,4 +1,5 @@
ifneq (,$(filter saul_default,$(USEMODULE)))
USEMODULE += efm32_coretemp
USEMODULE += saul_gpio
endif

View File

@ -22,6 +22,7 @@
#include "cpu.h"
#include "periph_conf.h"
#include "periph/adc.h"
#include "periph/gpio.h"
#include "periph/spi.h"
@ -86,6 +87,15 @@ extern "C" {
#define LED1_TOGGLE gpio_toggle(LED1_PIN)
/** @} */
/**
* @name Core temperature sensor configuration
*
* Connection to the on-chip temperature sensor.
* @{
*/
#define CORETEMP_ADC ADC_LINE(0)
/** @} */
/**
* @brief Initialize the board (GPIO, sensors, clocks).
*/

View File

@ -1,4 +1,5 @@
ifneq (,$(filter saul_default,$(USEMODULE)))
USEMODULE += efm32_coretemp
USEMODULE += saul_gpio
endif

View File

@ -22,6 +22,7 @@
#include "cpu.h"
#include "periph_conf.h"
#include "periph/adc.h"
#include "periph/gpio.h"
#include "periph/spi.h"
@ -86,6 +87,15 @@ extern "C" {
#define LED1_TOGGLE gpio_toggle(LED1_PIN)
/** @} */
/**
* @name Core temperature sensor configuration
*
* Connection to the on-chip temperature sensor.
* @{
*/
#define CORETEMP_ADC ADC_LINE(0)
/** @} */
/**
* @brief Initialize the board (GPIO, sensors, clocks).
*/