Hi everyone
My system has gpio backlight control on GPIO(0)7 so it can only be full on or full off.
This pin is also the PWM pin (ECAP0_IN_PWM0_OUT)
In bsp_padcfg.h I've changed this pin's Pad from Mode 7 to Mode 0 to give me PWM.
When I boot the board I get no backlight during the boot phase as I would expect.
However, once the OS starts up I get the backlight on.
The driver I've written to set up the PWM has no effect.(when built in or out of code)
When I look at what the pad is set to (conf_ecap0_in_pwm0_out at 0x44E10964) it is 0x00000007 (Mode 7 = GPIO)
It should be 0x00000010
I've put the following messages in OEMInit()....
//----------------------------------------------------------------------
// Initialize PAD cfg
//----------------------------------------------------------------------
OALPadCfgInit();
OALMSG(1, (L"OALPadCfgInit() conf_ecap0_in_pwm0_out = 0x%x\r\n", INREG32( OALPAtoUA(0x44E10964))));
//----------------------------------------------------------------------
// configure pin mux
//----------------------------------------------------------------------
ConfigurePadArray(BSPGetAllPadsInfo());
if (!RequestDevicePads(AM_DEVICE_I2C1)) OALMSG(OAL_ERROR, (TEXT("Failed to request pads for I2C2\r\n")));
OALMSG(1, (L"ConfigurePadArray() conf_ecap0_in_pwm0_out = 0x%x\r\n", INREG32( OALPAtoUA(0x44E10964))));
...and I get the following reply
OALPadCfgInit() conf_ecap0_in_pwm0_out = 0x0
ConfigurePadArray() conf_ecap0_in_pwm0_out = 0x10
From what I can see I've set-up the pad correctly for PWM operation but something has changed it back for GPIO operation.
Any ideas as to whats happening?
Other info
I've removed the backlight driver from the catalog and it no longer appears in builtin in the registry.
I've also disabled all the different power saving features as I want the device to be on full power at all times.
Regards
Terry