summaryrefslogtreecommitdiffstats
path: root/Smol Watch Project/My Project/examples/driver_examples.c
diff options
context:
space:
mode:
authorJoey Castillo <jose.castillo@gmail.com>2021-05-02 15:45:40 -0400
committerJoey Castillo <jose.castillo@gmail.com>2021-05-02 15:45:40 -0400
commit88a38cc2352c2bd0ad2733093796f3d424ebcc9c (patch)
treeba6d58ae5e46a71094994a5de974672edf5866cb /Smol Watch Project/My Project/examples/driver_examples.c
parent9b381ef6ae36844e32452047b05b01f15893a2dc (diff)
downloadSensor-Watch-88a38cc2352c2bd0ad2733093796f3d424ebcc9c.tar.gz
Sensor-Watch-88a38cc2352c2bd0ad2733093796f3d424ebcc9c.tar.bz2
Sensor-Watch-88a38cc2352c2bd0ad2733093796f3d424ebcc9c.zip
remove timer; tick based on RTC PER7 interrupt
Diffstat (limited to 'Smol Watch Project/My Project/examples/driver_examples.c')
-rw-r--r--Smol Watch Project/My Project/examples/driver_examples.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/Smol Watch Project/My Project/examples/driver_examples.c b/Smol Watch Project/My Project/examples/driver_examples.c
index 122ac73f..19327003 100644
--- a/Smol Watch Project/My Project/examples/driver_examples.c
+++ b/Smol Watch Project/My Project/examples/driver_examples.c
@@ -97,33 +97,6 @@ void delay_example(void)
delay_ms(5000);
}
-static struct timer_task TIMER_0_task1, TIMER_0_task2;
-
-/**
- * Example of using TIMER_0.
- */
-static void TIMER_0_task1_cb(const struct timer_task *const timer_task)
-{
-}
-
-static void TIMER_0_task2_cb(const struct timer_task *const timer_task)
-{
-}
-
-void TIMER_0_example(void)
-{
- TIMER_0_task1.interval = 100;
- TIMER_0_task1.cb = TIMER_0_task1_cb;
- TIMER_0_task1.mode = TIMER_TASK_REPEAT;
- TIMER_0_task2.interval = 200;
- TIMER_0_task2.cb = TIMER_0_task2_cb;
- TIMER_0_task2.mode = TIMER_TASK_REPEAT;
-
- timer_add_task(&TIMER_0, &TIMER_0_task1);
- timer_add_task(&TIMER_0, &TIMER_0_task2);
- timer_start(&TIMER_0);
-}
-
/**
* Example of using PWM_0.
*/