Skip to content

Commit

Permalink
firmware: tests: drivers: Fixing radio includes #76
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelboing committed Aug 9, 2024
1 parent d0cdf0d commit 1946bf1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
3 changes: 2 additions & 1 deletion firmware/tests/drivers/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,14 @@ endif

CC=gcc
INC=../../
INC_RADIO=../../config
FLAGS=-fpic -std=c99 -Wall -pedantic -Wshadow -Wpointer-arith -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -I$(INC) -I../../tests/freertos_sim/ -Wl,--wrap=sys_log_init,--wrap=sys_log_print_event,--wrap=sys_log_print_event_from_module,--wrap=sys_log_print_msg,--wrap=sys_log_print_str,--wrap=sys_log_new_line,--wrap=sys_log_print_uint,--wrap=sys_log_print_int,--wrap=sys_log_print_hex,--wrap=sys_log_dump_hex,--wrap=sys_log_print_float,--wrap=sys_log_print_byte,--wrap=sys_log_print_system_time,--wrap=sys_log_print_license_msg,--wrap=sys_log_print_splash_screen,--wrap=sys_log_print_firmware_version

TCA4311A_TEST_FLAGS=$(FLAGS),--wrap=i2c_init,--wrap=i2c_write,--wrap=i2c_read,--wrap=gpio_init,--wrap=gpio_set_state,--wrap=gpio_get_state,--wrap=gpio_toggle

ISIS_ANTENNA_TEST_FLAGS=$(FLAGS),--wrap=tca4311a_init,--wrap=tca4311a_enable,--wrap=tca4311a_disable,--wrap=tca4311a_is_ready,--wrap=tca4311a_write,--wrap=tca4311a_read,--wrap=tca4311a_write_byte,--wrap=tca4311a_read_byte

SI446X_TEST_FLAGS=$(FLAGS),--wrap=spi_init,--wrap=spi_select_slave,--wrap=spi_write,--wrap=spi_read,--wrap=spi_transfer,--wrap=gpio_init,--wrap=gpio_set_state,--wrap=gpio_get_state,--wrap=gpio_toggle
SI446X_TEST_FLAGS=-D SI446X_TEST -I$(INC_RADIO) $(FLAGS),--wrap=spi_init,--wrap=spi_select_slave,--wrap=spi_write,--wrap=spi_read,--wrap=spi_transfer,--wrap=gpio_init,--wrap=gpio_set_state,--wrap=gpio_get_state,--wrap=gpio_toggle

INA22X_TEST_FLAGS=$(FLAGS),--wrap=i2c_init,--wrap=i2c_write,--wrap=i2c_read

Expand Down
9 changes: 0 additions & 9 deletions firmware/tests/drivers/si446x_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,6 @@
#include <stdlib.h>
#include <string.h>

#include <config/config.h>

#if defined(RADIO_MODULE) && (RADIO_MODULE == 0)
#include <config/uhf_radio_config_Si4463.h>

#elif defined(RADIO_MODULE) && (RADIO_MODULE == 1)
#include <config/vhf_radio_config_Si4463.h>
#endif

#include <drivers/gpio/gpio.h>
#include <drivers/spi/spi.h>
#include <drivers/si446x/si446x.h>
Expand Down

0 comments on commit 1946bf1

Please sign in to comment.