From 68e2dab576b9df6bfa291ae920d5956578d6a6f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20Monda?= Date: Sun, 6 Aug 2017 17:28:32 +0200 Subject: [PATCH] Add config.h and move LED_DRIVER_STRESS_TEST and FIXED_BUSPAL_BOOTLOADER to it. --- right/src/buspal/command.c | 4 +--- right/src/config.h | 9 +++++++++ right/src/init_peripherals.c | 1 + right/src/slave_drivers/is31fl3731_driver.c | 1 + 4 files changed, 12 insertions(+), 3 deletions(-) create mode 100644 right/src/config.h diff --git a/right/src/buspal/command.c b/right/src/buspal/command.c index 4fa8a66..a22ad99 100644 --- a/right/src/buspal/command.c +++ b/right/src/buspal/command.c @@ -1,6 +1,4 @@ -#define FIXED_BUSPAL_BOOTLOADER (1) - /*!< Used to mark the fixed BUSPL bootloader. Macro usage can be removed in the future */ - +#include "config.h" #include "command.h" #include "crc16.h" #include "bus_pal_hardware.h" diff --git a/right/src/config.h b/right/src/config.h new file mode 100644 index 0000000..a164073 --- /dev/null +++ b/right/src/config.h @@ -0,0 +1,9 @@ +#ifndef __CONFIG_H__ +#define __CONFIG_H__ + +// Macros: + +// #define LED_DRIVER_STRESS_TEST + #define FIXED_BUSPAL_BOOTLOADER 1 // Used to mark the fixed BusPal bootloader. Macro usage can be removed in the future. + +#endif diff --git a/right/src/init_peripherals.c b/right/src/init_peripherals.c index f61d1fb..7767ce8 100644 --- a/right/src/init_peripherals.c +++ b/right/src/init_peripherals.c @@ -1,5 +1,6 @@ #include "fsl_common.h" #include "fsl_port.h" +#include "config.h" #include "peripherals/test_led.h" #include "peripherals/reset_button.h" #include "i2c.h" diff --git a/right/src/slave_drivers/is31fl3731_driver.c b/right/src/slave_drivers/is31fl3731_driver.c index 444c300..0ed41ad 100644 --- a/right/src/slave_drivers/is31fl3731_driver.c +++ b/right/src/slave_drivers/is31fl3731_driver.c @@ -1,3 +1,4 @@ +#include "config.h" #include "slave_drivers/is31fl3731_driver.h" #include "slave_scheduler.h" #include "led_display.h"