Move to standard Zephyr T2 workspace structure (star topology)

https://docs.zephyrproject.org/latest/guides/west/workspaces.html

Previously, west manifest and CMake entry point were in zephyr subfolder
as required for PlatformIO. As PlatformIO support was dropped, we can
follow the default Zephyr folder structure more closely.

The application is built and flashed from app subfolder, where as unit
tests are run from tests subfolder.
This commit is contained in:
Martin Jäger
2021-12-12 14:09:05 +01:00
parent 15ee7d8553
commit 8ab8ea244a
57 changed files with 67 additions and 48 deletions
+56
View File
@@ -0,0 +1,56 @@
/*
* Copyright (c) The Libre Solar Project Contributors
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr.h>
#include <stdio.h>
#include "bat_charger.h"
#include "device_status.h"
#include "load.h"
#include "power_port.h"
#include "pwm_switch.h"
#include "thingset.h"
#include "board.h"
extern DcBus lv_bus;
extern PowerPort lv_terminal;
#if BOARD_HAS_DCDC
extern DcBus hv_bus;
extern PowerPort hv_terminal;
extern Dcdc dcdc;
#endif
#if BOARD_HAS_PWM_PORT
extern PwmSwitch pwm_switch;
#endif
extern PowerPort &bat_terminal;
extern PowerPort &solar_terminal;
extern PowerPort &grid_terminal;
extern DeviceStatus dev_stat;
extern Charger charger;
extern BatConf bat_conf;
extern BatConf bat_conf_user;
#if BOARD_HAS_LOAD_OUTPUT
extern LoadOutput load;
#endif
#if BOARD_HAS_USB_OUTPUT
extern LoadOutput usb_pwr;
#endif
extern ThingSet ts; // defined in data_objects.cpp
extern uint32_t timestamp;
/**
* Perform some device setup tasks (currently only used in Zephyr)
*/
void setup();