Skip to content

Commit 0f3d1cc

Browse files
committed
Merge pull request #273 from bcostm/master
[NUCLEO_F103RB] Correction in us_ticker
2 parents 43f1e01 + bbfdef0 commit 0f3d1cc

File tree

1 file changed

+2
-3
lines changed
  • libraries/mbed/targets/hal/TARGET_STM/TARGET_NUCLEO_F103RB

1 file changed

+2
-3
lines changed

libraries/mbed/targets/hal/TARGET_STM/TARGET_NUCLEO_F103RB/us_ticker.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,8 @@ static void tim_irq_handler(void) {
6262
}
6363
else {
6464
if (oc_int_part > 0) {
65-
//set_compare(0);
66-
//oc_rem_part = cval; // To finish the counter loop the next time
67-
//if (oc_rem_part == 0) GPIOB->ODR ^= (1 << 6); // DEBUG
65+
set_compare(0xFFFF);
66+
oc_rem_part = cval; // To finish the counter loop the next time
6867
oc_int_part--;
6968
}
7069
else {

0 commit comments

Comments
 (0)