diff options
| author | hathach <[email protected]> | 2023-06-06 23:55:33 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2023-06-06 23:55:33 +0700 |
| commit | b3fda4a35433a4102743ea9719e2323e4076ff34 (patch) | |
| tree | 0743c787192b5e73d648309414fbbdcb3bc29411 /src/common | |
| parent | a70978e05790cf744e777fd3e50f271fc3fffd1f (diff) | |
able to get usbpd irq handler
- handle cc1, cc2 voltage changes
- get order set, rx message end interrupt
- add segger rtt support for cmake
Diffstat (limited to 'src/common')
| -rw-r--r-- | src/common/tusb_types.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/common/tusb_types.h b/src/common/tusb_types.h index 39a2d4564..7b82c51d9 100644 --- a/src/common/tusb_types.h +++ b/src/common/tusb_types.h @@ -232,6 +232,19 @@ enum { #define TUSB_DESC_CONFIG_POWER_MA(x) ((x)/2) +//--------------------------------------------------------------------+ +// TYPE-C +//--------------------------------------------------------------------+ + +typedef enum { + TUSB_TYPEC_PORT_SRC, + TUSB_TYPEC_PORT_SNK, + TUSB_TYPEC_PORT_DRP +} tusb_typec_port_type_t; + +//--------------------------------------------------------------------+ +// +//--------------------------------------------------------------------+ typedef enum { XFER_RESULT_SUCCESS = 0, |
