From cc38f537d321f29aec4b5226675b08759936743e Mon Sep 17 00:00:00 2001 From: Jan Pochyla Date: Fri, 7 Apr 2017 13:41:12 +0200 Subject: [PATCH] trezorhal: whitespace --- micropython/trezorhal/usb.h | 6 +++--- micropython/trezorhal/usb_hid-impl.h | 12 ++++++------ micropython/trezorhal/usb_vcp-impl.h | 16 ++++++++-------- 3 files changed, 17 insertions(+), 17 deletions(-) diff --git a/micropython/trezorhal/usb.h b/micropython/trezorhal/usb.h index 4979a1d5f..57b61eeff 100644 --- a/micropython/trezorhal/usb.h +++ b/micropython/trezorhal/usb.h @@ -1,9 +1,9 @@ #ifndef __TREZORHAL_USB_H__ #define __TREZORHAL_USB_H__ -#define USB_EP_DIR_OUT 0x00 -#define USB_EP_DIR_IN 0x80 -#define USB_EP_DIR_MSK 0x80 +#define USB_EP_DIR_OUT 0x00 +#define USB_EP_DIR_IN 0x80 +#define USB_EP_DIR_MSK 0x80 typedef struct __attribute__((packed)) { uint8_t bLength; diff --git a/micropython/trezorhal/usb_hid-impl.h b/micropython/trezorhal/usb_hid-impl.h index d2d3f582e..cd9e48af8 100644 --- a/micropython/trezorhal/usb_hid-impl.h +++ b/micropython/trezorhal/usb_hid-impl.h @@ -1,10 +1,10 @@ -#define USB_DESC_TYPE_HID 0x21 -#define USB_DESC_TYPE_REPORT 0x22 +#define USB_DESC_TYPE_HID 0x21 +#define USB_DESC_TYPE_REPORT 0x22 -#define HID_REQ_SET_PROTOCOL 0x0b -#define HID_REQ_GET_PROTOCOL 0x03 -#define HID_REQ_SET_IDLE 0x0a -#define HID_REQ_GET_IDLE 0x02 +#define HID_REQ_SET_PROTOCOL 0x0b +#define HID_REQ_GET_PROTOCOL 0x03 +#define HID_REQ_SET_IDLE 0x0a +#define HID_REQ_GET_IDLE 0x02 /* usb_hid_add adds and configures new USB HID interface according to * configuration options passed in `info`. */ diff --git a/micropython/trezorhal/usb_vcp-impl.h b/micropython/trezorhal/usb_vcp-impl.h index bad80614b..b95acb964 100644 --- a/micropython/trezorhal/usb_vcp-impl.h +++ b/micropython/trezorhal/usb_vcp-impl.h @@ -1,13 +1,13 @@ -#define USB_LEN_ASSOC_DESC (0x08) +#define USB_LEN_ASSOC_DESC 0x08 -#define USB_DESC_TYPE_ASSOCIATION (0x0b) -#define USB_DESC_TYPE_HEADER (0x00) -#define USB_DESC_TYPE_CALL_MANAGEMENT (0x01) -#define USB_DESC_TYPE_ACM (0x02) -#define USB_DESC_TYPE_UNION (0x06) +#define USB_DESC_TYPE_ASSOCIATION 0x0b +#define USB_DESC_TYPE_HEADER 0x00 +#define USB_DESC_TYPE_CALL_MANAGEMENT 0x01 +#define USB_DESC_TYPE_ACM 0x02 +#define USB_DESC_TYPE_UNION 0x06 -#define USB_CDC_GET_LINE_CODING (0x21) -#define USB_CDC_SET_CONTROL_LINE_STATE (0x22) +#define CDC_GET_LINE_CODING 0x21 +#define CDC_SET_CONTROL_LINE_STATE 0x22 // static int ring_init(ring_buffer_t *b, uint8_t *buf, size_t cap) { // if (cap == 0 || (cap & (cap - 1)) != 0) {