Skip to content

TIM4_UPD_ISR

gicking edited this page Feb 10, 2018 · 2 revisions

back to Command Reference / Interrupt

Description

Implementation of Timer 4 update interrupt service routine. If TIM4_UPD interrupt is enabled, interrupt service routine TIM4_UPD_ISR() is automatically called after timer is updated on period match.

Notes:

  • TIM4_UPD_ISR() is used for internal time-keeping functions, and is called every 1ms
  • user function can be attached to TIM4_UPD_ISR() via attachInterruptMillis()
  • global interrupts must also be enabled, see interrupts()

Inclusion

  • defined in stm8_interrupt_vector.h
  • auto-loaded in main_general.h
  • in config.h set #define USE_TIM4_UPD_ISR

Syntax

ISR_HANDLER(TIM4_UPD_ISR, TIM4_UPD_VECTOR)

Parameters

  • input:

    • none
  • output:

    • none

Returns

  • Nothing

See also

Clone this wiki locally