diff options
Diffstat (limited to 'testhal/STM32L1xx/GPT/main.c')
| -rw-r--r-- | testhal/STM32L1xx/GPT/main.c | 4 | 
1 files changed, 4 insertions, 0 deletions
diff --git a/testhal/STM32L1xx/GPT/main.c b/testhal/STM32L1xx/GPT/main.c index 90e06879a..49247bac6 100644 --- a/testhal/STM32L1xx/GPT/main.c +++ b/testhal/STM32L1xx/GPT/main.c @@ -86,8 +86,12 @@ int main(void) {     * five seconds.
     */
    while (TRUE) {
 +    palSetPad(GPIOB, GPIOB_LED3);
 +    gptStopTimer(&GPTD2);
      gptStartContinuous(&GPTD2, 5000);
      chThdSleepMilliseconds(5000);
 +    palClearPad(GPIOB, GPIOB_LED3);
 +    gptStopTimer(&GPTD2);
      gptStartContinuous(&GPTD2, 2500);
      chThdSleepMilliseconds(5000);
    }
  | 
