# define PIC_C18\r
#elif defined(__PCM__) || defined(__PCB__) || defined(__PCH__) // CCS PIC compiler\r
# define PIC_CCS\r
+#elif defined(STM32F1) // ARM STM32 with libopencm3\r
+# define ARM_OPENCM3\r
#elif defined(STM32L1XX_MD) || defined(STM32L1XX_MDP) || defined(STM32L1XX_HD) // ARM STM32\r
# include <stm32l1xx.h>\r
# define ARM_STM32\r
# define PROGMEM\r
# define memcpy_P memcpy\r
\r
+#elif defined(ARM_OPENCM3)\r
+\r
+# include <libopencm3/cm3/nvic.h>\r
+# include <libopencm3/stm32/rcc.h>\r
+# include <libopencm3/stm32/gpio.h>\r
+# include <libopencm3/stm32/timer.h>\r
+# define PROGMEM\r
+# define memcpy_P memcpy\r
+\r
#elif defined(SDCC_STM8)\r
\r
# include "stm8s.h"\r