able to get usbpd irq handler

- handle cc1, cc2 voltage changes
- get order set, rx message end interrupt
- add  segger rtt support for cmake
This commit is contained in:
hathach
2023-06-06 23:55:33 +07:00
parent a70978e057
commit b3fda4a354
4 changed files with 196 additions and 37 deletions

View File

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