News:

Welcome to the Bridgetek Community!

Please read our Welcome Note

Technical Support enquires
please contact the team
@ Bridgetek Support

Please refer to our website for detailed information on all our products - Bridgetek - Bridging Technology

Main Menu

error on custom ESD_METHOD in source file

Started by Cyrilou, December 10, 2020, 01:24:50 PM

Previous topic - Next topic

Cyrilou

I want to control backlight level of my screen with this function :
In C file:

void APP_Screen_AdjustBrightness(Usr_Settings *context, int percentlevel)
{
Ft_Gpu_Hal_Context_t *phost = Ft_Esd_GetHost();
    uint8_t Value = 0x80;//0 to 128
    if(PercentLevel<=100)
    {
        Value = (uint8_t)((PercentLevel*128)/100);
    }
    EVE_Hal_wr8(phost, REG_PWM_DUTY, Value);                  // Backlight PWM duty
}


In H file:

#include "Ft_Esd.h"


ESD_METHOD(APP_Screen_AdjustBrightness, Context = Usr_Settings, Type = void)
ESD_PARAMETER(percentlevel, Type = int, Default = 100, Min = 0, Max = 100)
void APP_Screen_AdjustBrightness(Usr_Settings *context, int percentlevel); //error here


But I get an error that I can't resolve:
"C:/Program Files (x86)/EVE Screen Designer/NewProject3/Usr_AnimateLogo.h:16: error: ',' expected (got "*")"

I don't understand what that means?