Skip to content

Commit 974e889

Browse files
AGlass0fMilkArto Kinnunen
authored andcommitted
Autoformatted with astyle
1 parent b2ae05f commit 974e889

File tree

2 files changed

+469
-427
lines changed

2 files changed

+469
-427
lines changed

usb/device/targets/TARGET_NORDIC/TARGET_MCU_NRF52840/USBPhyHw.h

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
#include "USBPhy.h"
2222

2323
extern "C" {
24-
#include "nrf_drv_usbd.h"
25-
#include "nrfx_power.h"
24+
#include "nrf_drv_usbd.h"
25+
#include "nrfx_power.h"
2626
}
2727

2828
class USBPhyHw : public USBPhy {
@@ -41,7 +41,7 @@ class USBPhyHw : public USBPhy {
4141
virtual void sof_disable();
4242
virtual void set_address(uint8_t address);
4343
virtual void remote_wakeup();
44-
virtual const usb_ep_table_t* endpoint_table();
44+
virtual const usb_ep_table_t *endpoint_table();
4545

4646
virtual uint32_t ep0_set_max_packet(uint32_t max_packet);
4747
virtual void ep0_setup_read_result(uint8_t *buffer, uint32_t size);
@@ -62,7 +62,7 @@ class USBPhyHw : public USBPhy {
6262

6363
virtual void process();
6464

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);
6666
static void _usb_power_event_handler(nrfx_power_usb_evt_t event);
6767
static void _usb_virtual_status_event_handler(void);
6868

@@ -73,10 +73,10 @@ class USBPhyHw : public USBPhy {
7373
bool connect_enabled;
7474

7575
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
8080
} usb_hw_event_type_t;
8181

8282
// Event type to process
@@ -95,7 +95,7 @@ class USBPhyHw : public USBPhy {
9595
nrf_drv_usbd_transfer_t transfer_buf[18];
9696

9797
// 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);
9999

100100
// Returns the corresponding enumeration given an mbed endpoint number
101101
static nrf_drv_usbd_ep_t get_nordic_endpoint(usb_ep_t endpoint);

0 commit comments

Comments
 (0)