stmhal: Declare variables extern in include files

Else we end up with several instances of the variable.

Signed-off-by: Sven Wegener <sven.wegener@stealer.net>
This commit is contained in:
Sven Wegener 2014-11-05 21:02:40 +01:00 committed by Damien George
parent 1a5a6d1403
commit 0e0ae97975
2 changed files with 2 additions and 2 deletions

View File

@ -24,6 +24,6 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
const byte fresult_to_errno_table[20]; extern const byte fresult_to_errno_table[20];
MP_DECLARE_CONST_FUN_OBJ(mp_builtin_open_obj); MP_DECLARE_CONST_FUN_OBJ(mp_builtin_open_obj);

View File

@ -41,7 +41,7 @@ typedef enum {
USB_STORAGE_MEDIUM_SDCARD, USB_STORAGE_MEDIUM_SDCARD,
} usb_storage_medium_t; } usb_storage_medium_t;
const mp_obj_type_t pyb_usb_vcp_type; extern const mp_obj_type_t pyb_usb_vcp_type;
void pyb_usb_init0(void); void pyb_usb_init0(void);
void pyb_usb_dev_init(usb_device_mode_t mode, usb_storage_medium_t medium); void pyb_usb_dev_init(usb_device_mode_t mode, usb_storage_medium_t medium);