usb: add missing stdint.h includes

Some class headers were not including stdint.h themselves, despite
relying on those types, and relying on them already being included
earlier elsewhere.  Consistently include stdint.h where it's used.

Fixes: https://github.com/libopencm3/libopencm3/issues/1471
Signed-off-by: Karl Palsson <karlp@tweak.au>
This commit is contained in:
Karl Palsson
2023-03-07 14:23:49 +00:00
parent 8bc483746b
commit 9914cd1d6c
2 changed files with 4 additions and 0 deletions

View File

@@ -38,6 +38,8 @@ LGPL License Terms @ref lgpl_license
#ifndef __DFU_H
#define __DFU_H
#include <stdint.h>
#define USB_CLASS_DFU 0xFE
enum dfu_req {

View File

@@ -40,6 +40,8 @@ LGPL License Terms @ref lgpl_license
#ifndef __MSC_H
#define __MSC_H
#include <stdint.h>
typedef struct _usbd_mass_storage usbd_mass_storage;
/* Definitions of Mass Storage Class from: