Ignore:
Timestamp:
Apr 2, 2026, 3:56:21 PM (5 weeks ago)
Author:
f.jahn
Message:
  • USB-PD function was implemented;
  • HW parity check on RAM was activated;
  • USB Device CDC mode was activated.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/fw_g473rct/USBPD/Target/usbpd_dpm_conf.h

    r59 r65  
    6464    .PE_SupportedSOP = USBPD_SUPPORTED_SOP_SOP    , /* Supported SOP : SOP, SOP' SOP" SOP'Debug SOP"Debug */
    6565    .PE_SpecRevision = USBPD_SPECIFICATION_REV3,/* spec revision value                                     */
    66     .PE_DefaultRole = USBPD_PORTPOWERROLE_SNK,  /* Default port role                                       */
     66    .PE_DefaultRole = USBPD_PORTPOWERROLE_SRC,  /* Default port role                                       */
    6767    .PE_RoleSwap = USBPD_FALSE,                  /* support port role swap                                  */
    6868    .PE_VDMSupport = USBPD_FALSE,
     
    7272    .PE_CapscounterSupport = USBPD_FALSE,       /* support caps counter                                    */
    7373    .CAD_RoleToggle = USBPD_FALSE,               /* CAD role toggle                                         */
     74    .CAD_DefaultResistor = 0x02u,
    7475    .CAD_TryFeature = 0,              /* CAD try feature                                         */
    7576    .CAD_AccesorySupport = USBPD_FALSE,         /* CAD accessory support                                   */
     
    107108{
    108109  {
    109     .PE_DataSwap = USBPD_FALSE,                  /* support data swap                                       */
     110    .PE_DataSwap = USBPD_TRUE,                  /* support data swap                                       */
    110111    .PE_VconnSwap = USBPD_FALSE,                 /* support VCONN swap                                  */
    111     .PE_DR_Swap_To_DFP = USBPD_FALSE,                  /*  Support of DR Swap to DFP                                  */
    112     .PE_DR_Swap_To_UFP = USBPD_FALSE,                  /*  Support of DR Swap to UFP                                  */
    113      .DPM_SNKExtendedCapa =                        /*!< SNK Extended Capability        */
    114          {
    115            .VID                    = USBPD_VID,  /*!< Vendor ID (assigned by the USB-IF)                      */
    116            .PID                    = USBPD_PID,  /*!< Product ID (assigned by the manufacturer)               */
    117            .XID                    = USBPD_XID,  /*!< Value provided by the USB-IF assigned to the product    */
    118            .FW_revision            = 1,          /*!< Firmware version number                                 */
    119            .HW_revision            = 2,          /*!< Hardware version number                                 */
    120        .SKEDB_Version          = USBPD_SKEDB_VERSION_1P0,  /*!<SKEDV Version (not the specification Version)
    121                                                                based on @ref USBPD_SKEDB_VERSION          */
    122        .LoadStep               = USBPD_SKEDB_LOADSTEP_150MA,/*!< Load Step based on @ref USBPD_SKEDB_LOADSTEP */
    123        .SinkLoadCharac.b       =             /*!< Sink Load Characteristics                               */
    124         {
    125            .PercentOverload    = 0,          /*!< Percent overload in 10% increments Values higher than 25
    126                                                   (11001b) are clipped to 250%. 00000b is the default.    */
    127            .OverloadPeriod     = 0,          /*!< Overload period in 20ms when bits 0-4 non-zero          */
    128            .DutyCycle          = 0,          /*!< Duty Cycle in 5% increments when bits 0-4 are non-zero  */
    129            .VBusVoltageDrop    = 0,          /*!< Can tolerate VBUS Voltage drop                          */
    130         },
    131        .Compliance             = 0,          /*!< Compliance based on combination of @ref USBPD_SKEDB_COMPLIANCE */
    132        .Touchtemp              = USBPD_SKEDB_TOUCHTEMP_NA,  /*< Touch Temp based on @ref USBPD_SKEDB_TOUCHTEMP   */
    133        .BatteryInfo            = 0,          /*!< Battery info                                                   */
    134        .SinkModes              = 0,          /*!< Sink Modes based on combination of @ref USBPD_SKEDB_SINKMODES  */
    135        .SinkMinimumPDP        = 0,          /*!< The Minimum PDP required by the Sink to operate without
    136                                                   consuming any power from its Battery(s) should it have one     */
    137        .SinkOperationalPDP     = 0,          /*!< The PDP the Sink requires to operate normally. For Sinks with
    138                                                   a Battery, it is the PDP rating of the charger supplied with
    139                                                   it or recommended for it.                                      */
    140        .SinkMaximumPDP         = 0,          /*!< The Maximum PDP the Sink can consume to operate and
    141                                                   charge its Battery(s) should it have one                       */
    142       },
     112    .PE_DR_Swap_To_DFP = USBPD_TRUE,                  /*  Support of DR Swap to DFP                                  */
     113    .PE_DR_Swap_To_UFP = USBPD_TRUE,                  /*  Support of DR Swap to UFP                                  */
    143114#if defined(USBPD_REV30_SUPPORT)
    144115#if _MANU_INFO
Note: See TracChangeset for help on using the changeset viewer.