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.
34 lines
600 B
C
34 lines
600 B
C
/*
|
|
* Copyright (c) The Libre Solar Project Contributors
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#ifndef HARDWARE_H
|
|
#define HARDWARE_H
|
|
|
|
/** @file
|
|
*
|
|
* @brief
|
|
* Hardware-specific functions like timers, watchdog, bootloader
|
|
*/
|
|
|
|
/** DC/DC or PWM control loop (implemented in main.cpp)
|
|
*/
|
|
void system_control();
|
|
|
|
/** Reset device and start STM32 internal bootloader
|
|
*/
|
|
void start_stm32_bootloader();
|
|
|
|
/**
|
|
* Reset device
|
|
*/
|
|
void reset_device();
|
|
|
|
/**
|
|
* Callback for task watchdogs used in multiple threads
|
|
*/
|
|
void task_wdt_callback(int channel_id, void *user_data);
|
|
|
|
#endif /* HARDWARE_H */ |