Port unit tests to Zephyr build system

This commit is contained in:
Martin Jäger
2021-10-05 14:59:39 +02:00
parent 456fcf86a4
commit c54d8ebe05
38 changed files with 392 additions and 426 deletions
+2 -4
View File
@@ -8,10 +8,8 @@
#include <zephyr.h>
#ifndef UNIT_TEST
#include <logging/log.h>
LOG_MODULE_REGISTER(daq, CONFIG_DAQ_LOG_LEVEL);
#endif
#include <math.h> // log for thermistor calculation
#include <assert.h>
@@ -364,9 +362,9 @@ void daq_set_hv_limit(float hv_overvoltage)
}
#endif
#if defined(UNIT_TEST)
#if !defined(CONFIG_SOC_FAMILY_STM32)
#include "../test/daq_stub.h"
#include "daq_stub.h"
void prepare_adc_readings(AdcValues values)
{