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_ADV_EXTENDED_ENABLED   ENABLE_DEFAULT
 
#define RI_COMM_MESSAGE_MAX_LENGTH   230
 Standard BLE Broadcast manufacturer specific data payload length is the maximum length. More...
 
#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 65 of file ruuvi_driver_enabled_modules.h.

◆ RI_ADC_NTC_BALANCE

#define RI_ADC_NTC_BALANCE   10000.00f

Fixed resistor value.

Definition at line 283 of file ruuvi_driver_enabled_modules.h.

◆ RI_ADC_NTC_CHANNEL

#define RI_ADC_NTC_CHANNEL   1

Definition at line 281 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 286 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 284 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 285 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 282 of file ruuvi_driver_enabled_modules.h.

◆ RI_ADC_NTC_ENABLED

#define RI_ADC_NTC_ENABLED   ENABLE_DEFAULT

Definition at line 277 of file ruuvi_driver_enabled_modules.h.

◆ RI_ADC_PHOTO_CHANNEL

#define RI_ADC_PHOTO_CHANNEL   2

Definition at line 273 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 274 of file ruuvi_driver_enabled_modules.h.

◆ RI_ADC_PHOTO_ENABLED

#define RI_ADC_PHOTO_ENABLED   ENABLE_DEFAULT

Definition at line 265 of file ruuvi_driver_enabled_modules.h.

◆ RI_ADV_ENABLED

#define RI_ADV_ENABLED   RT_ADV_ENABLED

Definition at line 94 of file ruuvi_driver_enabled_modules.h.

◆ RI_ADV_EXTENDED_ENABLED

#define RI_ADV_EXTENDED_ENABLED   ENABLE_DEFAULT

Definition at line 46 of file ruuvi_driver_enabled_modules.h.

◆ RI_AES_ENABLED

#define RI_AES_ENABLED   ENABLE_DEFAULT

Enable communication helper compilation.

Definition at line 80 of file ruuvi_driver_enabled_modules.h.

◆ RI_ATOMIC_ENABLED

#define RI_ATOMIC_ENABLED   ENABLE_DEFAULT

Definition at line 60 of file ruuvi_driver_enabled_modules.h.

◆ RI_BME280_ENABLED

#define RI_BME280_ENABLED   ENABLE_DEFAULT

Definition at line 233 of file ruuvi_driver_enabled_modules.h.

◆ RI_BME280_I2C_ENABLED

#define RI_BME280_I2C_ENABLED   ENABLE_DEFAULT

Definition at line 238 of file ruuvi_driver_enabled_modules.h.

◆ RI_BME280_SPI_ENABLED

#define RI_BME280_SPI_ENABLED   ENABLE_DEFAULT

Definition at line 235 of file ruuvi_driver_enabled_modules.h.

◆ RI_COMM_ENABLED

#define RI_COMM_ENABLED   ENABLE_DEFAULT

Enable communication helper compilation.

Definition at line 75 of file ruuvi_driver_enabled_modules.h.

◆ RI_COMM_MESSAGE_MAX_LENGTH

#define RI_COMM_MESSAGE_MAX_LENGTH   230

Standard BLE Broadcast manufacturer specific data payload length is the maximum length.

Definition at line 53 of file ruuvi_driver_enabled_modules.h.

◆ RI_DPS310_ENABLED

#define RI_DPS310_ENABLED   ENABLE_DEFAULT

Definition at line 243 of file ruuvi_driver_enabled_modules.h.

◆ RI_DPS310_I2C_ENABLED

#define RI_DPS310_I2C_ENABLED   ENABLE_DEFAULT

Definition at line 248 of file ruuvi_driver_enabled_modules.h.

◆ RI_DPS310_SPI_ENABLED

#define RI_DPS310_SPI_ENABLED   ENABLE_DEFAULT

Definition at line 245 of file ruuvi_driver_enabled_modules.h.

◆ RI_GATT_ENABLED

#define RI_GATT_ENABLED   (1U)

Definition at line 124 of file ruuvi_driver_enabled_modules.h.

◆ RI_I2C_ENABLED

#define RI_I2C_ENABLED   ENABLE_DEFAULT

Definition at line 154 of file ruuvi_driver_enabled_modules.h.

◆ RI_LIS2DH12_ENABLED

#define RI_LIS2DH12_ENABLED   ENABLE_DEFAULT

Definition at line 253 of file ruuvi_driver_enabled_modules.h.

◆ RI_NFC_ENABLED

#define RI_NFC_ENABLED   1

Definition at line 184 of file ruuvi_driver_enabled_modules.h.

◆ RI_RADIO_ENABLED

#define RI_RADIO_ENABLED   ENABLE_DEFAULT

brief enable radio usage

Definition at line 85 of file ruuvi_driver_enabled_modules.h.

◆ RI_RTC_ENABLED

#define RI_RTC_ENABLED   ENABLE_DEFAULT

Definition at line 189 of file ruuvi_driver_enabled_modules.h.

◆ RI_SCHEDULER_ENABLED

#define RI_SCHEDULER_ENABLED   ENABLE_DEFAULT

Definition at line 193 of file ruuvi_driver_enabled_modules.h.

◆ RI_SCHEDULER_LENGTH

#define RI_SCHEDULER_LENGTH   (10U)

Definition at line 198 of file ruuvi_driver_enabled_modules.h.

◆ RI_SCHEDULER_SIZE

#define RI_SCHEDULER_SIZE   (32U)

Definition at line 201 of file ruuvi_driver_enabled_modules.h.

◆ RI_SHTCX_ENABLED

#define RI_SHTCX_ENABLED   ENABLE_DEFAULT

Definition at line 261 of file ruuvi_driver_enabled_modules.h.

◆ RI_SPI_ENABLED

#define RI_SPI_ENABLED   ENABLE_DEFAULT

Definition at line 206 of file ruuvi_driver_enabled_modules.h.

◆ RI_TMP117_ENABLED

#define RI_TMP117_ENABLED   ENABLE_DEFAULT

Definition at line 257 of file ruuvi_driver_enabled_modules.h.

◆ RI_UART_ENABLED

#define RI_UART_ENABLED   ENABLE_DEFAULT

Definition at line 216 of file ruuvi_driver_enabled_modules.h.

◆ RI_WATCHDOG_ENABLED

#define RI_WATCHDOG_ENABLED   ENABLE_DEFAULT

Definition at line 224 of file ruuvi_driver_enabled_modules.h.

◆ RI_YIELD_ENABLED

#define RI_YIELD_ENABLED   ENABLE_DEFAULT

Definition at line 220 of file ruuvi_driver_enabled_modules.h.

◆ RT_ADC_ENABLED

#define RT_ADC_ENABLED   ENABLE_DEFAULT

Enable ADC task compilation.

Definition at line 70 of file ruuvi_driver_enabled_modules.h.

◆ RT_ADV_ENABLED

#define RT_ADV_ENABLED   ENABLE_DEFAULT

Enable BLE advertising compilation.

Definition at line 91 of file ruuvi_driver_enabled_modules.h.

◆ RT_BUTTON_ENABLED

#define RT_BUTTON_ENABLED   ENABLE_DEFAULT

Enable BLE advertising compilation.

Definition at line 106 of file ruuvi_driver_enabled_modules.h.

◆ RT_COMMUNICATION_ENABLED

#define RT_COMMUNICATION_ENABLED   ENABLE_DEFAULT

Definition at line 110 of file ruuvi_driver_enabled_modules.h.

◆ RT_FLASH_ENABLED

#define RT_FLASH_ENABLED   ENABLE_DEFAULT

Enable Flash storage compilation.

Definition at line 115 of file ruuvi_driver_enabled_modules.h.

◆ RT_GATT_ENABLED

#define RT_GATT_ENABLED   ENABLE_DEFAULT

Enable GATT task compilation.

Definition at line 120 of file ruuvi_driver_enabled_modules.h.

◆ RT_GPIO_ENABLED

#define RT_GPIO_ENABLED   ENABLE_DEFAULT

Enable GPIO task compilation.

Definition at line 137 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 149 of file ruuvi_driver_enabled_modules.h.

◆ RT_LED_ENABLED

#define RT_LED_ENABLED   ENABLE_DEFAULT

Enable LED task compilation.

Definition at line 159 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 174 of file ruuvi_driver_enabled_modules.h.

◆ RT_NFC_ENABLED

#define RT_NFC_ENABLED   ENABLE_DEFAULT

Definition at line 179 of file ruuvi_driver_enabled_modules.h.

◆ RT_SENSOR_ENABLED

#define RT_SENSOR_ENABLED   ENABLE_DEFAULT

SENSORS

Definition at line 229 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 269 of file ruuvi_driver_enabled_modules.h.