interrupts
key 3 years ago
parent e5df688262
commit 56d8e45a99

@ -11,7 +11,7 @@
* This the timer interface and belongs to the interface layer * This the timer interface and belongs to the interface layer
* *
* @todo 06.03.22 Following functions are to be implmented : timerSetHz / timerSetMs / timerSetNs / timerSetPs * @todo 06.03.22 Following functions are to be implmented : timerSetHz / timerSetMs / timerSetNs / timerSetPs
* @todo 06.03.22 Create all the posssible timerInitxxxxxxx versions Ex. timerInitPWM(). * @todo 27.03.22 Add Compare capture modules compare/capture/ register set value in function timerInitOutputCompare();
************************************************************************************************** **************************************************************************************************
*/ */

@ -22,7 +22,7 @@ void timer_test(timerNo_t timer, pinNo_t pin)
void timer_capture_compare_test(timerNo_t timer) void timer_capture_compare_test(timerNo_t timer)
{ {
timerInitCounter(timer, 4000, 999, downCounting); timerInitCounter(timer, 1000, 999, downCounting);
// We use pin PA3 (Arduino header A2) // We use pin PA3 (Arduino header A2)
timerInitOutputCompare(timer, toggle, 4, pinA3, 2,0); timerInitOutputCompare(timer, toggle, 4, pinA3, 2,0);
timerSart(timer); timerSart(timer);

Loading…
Cancel
Save