diff --git a/os/io/platforms/STM32/stm32f10x.h b/demos/ARMCM3-STM32F103-GCC/stm32f10x.h
similarity index 98%
rename from os/io/platforms/STM32/stm32f10x.h
rename to demos/ARMCM3-STM32F103-GCC/stm32f10x.h
index ec8f6f43e..e1c8451a6 100644
--- a/os/io/platforms/STM32/stm32f10x.h
+++ b/demos/ARMCM3-STM32F103-GCC/stm32f10x.h
@@ -46,9 +46,9 @@
#if !defined (STM32F10X_LD) && !defined (STM32F10X_MD) && !defined (STM32F10X_HD) && !defined (STM32F10X_CL)
/* #define STM32F10X_LD */ /*!< STM32F10X_LD: STM32 Low density devices */
- /* #define STM32F10X_MD */ /*!< STM32F10X_MD: STM32 Medium density devices */
+ #define STM32F10X_MD /*!< STM32F10X_MD: STM32 Medium density devices */
/* #define STM32F10X_HD */ /*!< STM32F10X_HD: STM32 High density devices */
- #define STM32F10X_CL /*!< STM32F10X_CL: STM32 Connectivity line devices */
+ /* #define STM32F10X_CL */ /*!< STM32F10X_CL: STM32 Connectivity line devices */
#endif
/* Tip: To avoid modifying this file each time you need to switch between these
devices, you can define the device in your toolchain compiler preprocessor.
diff --git a/os/io/platforms/STM32/stm32_can.c b/os/io/platforms/STM32/stm32_can.c
deleted file mode 100644
index 7f489ce25..000000000
--- a/os/io/platforms/STM32/stm32_can.c
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- ChibiOS/RT - Copyright (C) 2006-2007 Giovanni Di Sirio.
-
- This file is part of ChibiOS/RT.
-
- ChibiOS/RT is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- ChibiOS/RT is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see .
-*/
-
-/**
- * @file STM32/stm32_can.c
- * @brief STM32 CAN driver code
- * @addtogroup STM32_CAN
- * @{
- */
-
-/** @} */
diff --git a/os/io/platforms/STM32/stm32_can.h b/os/io/platforms/STM32/stm32_can.h
deleted file mode 100644
index edfdc0241..000000000
--- a/os/io/platforms/STM32/stm32_can.h
+++ /dev/null
@@ -1,48 +0,0 @@
-/*
- ChibiOS/RT - Copyright (C) 2006-2007 Giovanni Di Sirio.
-
- This file is part of ChibiOS/RT.
-
- ChibiOS/RT is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- ChibiOS/RT is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see .
-*/
-
-/**
- * @file STM32/stm32_can.h
- * @brief STM32 CAN driver header file
- * @addtogroup STM32_CAN
- * @{
- */
-
-#ifndef _STM32_CAN_H_
-#define _STM32_CAN_H_
-
-typedef struct {
-} CANConfig;
-
-typedef struct {
-} CANMessage;
-
-#ifdef __cplusplus
-extern "C" {
-#endif
- void canInit(CANConfig *config);
- bool_t canReceive(CANMessage *canmsg);
- bool_t canTransmit(CANMessage *canmsg);
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* _STM32_CAN_H_ */
-
-/** @} */