Enabled all warnings for unit-test builds
This commit is contained in:
+3
-2
@@ -13,9 +13,9 @@ default_envs =
|
||||
# mppt-1210-hus-v0.2
|
||||
# mppt-1210-hus-v0.4
|
||||
# mppt-1210-hus-v0.6
|
||||
# mppt-1210-hus-v0.7
|
||||
mppt-1210-hus-v0.7
|
||||
# pwm-2420-lus-v0.2
|
||||
# pwm-2420-lus-v0.3
|
||||
pwm-2420-lus-v0.3
|
||||
# unit-test-native
|
||||
|
||||
[env]
|
||||
@@ -105,6 +105,7 @@ platform = native
|
||||
framework =
|
||||
build_flags =
|
||||
-std=gnu++17
|
||||
-Wall
|
||||
-D LITTLE_ENDIAN
|
||||
-D UNIT_TEST
|
||||
-D __STDC_FORMAT_MACROS
|
||||
|
||||
+2
-1
@@ -23,11 +23,12 @@
|
||||
|
||||
#if FEATURE_PWM_SWITCH
|
||||
|
||||
static int _pwm_resolution;
|
||||
static bool _pwm_active;
|
||||
|
||||
#ifndef UNIT_TEST
|
||||
|
||||
static int _pwm_resolution;
|
||||
|
||||
void pwm_signal_init_registers(int freq_Hz)
|
||||
{
|
||||
// Enable peripheral clock of GPIOB
|
||||
|
||||
@@ -251,7 +251,6 @@ void buck_derating_temperature_limits_exceeded()
|
||||
void buck_stop_input_power_too_low()
|
||||
{
|
||||
start_buck();
|
||||
float pwm_before = half_bridge_get_duty_cycle();
|
||||
dcdc.power_good_timestamp = time(NULL) - 11;
|
||||
dcdc.control();
|
||||
TEST_ASSERT(half_bridge_enabled() == false);
|
||||
@@ -260,7 +259,6 @@ void buck_stop_input_power_too_low()
|
||||
void buck_stop_high_voltage_emergency()
|
||||
{
|
||||
start_buck();
|
||||
float pwm_before = half_bridge_get_duty_cycle();
|
||||
dcdc_lv_port.voltage = dcdc.ls_voltage_max + 0.1;
|
||||
dcdc.control();
|
||||
TEST_ASSERT(half_bridge_enabled() == false);
|
||||
|
||||
@@ -9,13 +9,6 @@
|
||||
|
||||
#include "main.h"
|
||||
|
||||
static void init_structs()
|
||||
{
|
||||
battery_conf_init(&bat_conf, BAT_TYPE_FLOODED, 6, 100);
|
||||
battery_init_dc_bus(&bat_terminal, &bat_conf, 1);
|
||||
charger.state = CHG_STATE_IDLE;
|
||||
}
|
||||
|
||||
static adc_values_t adcval;
|
||||
|
||||
const float dcdc_current_sun = 3;
|
||||
|
||||
Reference in New Issue
Block a user