1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-22 22:38:08 +00:00

trezorhal: whitespace

This commit is contained in:
Jan Pochyla 2017-04-07 13:41:12 +02:00
parent 1851bffe26
commit cc38f537d3
3 changed files with 17 additions and 17 deletions

View File

@ -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;

View File

@ -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`. */

View File

@ -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) {