ruuvi.drivers.c  ${PROJECT_VERSION}
Drivers for external sensors and peripherals on embedded systems.
ruuvi_driver_enabled_modules.h File Reference

Header to enable and disable module compilation. More...

Go to the source code of this file.

Macros

#define RUUVI_DRIVERS_SEMVER   "3.10.0"
 SemVer string, must match latest tag. More...
 
#define ENABLE_DEFAULT   1
 
#define RI_ATOMIC_ENABLED   ENABLE_DEFAULT
 
#define RD_LOG_BUFFER_SIZE   (128U)
 Maximum length of one log message. More...
 
#define RT_ADC_ENABLED   ENABLE_DEFAULT
 Enable ADC task compilation. More...
 
#define RI_COMM_ENABLED   ENABLE_DEFAULT
 Enable communication helper compilation. More...
 
#define RI_AES_ENABLED   ENABLE_DEFAULT
 Enable communication helper compilation. More...
 
#define RI_RADIO_ENABLED   ENABLE_DEFAULT
 
#define RT_ADV_ENABLED   ENABLE_DEFAULT
 Enable BLE advertising compilation. More...
 
#define RI_ADV_ENABLED   RT_ADV_ENABLED
 
#define RT_BUTTON_ENABLED   ENABLE_DEFAULT
 Enable BLE advertising compilation. More...
 
#define RT_COMMUNICATION_ENABLED   ENABLE_DEFAULT
 
#define RT_FLASH_ENABLED   ENABLE_DEFAULT
 Enable Flash storage compilation. More...
 
#define RT_GATT_ENABLED   ENABLE_DEFAULT
 Enable GATT task compilation. More...
 
#define RI_GATT_ENABLED   (1U)
 
#define RT_GPIO_ENABLED   ENABLE_DEFAULT
 Enable GPIO task compilation. More...
 
#define RT_GPIO_INT_TABLE_SIZE   48
 Conserve RAM for led task variables. More...
 
#define RI_I2C_ENABLED   ENABLE_DEFAULT
 
#define RT_LED_ENABLED   ENABLE_DEFAULT
 Enable LED task compilation. More...
 
#define RT_MAX_LED_CFG   48
 Conserve RAM for led task variables. More...
 
#define RT_NFC_ENABLED   ENABLE_DEFAULT
 
#define RI_NFC_ENABLED   1
 
#define RI_RTC_ENABLED   ENABLE_DEFAULT
 
#define RI_SCHEDULER_ENABLED   ENABLE_DEFAULT
 
#define RI_SCHEDULER_LENGTH   (10U)
 
#define RI_SCHEDULER_SIZE   (32U)
 
#define RI_SPI_ENABLED   ENABLE_DEFAULT
 
#define RI_UART_ENABLED   ENABLE_DEFAULT
 
#define RI_YIELD_ENABLED   ENABLE_DEFAULT
 
#define RI_WATCHDOG_ENABLED   ENABLE_DEFAULT
 
#define RT_SENSOR_ENABLED   ENABLE_DEFAULT
 
#define RI_BME280_ENABLED   ENABLE_DEFAULT
 
#define RI_BME280_SPI_ENABLED   ENABLE_DEFAULT
 
#define RI_BME280_I2C_ENABLED   ENABLE_DEFAULT
 
#define RI_DPS310_ENABLED   ENABLE_DEFAULT
 
#define RI_DPS310_SPI_ENABLED   ENABLE_DEFAULT
 
#define RI_DPS310_I2C_ENABLED   ENABLE_DEFAULT
 
#define RI_LIS2DH12_ENABLED   ENABLE_DEFAULT
 
#define RI_TMP117_ENABLED   ENABLE_DEFAULT
 
#define RI_SHTCX_ENABLED   ENABLE_DEFAULT
 
#define RI_ADC_PHOTO_ENABLED   ENABLE_DEFAULT
 
#define RUUVI_NRF5_SDK15_NRF52832_ENVIRONMENTAL_ENABLED   ENABLE_DEFAULT
 
#define RI_ADC_PHOTO_CHANNEL   2
 
#define RI_ADC_PHOTO_DIVIDER   1.00f
 Predivider installed on board. More...
 
#define RI_ADC_NTC_ENABLED   ENABLE_DEFAULT
 
#define RI_ADC_NTC_CHANNEL   1
 
#define RI_ADC_NTC_DIVIDER   1.00f
 Predivider installed on board. More...
 
#define RI_ADC_NTC_BALANCE   10000.00f
 Fixed resistor value. More...
 
#define RI_ADC_NTC_DEFAULT_RES   10000.00f
 NTC at default temp. More...
 
#define RI_ADC_NTC_DEFAULT_TEMP   25.00f
 Calibration temperature. More...
 
#define RI_ADC_NTC_DEFAULT_BETA   3974.0f
 Beta value of NTC, check datasheet. More...
 

Detailed Description

Header to enable and disable module compilation.

Author
Otso Jousimaa otso@.nosp@m.ojou.nosp@m.sima..nosp@m.net
Date
2020-01-18

Use this header to select which interfaces will be included in project and which implementation to use for each interface.

By default everything is disabled to save resources, application should have "app_config.h" which is in the include search path and further includes any platform-specific configuration such as "nrf5_sdk15_app_config.h". If application has configuration, define APPLICATION_DRIVER_CONFIGURED 1 in preprocessor.

Definition in file ruuvi_driver_enabled_modules.h.

Macro Definition Documentation

◆ ENABLE_DEFAULT

#define ENABLE_DEFAULT   1

Definition at line 26 of file ruuvi_driver_enabled_modules.h.

◆ RD_LOG_BUFFER_SIZE

#define RD_LOG_BUFFER_SIZE   (128U)

Maximum length of one log message.

Definition at line 51 of file ruuvi_driver_enabled_modules.h.

◆ RI_ADC_NTC_BALANCE

#define RI_ADC_NTC_BALANCE   10000.00f

Fixed resistor value.

Definition at line 269 of file ruuvi_driver_enabled_modules.h.

◆ RI_ADC_NTC_CHANNEL

#define RI_ADC_NTC_CHANNEL   1

Definition at line 267 of file ruuvi_driver_enabled_modules.h.

◆ RI_ADC_NTC_DEFAULT_BETA

#define RI_ADC_NTC_DEFAULT_BETA   3974.0f

Beta value of NTC, check datasheet.

Definition at line 272 of file ruuvi_driver_enabled_modules.h.

◆ RI_ADC_NTC_DEFAULT_RES

#define RI_ADC_NTC_DEFAULT_RES   10000.00f

NTC at default temp.

Definition at line 270 of file ruuvi_driver_enabled_modules.h.

◆ RI_ADC_NTC_DEFAULT_TEMP

#define RI_ADC_NTC_DEFAULT_TEMP   25.00f

Calibration temperature.

Definition at line 271 of file ruuvi_driver_enabled_modules.h.

◆ RI_ADC_NTC_DIVIDER

#define RI_ADC_NTC_DIVIDER   1.00f

Predivider installed on board.

Definition at line 268 of file ruuvi_driver_enabled_modules.h.

◆ RI_ADC_NTC_ENABLED

#define RI_ADC_NTC_ENABLED   ENABLE_DEFAULT

Definition at line 263 of file ruuvi_driver_enabled_modules.h.

◆ RI_ADC_PHOTO_CHANNEL

#define RI_ADC_PHOTO_CHANNEL   2

Definition at line 259 of file ruuvi_driver_enabled_modules.h.

◆ RI_ADC_PHOTO_DIVIDER

#define RI_ADC_PHOTO_DIVIDER   1.00f

Predivider installed on board.

Definition at line 260 of file ruuvi_driver_enabled_modules.h.

◆ RI_ADC_PHOTO_ENABLED

#define RI_ADC_PHOTO_ENABLED   ENABLE_DEFAULT

Definition at line 251 of file ruuvi_driver_enabled_modules.h.

◆ RI_ADV_ENABLED

#define RI_ADV_ENABLED   RT_ADV_ENABLED

Definition at line 80 of file ruuvi_driver_enabled_modules.h.

◆ RI_AES_ENABLED

#define RI_AES_ENABLED   ENABLE_DEFAULT

Enable communication helper compilation.

Definition at line 66 of file ruuvi_driver_enabled_modules.h.

◆ RI_ATOMIC_ENABLED

#define RI_ATOMIC_ENABLED   ENABLE_DEFAULT

Definition at line 46 of file ruuvi_driver_enabled_modules.h.

◆ RI_BME280_ENABLED

#define RI_BME280_ENABLED   ENABLE_DEFAULT

Definition at line 219 of file ruuvi_driver_enabled_modules.h.

◆ RI_BME280_I2C_ENABLED

#define RI_BME280_I2C_ENABLED   ENABLE_DEFAULT

Definition at line 224 of file ruuvi_driver_enabled_modules.h.

◆ RI_BME280_SPI_ENABLED

#define RI_BME280_SPI_ENABLED   ENABLE_DEFAULT

Definition at line 221 of file ruuvi_driver_enabled_modules.h.

◆ RI_COMM_ENABLED

#define RI_COMM_ENABLED   ENABLE_DEFAULT

Enable communication helper compilation.

Definition at line 61 of file ruuvi_driver_enabled_modules.h.

◆ RI_DPS310_ENABLED

#define RI_DPS310_ENABLED   ENABLE_DEFAULT

Definition at line 229 of file ruuvi_driver_enabled_modules.h.

◆ RI_DPS310_I2C_ENABLED

#define RI_DPS310_I2C_ENABLED   ENABLE_DEFAULT

Definition at line 234 of file ruuvi_driver_enabled_modules.h.

◆ RI_DPS310_SPI_ENABLED

#define RI_DPS310_SPI_ENABLED   ENABLE_DEFAULT

Definition at line 231 of file ruuvi_driver_enabled_modules.h.

◆ RI_GATT_ENABLED

#define RI_GATT_ENABLED   (1U)

Definition at line 110 of file ruuvi_driver_enabled_modules.h.

◆ RI_I2C_ENABLED

#define RI_I2C_ENABLED   ENABLE_DEFAULT

Definition at line 140 of file ruuvi_driver_enabled_modules.h.

◆ RI_LIS2DH12_ENABLED

#define RI_LIS2DH12_ENABLED   ENABLE_DEFAULT

Definition at line 239 of file ruuvi_driver_enabled_modules.h.

◆ RI_NFC_ENABLED

#define RI_NFC_ENABLED   1

Definition at line 170 of file ruuvi_driver_enabled_modules.h.

◆ RI_RADIO_ENABLED

#define RI_RADIO_ENABLED   ENABLE_DEFAULT

brief enable radio usage

Definition at line 71 of file ruuvi_driver_enabled_modules.h.

◆ RI_RTC_ENABLED

#define RI_RTC_ENABLED   ENABLE_DEFAULT

Definition at line 175 of file ruuvi_driver_enabled_modules.h.

◆ RI_SCHEDULER_ENABLED

#define RI_SCHEDULER_ENABLED   ENABLE_DEFAULT

Definition at line 179 of file ruuvi_driver_enabled_modules.h.

◆ RI_SCHEDULER_LENGTH

#define RI_SCHEDULER_LENGTH   (10U)

Definition at line 184 of file ruuvi_driver_enabled_modules.h.

◆ RI_SCHEDULER_SIZE

#define RI_SCHEDULER_SIZE   (32U)

Definition at line 187 of file ruuvi_driver_enabled_modules.h.

◆ RI_SHTCX_ENABLED

#define RI_SHTCX_ENABLED   ENABLE_DEFAULT

Definition at line 247 of file ruuvi_driver_enabled_modules.h.

◆ RI_SPI_ENABLED

#define RI_SPI_ENABLED   ENABLE_DEFAULT

Definition at line 192 of file ruuvi_driver_enabled_modules.h.

◆ RI_TMP117_ENABLED

#define RI_TMP117_ENABLED   ENABLE_DEFAULT

Definition at line 243 of file ruuvi_driver_enabled_modules.h.

◆ RI_UART_ENABLED

#define RI_UART_ENABLED   ENABLE_DEFAULT

Definition at line 202 of file ruuvi_driver_enabled_modules.h.

◆ RI_WATCHDOG_ENABLED

#define RI_WATCHDOG_ENABLED   ENABLE_DEFAULT

Definition at line 210 of file ruuvi_driver_enabled_modules.h.

◆ RI_YIELD_ENABLED

#define RI_YIELD_ENABLED   ENABLE_DEFAULT

Definition at line 206 of file ruuvi_driver_enabled_modules.h.

◆ RT_ADC_ENABLED

#define RT_ADC_ENABLED   ENABLE_DEFAULT

Enable ADC task compilation.

Definition at line 56 of file ruuvi_driver_enabled_modules.h.

◆ RT_ADV_ENABLED

#define RT_ADV_ENABLED   ENABLE_DEFAULT

Enable BLE advertising compilation.

Definition at line 77 of file ruuvi_driver_enabled_modules.h.

◆ RT_BUTTON_ENABLED

#define RT_BUTTON_ENABLED   ENABLE_DEFAULT

Enable BLE advertising compilation.

Definition at line 92 of file ruuvi_driver_enabled_modules.h.

◆ RT_COMMUNICATION_ENABLED

#define RT_COMMUNICATION_ENABLED   ENABLE_DEFAULT

Definition at line 96 of file ruuvi_driver_enabled_modules.h.

◆ RT_FLASH_ENABLED

#define RT_FLASH_ENABLED   ENABLE_DEFAULT

Enable Flash storage compilation.

Definition at line 101 of file ruuvi_driver_enabled_modules.h.

◆ RT_GATT_ENABLED

#define RT_GATT_ENABLED   ENABLE_DEFAULT

Enable GATT task compilation.

Definition at line 106 of file ruuvi_driver_enabled_modules.h.

◆ RT_GPIO_ENABLED

#define RT_GPIO_ENABLED   ENABLE_DEFAULT

Enable GPIO task compilation.

Definition at line 123 of file ruuvi_driver_enabled_modules.h.

◆ RT_GPIO_INT_TABLE_SIZE

#define RT_GPIO_INT_TABLE_SIZE   48

Conserve RAM for led task variables.

You should override this with a lower value.

Definition at line 135 of file ruuvi_driver_enabled_modules.h.

◆ RT_LED_ENABLED

#define RT_LED_ENABLED   ENABLE_DEFAULT

Enable LED task compilation.

Definition at line 145 of file ruuvi_driver_enabled_modules.h.

◆ RT_MAX_LED_CFG

#define RT_MAX_LED_CFG   48

Conserve RAM for led task variables.

You should override this with a lower value.

Definition at line 160 of file ruuvi_driver_enabled_modules.h.

◆ RT_NFC_ENABLED

#define RT_NFC_ENABLED   ENABLE_DEFAULT

Definition at line 165 of file ruuvi_driver_enabled_modules.h.

◆ RT_SENSOR_ENABLED

#define RT_SENSOR_ENABLED   ENABLE_DEFAULT

SENSORS

Definition at line 215 of file ruuvi_driver_enabled_modules.h.

◆ RUUVI_DRIVERS_SEMVER

#define RUUVI_DRIVERS_SEMVER   "3.10.0"

SemVer string, must match latest tag.

Definition at line 21 of file ruuvi_driver_enabled_modules.h.

◆ RUUVI_NRF5_SDK15_NRF52832_ENVIRONMENTAL_ENABLED

#define RUUVI_NRF5_SDK15_NRF52832_ENVIRONMENTAL_ENABLED   ENABLE_DEFAULT

Definition at line 255 of file ruuvi_driver_enabled_modules.h.