stm32/usbdev: Reduce dependency on py header files.
This commit is contained in:
parent
fed1b4fb56
commit
1d4246a2e8
@ -38,8 +38,6 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "py/mpconfig.h"
|
||||
|
||||
/* Exported types ------------------------------------------------------------*/
|
||||
/* Exported constants --------------------------------------------------------*/
|
||||
/* Common Config */
|
||||
|
@ -33,8 +33,7 @@
|
||||
#include "usbd_desc.h"
|
||||
#include "usbd_conf.h"
|
||||
|
||||
// need these headers just for MP_HAL_UNIQUE_ID_ADDRESS
|
||||
#include "py/misc.h"
|
||||
// need this header just for MP_HAL_UNIQUE_ID_ADDRESS
|
||||
#include "py/mphal.h"
|
||||
|
||||
// So we don't clash with existing ST boards, we use the unofficial FOSS VID.
|
||||
|
@ -36,7 +36,7 @@
|
||||
#include "usbd_cdc_msc_hid.h"
|
||||
#include "usbd_msc_storage.h"
|
||||
|
||||
#include "py/misc.h"
|
||||
#include "py/mpstate.h"
|
||||
#include "storage.h"
|
||||
#include "sdcard.h"
|
||||
|
||||
|
@ -36,8 +36,8 @@ typedef struct {
|
||||
uint8_t CmdOpCode;
|
||||
uint8_t CmdLength;
|
||||
|
||||
__IO uint32_t TxState;
|
||||
__IO uint32_t RxState;
|
||||
volatile uint32_t TxState;
|
||||
volatile uint32_t RxState;
|
||||
} USBD_CDC_HandleTypeDef;
|
||||
|
||||
typedef struct _USBD_STORAGE {
|
||||
|
@ -24,6 +24,7 @@
|
||||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#include STM32_HAL_H
|
||||
#include "usbd_ioreq.h"
|
||||
#include "usbd_cdc_msc_hid.h"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user