6663b6c9
adorian
projet complet av...
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#ifndef ION_DEVICE_USB_H
#define ION_DEVICE_USB_H
#include "regs/regs.h"
namespace Ion {
namespace USB {
namespace Device {
/* Pin | Role | Mode | Function
* -----+-------------------+-----------------------+----------
* PA9 | VBUS | Input, pulled down | Low = unplugged, high = plugged
*/
void init();
void initGPIO();
void shutdown();
constexpr static GPIOPin VbusPin = GPIOPin(GPIOA, 9);
}
}
}
#endif
|