mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-05-25 00:59:39 -04:00
Fix cd: removed weaks
This commit is contained in:
@@ -8,8 +8,6 @@ set(SOURCES
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/bsp/harness/bsp_harness.cpp"
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/bsp/audio/bsp_audio.cpp"
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/bsp/lpm/bsp_lpm.cpp"
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/bsp/watchdog/watchdog_weak.cpp"
|
||||
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/drivers/pll/DriverPLL.cpp"
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/drivers/dmamux/DriverDMAMux.cpp"
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/drivers/dma/DriverDMA.cpp"
|
||||
|
||||
15
module-bsp/board/linux/watchdog/watchdog.cpp
Normal file
15
module-bsp/board/linux/watchdog/watchdog.cpp
Normal file
@@ -0,0 +1,15 @@
|
||||
#include <bsp/watchdog/watchdog.hpp>
|
||||
|
||||
namespace bsp::watchdog
|
||||
{
|
||||
__attribute__((weak)) void init()
|
||||
{}
|
||||
__attribute__((weak)) void system_reset()
|
||||
{}
|
||||
__attribute__((weak)) void pet()
|
||||
{}
|
||||
__attribute__((weak)) std::string reset_cause()
|
||||
{
|
||||
return {};
|
||||
}
|
||||
} // namespace bsp::watchdog
|
||||
@@ -1,9 +0,0 @@
|
||||
#include "watchdog.hpp"
|
||||
|
||||
namespace bsp::watchdog
|
||||
{
|
||||
__attribute__((weak)) void init() {}
|
||||
__attribute__((weak)) void system_reset() {}
|
||||
__attribute__((weak)) void pet() {}
|
||||
__attribute__((weak)) std::string reset_cause() { return {}; }
|
||||
}
|
||||
|
||||
@@ -21,9 +21,11 @@ set(BOARD_SOURCES
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/board/linux/usb_cdc/usb_cdc.cpp"
|
||||
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/board/linux/vibrator/vibrator.cpp"
|
||||
|
||||
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/board/linux/magnetometer/magnetometer.cpp"
|
||||
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/board/linux/watchdog/watchdog.cpp"
|
||||
|
||||
CACHE INTERNAL "")
|
||||
|
||||
set(BOARD_DIR_INCLUDES
|
||||
|
||||
Reference in New Issue
Block a user