Skip to content

Commit 90faf5a

Browse files
committed
Add StopWatchController
StopWatchController was introduced with InfiniTimeOrg/InfiniTime#1410
1 parent e4a3aa0 commit 90faf5a

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,8 @@ target_sources(infinisim PUBLIC
210210
${InfiniTime_DIR}/src/components/fs/FS.cpp
211211
${InfiniTime_DIR}/src/components/motor/MotorController.h
212212
${InfiniTime_DIR}/src/components/motor/MotorController.cpp
213+
${InfiniTime_DIR}/src/components/stopwatch/StopWatchController.h
214+
${InfiniTime_DIR}/src/components/stopwatch/StopWatchController.cpp
213215
${InfiniTime_DIR}/src/components/timer/TimerController.h
214216
${InfiniTime_DIR}/src/components/timer/TimerController.cpp
215217
${InfiniTime_DIR}/src/drivers/PinMap.h

main.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,7 @@ Pinetime::Controllers::NotificationManager notificationManager;
341341
Pinetime::Controllers::MotionController motionController;
342342
Pinetime::Controllers::TimerController timerController;
343343
Pinetime::Controllers::AlarmController alarmController {dateTimeController};
344+
Pinetime::Controllers::StopWatchController stopWatchController;
344345
Pinetime::Controllers::TouchHandler touchHandler(touchPanel, lvgl);
345346
Pinetime::Controllers::ButtonHandler buttonHandler;
346347
Pinetime::Controllers::BrightnessController brightnessController {};
@@ -359,6 +360,7 @@ Pinetime::Applications::DisplayApp displayApp(lcd,
359360
motionController,
360361
timerController,
361362
alarmController,
363+
stopWatchController,
362364
brightnessController,
363365
touchHandler,
364366
fs);
@@ -374,6 +376,7 @@ Pinetime::System::SystemTask systemTask(spi,
374376
dateTimeController,
375377
timerController,
376378
alarmController,
379+
stopWatchController,
377380
watchdog,
378381
notificationManager,
379382
motorController,

0 commit comments

Comments
 (0)