X-Git-Url: https://rtime.felk.cvut.cz/gitweb/arc.git/blobdiff_plain/79f7f49af39353dd43eedf246e757857c44a9dc5..07bbcb79799c461e4dc58be060a0c3e01f466c97:/boards/ti_tms570ls/examples/tms570_hdk_led/config/IoHwAb_Pwm.c diff --git a/boards/ti_tms570ls/examples/tms570_hdk_led/config/IoHwAb_Pwm.c b/boards/ti_tms570ls/examples/tms570_hdk_led/config/IoHwAb_Pwm.c new file mode 100644 index 00000000..f640e750 --- /dev/null +++ b/boards/ti_tms570ls/examples/tms570_hdk_led/config/IoHwAb_Pwm.c @@ -0,0 +1,44 @@ +/* +* Configuration of module: IoHwAb (IoHwAb_Pwm.c) +* +* Created by: +* Copyright: +* +* Configured for (MCU): MPC551x +* +* Module vendor: ArcCore +* Generator version: 3.1.3 +* +* Generated by Arctic Studio (http://arccore.com) +*/ + +#include "IoHwAb.h" +#include "IoHwAb_Internal.h" +/****************************************** Pwm outputs *******************************************/ + +/************************************ Parameterized Pwm output ************************************/ + +Std_ReturnType IoHwAb_Set_Duty(IoHwAb_SignalType signal, IoHwAb_DutyType duty, IoHwAb_StatusType *status) { + + IOHWAB_VALIDATE_RETURN(IOHWAB_SIGNAL_IS_VALID_PWM_DUTY_OUTPUT(signal), IOHWAB_PWMDUTY_SET_ID, IOHWAB_E_PARAM_SIGNAL, E_NOT_OK); + + switch (signal) { + default: { + return E_NOT_OK; + } + break; + } +} + +Std_ReturnType IoHwAb_Set_FrequencyAndDuty(IoHwAb_SignalType signal, IoHwAb_FrequencyType frequency, IoHwAb_DutyType duty, IoHwAb_StatusType *status) { + + IOHWAB_VALIDATE_RETURN(IOHWAB_SIGNAL_IS_VALID_PWM_FREQUENCYANDDUTY_OUTPUT(signal), IOHWAB_PWMFREQUENCYANDDUTY_SET_ID, IOHWAB_E_PARAM_SIGNAL, E_NOT_OK); + + switch (signal) { + default: { + return E_NOT_OK; + } + break; + } +} +