mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-12 19:04:59 +00:00
usb: Cleanup headers
Let's split the usb headers in 3 different parts, instead of having usb_descriptor.h pull in usb_hw.h and usb_api.h. - usb_api.h: EC functions related to usb (e.g. connect/disconnect) - usb_descriptor.h: common USB names and structures - usb_hw.h: Functions required for interactive with EC's USB HW BRANCH=none BUG=b:35587171 TEST=make buildall -j Change-Id: I37ead61e3be5e7ae464f1c9137cf02eaab0ff92e Reviewed-on: https://chromium-review.googlesource.com/454861 Commit-Ready: Nicolas Boichat <drinkcat@chromium.org> Tested-by: Nicolas Boichat <drinkcat@chromium.org> Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
This commit is contained in:
committed by
chrome-bot
parent
236a70f726
commit
391056f9ee
@@ -15,7 +15,7 @@
|
||||
#include "timer.h"
|
||||
#include "util.h"
|
||||
#include "usb_bb.h"
|
||||
#include "usb_descriptor.h"
|
||||
#include "usb_api.h"
|
||||
#include "usb_pd.h"
|
||||
#include "version.h"
|
||||
|
||||
|
||||
@@ -13,8 +13,8 @@
|
||||
#include "registers.h"
|
||||
#include "task.h"
|
||||
#include "timer.h"
|
||||
#include "usb_api.h"
|
||||
#include "usb_bb.h"
|
||||
#include "usb_descriptor.h"
|
||||
#include "usb_pd.h"
|
||||
#include "util.h"
|
||||
#include "version.h"
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
#include "task.h"
|
||||
#include "timer.h"
|
||||
#include "util.h"
|
||||
#include "usb_descriptor.h"
|
||||
#include "usb_api.h"
|
||||
#include "usb_mux.h"
|
||||
#include "usb_pd.h"
|
||||
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
#include "usart-stm32f0.h"
|
||||
#include "usart_tx_dma.h"
|
||||
#include "usart_rx_dma.h"
|
||||
#include "usb_hw.h"
|
||||
#include "usb_i2c.h"
|
||||
#include "usb_spi.h"
|
||||
#include "usb-stream.h"
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
#include "task.h"
|
||||
#include "timer.h"
|
||||
#include "usb_descriptor.h"
|
||||
#include "usb_hw.h"
|
||||
#include "util.h"
|
||||
#include "ina2xx.h"
|
||||
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
#include "producer.h"
|
||||
#include "queue.h"
|
||||
#include "usb_descriptor.h"
|
||||
#include "usb_hw.h"
|
||||
|
||||
/*
|
||||
* Compile time Per-USB stream configuration stored in flash. Instances of this
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
#include "timer.h"
|
||||
#include "util.h"
|
||||
#include "usb_descriptor.h"
|
||||
#include "usb_hw.h"
|
||||
#include "watchdog.h"
|
||||
|
||||
/****************************************************************************/
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
#include "timer.h"
|
||||
#include "util.h"
|
||||
#include "usb_descriptor.h"
|
||||
#include "usb_hw.h"
|
||||
|
||||
/* Console output macro */
|
||||
#define CPRINTF(format, args...) cprintf(CC_USB, format, ## args)
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
#include "task.h"
|
||||
#include "timer.h"
|
||||
#include "util.h"
|
||||
#include "usb_descriptor.h"
|
||||
#include "usb_hw.h"
|
||||
#include "usb-stream.h"
|
||||
|
||||
static size_t rx_read(struct usb_stream_config const *config)
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
#include "producer.h"
|
||||
#include "queue.h"
|
||||
#include "usb_descriptor.h"
|
||||
#include "usb_hw.h"
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
|
||||
@@ -16,7 +16,9 @@
|
||||
#include "task.h"
|
||||
#include "timer.h"
|
||||
#include "util.h"
|
||||
#include "usb_api.h"
|
||||
#include "usb_descriptor.h"
|
||||
#include "usb_hw.h"
|
||||
|
||||
/* Console output macro */
|
||||
#define CPRINTF(format, args...) cprintf(CC_USB, format, ## args)
|
||||
|
||||
@@ -12,7 +12,9 @@
|
||||
#include "task.h"
|
||||
#include "timer.h"
|
||||
#include "util.h"
|
||||
#include "usb_api.h"
|
||||
#include "usb_descriptor.h"
|
||||
#include "usb_hw.h"
|
||||
|
||||
/* Console output macro */
|
||||
#define CPRINTF(format, args...) cprintf(CC_USB, format, ## args)
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
|
||||
#include "compile_time_macros.h"
|
||||
#include "usb_descriptor.h"
|
||||
#include "usb_hw.h"
|
||||
|
||||
struct usb_gpio_state {
|
||||
uint32_t set_mask;
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
#include "timer.h"
|
||||
#include "util.h"
|
||||
#include "usb_descriptor.h"
|
||||
#include "usb_hw.h"
|
||||
#include "usb_hid.h"
|
||||
|
||||
/* Console output macro */
|
||||
|
||||
@@ -17,7 +17,9 @@
|
||||
#include "task.h"
|
||||
#include "timer.h"
|
||||
#include "util.h"
|
||||
#include "usb_api.h"
|
||||
#include "usb_descriptor.h"
|
||||
#include "usb_hw.h"
|
||||
#include "usb_hid.h"
|
||||
#include "usb_hid_hw.h"
|
||||
|
||||
|
||||
@@ -14,7 +14,9 @@
|
||||
#include "task.h"
|
||||
#include "timer.h"
|
||||
#include "util.h"
|
||||
#include "usb_api.h"
|
||||
#include "usb_descriptor.h"
|
||||
#include "usb_hw.h"
|
||||
#include "usb_hid.h"
|
||||
#include "usb_hid_hw.h"
|
||||
#include "usb_hid_touchpad.h"
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
#include "registers.h"
|
||||
#include "spi.h"
|
||||
#include "usb_descriptor.h"
|
||||
#include "usb_hw.h"
|
||||
#include "usb_spi.h"
|
||||
#include "util.h"
|
||||
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
#include "compile_time_macros.h"
|
||||
#include "hooks.h"
|
||||
#include "usb_descriptor.h"
|
||||
#include "usb_hw.h"
|
||||
|
||||
/*
|
||||
* Command:
|
||||
|
||||
@@ -12,6 +12,8 @@
|
||||
#include "shared_mem.h"
|
||||
#include "system.h"
|
||||
#include "update_fw.h"
|
||||
#include "usb_api.h"
|
||||
#include "usb_hw.h"
|
||||
#include "usb-stream.h"
|
||||
#include "util.h"
|
||||
|
||||
|
||||
@@ -10,9 +10,6 @@
|
||||
|
||||
#include <stddef.h> /* for wchar_t */
|
||||
|
||||
#include "usb_api.h"
|
||||
#include "usb_hw.h"
|
||||
|
||||
#define USB_MAX_PACKET_SIZE 64
|
||||
|
||||
/* USB 2.0 chapter 9 definitions */
|
||||
|
||||
Reference in New Issue
Block a user