Browse Source

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>
pull/1476/head
Karl Palsson 2 years ago
parent
commit
9914cd1d6c
  1. 2
      include/libopencm3/usb/dfu.h
  2. 2
      include/libopencm3/usb/msc.h

2
include/libopencm3/usb/dfu.h

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

2
include/libopencm3/usb/msc.h

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

Loading…
Cancel
Save