BikeComputer/main.cpp

25 lines
555 B
C++
Raw Normal View History

2024-10-20 15:02:14 +02:00
/* mbed Microcontroller Library
* Copyright (c) 2019 ARM Limited
* SPDX-License-Identifier: Apache-2.0
*/
#if !MBED_TEST_MODE
#include "mbed.h" // NOLINT
2024-11-17 14:20:38 +01:00
#include "mbed_trace.h"
2024-11-17 23:09:00 +01:00
#include "static_scheduling_with_event/bike_system.hpp"
2024-10-20 15:02:14 +02:00
2024-11-17 23:09:00 +01:00
#if defined(MBED_CONF_MBED_TRACE_ENABLE)
2024-11-17 14:20:38 +01:00
#define TRACE_GROUP "MAIN"
2024-11-17 23:09:00 +01:00
#endif // MBED_CONF_MBED_TRACE_ENAB
2024-11-17 14:20:38 +01:00
2024-10-20 15:02:14 +02:00
int main() {
2024-11-17 23:09:00 +01:00
#if defined(MBED_CONF_MBED_TRACE_ENABLE)
2024-11-17 14:20:38 +01:00
mbed_trace_init();
2024-11-17 23:09:00 +01:00
#endif
static_scheduling_with_event::BikeSystem bikeSystem;
2024-11-17 19:13:06 +01:00
bikeSystem.startWithEventQueue();
2024-10-20 15:02:14 +02:00
}
#endif // MBED_TEST_MODE