Add initial sensor sampler and processing components
This commit is contained in:
+18
-3
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user