BRT Community

Please login or register.

Login with username, password and session length
Advanced search  

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

Author Topic: error on custom ESD_METHOD in source file  (Read 143 times)

Cyrilou

  • Newbie
  • *
  • Posts: 13
    • View Profile
error on custom ESD_METHOD in source file
« on: December 10, 2020, 01:24:50 PM »

I want to control backlight level of my screen with this function :
In C file:
Code: [Select]
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:
Code: [Select]
#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?

Logged