21
21
#include " USBPhy.h"
22
22
23
23
extern " C" {
24
- #include " nrf_drv_usbd.h"
25
- #include " nrfx_power.h"
24
+ #include " nrf_drv_usbd.h"
25
+ #include " nrfx_power.h"
26
26
}
27
27
28
28
class USBPhyHw : public USBPhy {
@@ -41,7 +41,7 @@ class USBPhyHw : public USBPhy {
41
41
virtual void sof_disable ();
42
42
virtual void set_address (uint8_t address);
43
43
virtual void remote_wakeup ();
44
- virtual const usb_ep_table_t * endpoint_table ();
44
+ virtual const usb_ep_table_t * endpoint_table ();
45
45
46
46
virtual uint32_t ep0_set_max_packet (uint32_t max_packet);
47
47
virtual void ep0_setup_read_result (uint8_t *buffer, uint32_t size);
@@ -62,7 +62,7 @@ class USBPhyHw : public USBPhy {
62
62
63
63
virtual void process ();
64
64
65
- static void _usb_event_handler (nrf_drv_usbd_evt_t const * const p_event);
65
+ static void _usb_event_handler (nrf_drv_usbd_evt_t const *const p_event);
66
66
static void _usb_power_event_handler (nrfx_power_usb_evt_t event);
67
67
static void _usb_virtual_status_event_handler (void );
68
68
@@ -73,10 +73,10 @@ class USBPhyHw : public USBPhy {
73
73
bool connect_enabled;
74
74
75
75
typedef enum usb_hw_event_type_t {
76
- USB_HW_EVENT_NONE = 0 ,
77
- USB_HW_EVENT_USBD = 1 ,
78
- USB_HW_EVENT_POWER = 2 ,
79
- USB_HW_EVENT_VIRTUAL_STATUS = 3
76
+ USB_HW_EVENT_NONE = 0 ,
77
+ USB_HW_EVENT_USBD = 1 ,
78
+ USB_HW_EVENT_POWER = 2 ,
79
+ USB_HW_EVENT_VIRTUAL_STATUS = 3
80
80
} usb_hw_event_type_t ;
81
81
82
82
// Event type to process
@@ -95,7 +95,7 @@ class USBPhyHw : public USBPhy {
95
95
nrf_drv_usbd_transfer_t transfer_buf[18 ];
96
96
97
97
// Returns the appropriate transfer structure buffer for the given endpoint
98
- nrf_drv_usbd_transfer_t * get_transfer_buffer (usb_ep_t endpoint);
98
+ nrf_drv_usbd_transfer_t * get_transfer_buffer (usb_ep_t endpoint);
99
99
100
100
// Returns the corresponding enumeration given an mbed endpoint number
101
101
static nrf_drv_usbd_ep_t get_nordic_endpoint (usb_ep_t endpoint);
0 commit comments