Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: main.cpp
- Revision:
- 3:66c14c73bfdd
- Parent:
- 2:ce1e2d72919d
diff -r ce1e2d72919d -r 66c14c73bfdd main.cpp
--- a/main.cpp Fri Oct 01 14:18:53 2021 +0000
+++ b/main.cpp Wed Feb 23 18:56:53 2022 +0000
@@ -51,7 +51,7 @@
TIM6->SR=0;
}
-void Timer_init()
+void initTimer()
{
RCC->APB1ENR |= 0b10000; //TIM6
TIM6->PSC=31999; //1ms
@@ -121,7 +121,7 @@
Lichtschranke.enable_irq();
heben.period_us(100);
senken.period_us(100);
- Timer_init();
+ initTimer();
}