Modification of mbed-src library only for STM32F030F4, very cheap microcontroller in 20-Pin TSSOP package, with 16Kbytes of Flash and 4Kbytes of Ram. **Target for online compilator must be Nucleo 32F030R8.**

Dependents:   STM32F031_blink_LED_2

Issue: Timer::start() resets the timer (Closed: Fixed)

calling the function Timer::start() resets the timer. This is in contrasts to the Mbed library in which case Timer::start() only resets the timer if the timer is not currently running.

Please can you update this so that it is the same as the official Mbed library.

Mbed-STM32F030F4 Library code

void Timer::start() { _start = ticker_read(_ticker_data); _running = 1; }

Mbed library code

void Timer::start() { if (!_running) { _start = ticker_read(_ticker_data); _running = 1; } }

2 comments:

10 Aug 2015

Done.

11 Aug 2015

Many thanks!! :))