//***************************************************************************** // (C) Automotive Lighting Reutlingen GmbH // Tuebinger Strasse 123, 72762 Reutlingen, Germany // // Automotive Lighting Reutlingen GmbH owns all the rights to this work. // This work shall not be copied, reproduced, used, modified, transferred // or its information shall not be disclosed without the prior written // authorization of Automotive Lighting Reutlingen GmbH. //***************************************************************************** //----------------------------------------------------------------------------- /// \file CddStp8381_RoutCfg.h /// /// \brief Routing configuration of CddStp module /// /// \author jiangweihu //----------------------------------------------------------------------------- #ifndef CDDSTP8381_RoutCfg_H_ #define CDDSTP8381_RoutCfg_H_ #include #include //----------------------------------------------------------------------------- // PWM Defines //----------------------------------------------------------------------------- //Define of pwm #define CDDSTP8381_US_TO_MS_CONVERSION 1000u //1ms = 1000us #define CDDSTP_TASK_3MS 3u #define CDDSTP_TASK_5MS 5u #define CDDSTP_TASK_10MS 10u #define CDDSTP8381_PWM_FREQ_400HZ_TIME_RES 2500u //400hz, 2500us one pluse ( 1 pluse/ 2.5ms ) #define CDDSTP8381_PWM_FREQ_1KHZ_TIME_RES 1000u //1khz, 1000us one pluse ( 1 pluse/ 1ms ) #define CDDSTP8381_PWM_FREQ_1P5KHZ_TIME_RES 666u //1.5khz, 666us one pluse ( 1 pluse/ 0.666ms ) #define CDDSTP8381_PWM_FREQ_2KHZ_TIME_RES 500u //2khz, 500us one pluse ( 1 pluse/ 0.5ms ) #define CDDSTP8381_1KHZ_PLUSE_DECREASE_CUNT 10u //The frequency of 1kHz is the number of pulses in 10ms #define CDDSTP8381_1P5KHZ_PLUSE_DECREASE_CUNT 15u //The frequency of 1.5kHz is the number of pulses in 10ms #define CDDSTP8381_2KHZ_PLUSE_DECREASE_CUNT 20u //The frequency of 2kHz is the number of pulses in 10ms //----------------------------------------------------------------------------- // Access to EFT data //----------------------------------------------------------------------------- // API access #define CDDSTP8381_EftDataValid() CddEft_DataValid() // configuration #define CDDSTP8381_ECUVARCFG_ucDrvType(Device) EFT_ECUVARCFG_STP[Device].ucType //----------------------------------------------------------------------------- // Access to IoHwAbUser //----------------------------------------------------------------------------- #define CDDSTP8381_SetSTPChannelPwm(Channel,Duty) IoHwAbUser_SetLedChannelPwm(Channel, Duty); #endif // CDDSTP8381_RoutCfg_H__