Jump to content

Recommended Posts

Posted

stm32f4/discovery - ugfx from repository - chibistudio

when i clean project & recompile:

In file included from c:/ChibiStudio/chibios/ext/ugfx/drivers/gdisp/SSD1289/gdisp_lld_SSD1289.c:16:0:

c:/ChibiStudio/chibios/ext/ugfx/boards/addons/gdisp/board_SSD1289_stm32f4discovery.h:38:1: warning: missing initializer [-Wmissing-field-initializers]

c:/ChibiStudio/chibios/ext/ugfx/boards/addons/gdisp/board_SSD1289_stm32f4discovery.h:38:1: warning: (near initialization for 'pwmcfg.dier') [-Wmissing-field-initializers]

after when simply recompile, no warning

Posted

Thank you for reporting this warning. It has nothing to do with the ChibiStudio example.

When I remember correctly the ChibiOS/RT PWM HAL was updated quite a while ago and the PWMConfig struct gained an additional member. Can you please try to replace it with the config below and let us know if the warning vanished? We will update the repository code in that case.

static const PWMConfig pwmcfg = {
100000, /* 100 kHz PWM clock frequency. */
100, /* PWM period is 100 cycles. */
0,
{
{PWM_OUTPUT_DISABLED, 0},
{PWM_OUTPUT_DISABLED, 0},
{PWM_OUTPUT_ACTIVE_HIGH, 0},
{PWM_OUTPUT_DISABLED, 0}
},
0,
0
};

~ Tectu

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...