stm32/usbdev: Reduce dependency on py header files.

pull/3527/merge
Damien George 2018-02-01 12:44:16 +11:00
rodzic fed1b4fb56
commit 1d4246a2e8
5 zmienionych plików z 5 dodań i 7 usunięć

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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