chrysn 763ce7a9bf USB VID/PID: Move check inside usb.h include guards
As the whitelist define can be set per compilation unit in all
legitimate cases, the checks do not need to be run on every single usb.h
inclusion. This is done for two reaons:

* It is sufficient -- if any user C file includes usb.h, there's already
  a good chance that the user is doing something USB related manualy.
  (And conversely, the existing examples with boards that happen to pull
  in CDC-ACM or CDC-ECM do not include usb.h from an example C file).

* Defining the USB_H_USER_IS_RIOT around legitimate uses of the header
  by other headers would allow accidental sidestepping: If a user
  includes a legitimate usb.h using header (say, board.h) and just
  forgets to include usb.h on their own, their application that'd mess
  with USB would still work as usb.h is transitively included, and the
  check for custom includes does not trigger.
2020-01-30 15:04:26 +01:00
..
2019-11-23 22:39:37 +01:00
2019-11-23 22:39:07 +01:00
2019-11-23 22:39:40 +01:00
2019-11-23 22:39:37 +01:00
2018-06-11 19:12:02 +02:00
2019-11-23 22:39:37 +01:00
2019-11-23 22:39:37 +01:00
2019-05-16 12:01:36 +02:00
2019-12-05 15:39:24 +01:00
2019-11-23 22:39:37 +01:00
2019-11-23 22:39:38 +01:00
2019-09-09 20:27:16 +02:00
2019-11-23 22:39:38 +01:00
2019-11-23 22:39:38 +01:00
2019-11-23 22:39:07 +01:00
2018-08-24 18:14:03 +02:00
2019-06-05 17:10:26 +02:00
2018-10-03 10:44:14 +02:00
2019-04-12 15:51:15 +02:00
2019-11-07 13:04:46 +01:00