gicking / STM8-SPL_SDCC_patch

Patch for STM8 Standard Peripherals Libraries
Apache License 2.0
88 stars 13 forks source link

Wrong interrupt header for STM8L10x #12

Closed gabbla closed 3 years ago

gabbla commented 3 years ago

In stm8l10x.h the included interrupt header file refers to the STM8S series, not the STM8L10x.

--- stm8l10x.h.orig     2021-10-18 14:52:40.882365259 +0200
+++ stm8l10x.h  2021-10-18 14:54:44.713340650 +0200
@@ -1439,7 +1439,7 @@

 #if defined(_SDCC_)                      /* SDCC patch: doesn't work like that in SDCC -> skip */
   #define INTERRUPT __interrupt
-  #include "stm8s_it.h"                  /* SDCC patch: ensure inclusion in main.c for interrupts */
+  #include "stm8l10x_it.h"               /* SDCC patch: ensure inclusion in main.c for interrupts */
 #endif

 /*============================== Handling bits ====================================*/
gicking commented 3 years ago

hi Gabbla,

sorry for the late response and thanks for pointing this out! I have fixed it already.

Regards, Georg