Move PCB and user config to board Kconfig

Files in src/pcbs/xyz.h are moved to boards/xyz/board.h. User settings from
src/config.h are also configured via Kconfig, so the file is removed.
This commit is contained in:
Martin Jäger
2020-04-30 10:53:58 +02:00
parent 2d74a3a554
commit 2a71d02aeb
46 changed files with 108 additions and 463 deletions
+1 -3
View File
@@ -6,8 +6,6 @@
#ifndef UNIT_TEST
#include "config.h"
#if CONFIG_EXT_THINGSET_CAN
#include "ext.h"
@@ -22,7 +20,7 @@
#include "mbed.h"
#endif
#include "pcb.h"
#include "board.h"
#include "thingset.h"
#include "data_objects.h"
#include "can_msg_queue.h"
-2
View File
@@ -6,8 +6,6 @@
#ifndef UNIT_TEST
#include "config.h"
#if CONFIG_EXT_THINGSET_CAN
#include "ext/can_msg_queue.h"
+1 -3
View File
@@ -6,8 +6,6 @@
#ifndef UNIT_TEST
#include "config.h"
#if CONFIG_EXT_OLED_DISPLAY // otherwise don't compile code to reduce firmware size
#include "ext/ext.h"
@@ -21,7 +19,7 @@
#include "setup.h"
#include "half_bridge.h"
#include "pcb.h"
#include "board.h"
#include "oled_ssd1306.h"
// implement specific extension inherited from ExtInterface
-2
View File
@@ -6,8 +6,6 @@
#ifndef UNIT_TEST
#include "config.h"
#if CONFIG_EXT_THINGSET_SERIAL // otherwise don't compile code to reduce firmware size
#include "ext.h"
-2
View File
@@ -4,8 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/
#include "config.h"
/** EXT interface description template
*
* The UEXT port can be used to connect several different extension modules to the charge controller.
+1 -3
View File
@@ -6,15 +6,13 @@
#ifndef UNIT_TEST
#include "config.h"
#ifdef WIFI_ENABLED
#include <inttypes.h>
#include "load.h"
#include "thingset.h"
#include "pcb.h"
#include "board.h"
#include "ESP32.h"
UARTSerial uext_serial(PIN_UEXT_TX, PIN_UEXT_RX, 115200);