Add initial sensor sampler and processing components
Build / Build app and tests (ubuntu-24.04) (push) Failing after 2m38s
Documentation / Build (1.14.0) (push) Failing after 26s
Documentation / Build (1.9.6) (push) Successful in 11s
Documentation / Deploy (push) Has been skipped

This commit is contained in:
2026-04-22 22:47:12 -07:00
parent cefb043b7f
commit 37fef28911
6 changed files with 82 additions and 4 deletions
+18 -3
View File
@@ -3,19 +3,34 @@
* SPDX-License-Identifier: Apache-2.0
*/
#include "SensorDataProcessor.hpp"
#include "SensorSampler.hpp"
#include <app_version.h>
#include <zephyr/kernel.h>
#include <zephyr/logging/log.h>
#include <app_version.h>
LOG_MODULE_REGISTER(main, CONFIG_APP_LOG_LEVEL);
// Sensor Data Processor
static constexpr size_t SensorDataProcessorStackSize = 1024;
static constexpr size_t SensorDataProcessorPriority = 5;
K_THREAD_DEFINE(SensorDataProcessorThreadId, SensorDataProcessorStackSize,
app::SensorDataProcessor::entryPoint, NULL, NULL, NULL,
SensorDataProcessorPriority, 0, 0);
// Sensor Sampler
static constexpr size_t SensorSamplerStackSize = 1024;
static constexpr size_t SensorSamplerPriority = 5;
K_THREAD_DEFINE(SensorSamplerThreadId, SensorSamplerStackSize,
app::SensorSampler::entryPoint, NULL, NULL, NULL,
SensorSamplerPriority, 0, 0);
int main() {
printk("Zephyr Example Application %s\n", APP_VERSION_STRING);
printk("Build with C++ standard: %ldL\n", __cplusplus);
while (true) {
printk("Running...\n");
printk("main - Running...\n");
k_sleep(K_SECONDS(5));
}