From 887bc9acc353a31b5f6e1b4fcb0c61312c8603dd Mon Sep 17 00:00:00 2001 From: John Wellbelove Date: Sun, 10 Feb 2019 15:49:51 +0100 Subject: [PATCH] Updated callback service example --- .../FunctionInterruptSimulation.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/FunctionInterruptSimulation/FunctionInterruptSimulation.cpp b/examples/FunctionInterruptSimulation/FunctionInterruptSimulation.cpp index 186f4542..cee73877 100644 --- a/examples/FunctionInterruptSimulation/FunctionInterruptSimulation.cpp +++ b/examples/FunctionInterruptSimulation/FunctionInterruptSimulation.cpp @@ -10,8 +10,9 @@ enum VectorId TIM3_IRQ_HANDLER = 44, USART1_IRQ_HANDLER = 52, USART2_IRQ_HANDLER = 53, - VECTOR_ID_RANGE = USART2_IRQ_HANDLER - TIM1_CC_IRQ_HANDLER + 1, - VECTOR_ID_OFFSET = TIM1_CC_IRQ_HANDLER + VECTOR_ID_END, + VECTOR_ID_OFFSET = TIM1_CC_IRQ_HANDLER, + VECTOR_ID_RANGE = VECTOR_ID_END - VECTOR_ID_OFFSET }; typedef etl::callback_service InterruptVectors;