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:
parent
1a5a6d1403
commit
0e0ae97975
|
@ -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);
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue