stm32/usbdev: Reduce dependency on py header files.

This commit is contained in:
Damien George 2018-02-01 12:44:16 +11:00
parent fed1b4fb56
commit 1d4246a2e8
5 changed files with 5 additions and 7 deletions

View File

@ -38,8 +38,6 @@
#include <stdlib.h>
#include <string.h>
#include "py/mpconfig.h"
/* Exported types ------------------------------------------------------------*/
/* Exported constants --------------------------------------------------------*/
/* Common Config */

View File

@ -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.

View File

@ -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"

View File

@ -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 {

View File

@ -24,6 +24,7 @@
* THE SOFTWARE.
*/
#include STM32_HAL_H
#include "usbd_ioreq.h"
#include "usbd_cdc_msc_hid.h"