I need to enable PWM functionality on FTM3_CH2 pin for Colibri VF61 (SODIMM 99).
This is not one of the PWM pins compatible with the Colibry family.
I did some tests and I successfully enable the PWM on the desired pin using
Pwm_SetConfigInt(hPwm, L"io", uIoPin.GenericDefinition, StoreVolatile);
but I have some questions on the ToradexCElibrary (v 2.1):
-
Pwm_Init()
accepts onlyL"PWM1"
,L"PWM2"
,L"PWM3"
orL"PWM4"
, but none of this is what I need. Since the documentation states
This function call does not modify any hardware registers.
I used L"PWM1"
but I don’t know if this is the expected way to do. Could you clarify, please?
-
Definition for
Pwm_SetConfigInt()
isBOOL Pwm_SetConfigInt (HANDLE hPort, const TCHAR *paramName, DWORD value, ParamStorageType storageType)
If the function doesn’t modify the parametervalue
, I suggest to change the definition toconst DWORD value
Do you think it would be a good idea?