fastlink30 Posted August 21, 2014 Report Posted August 21, 2014 stm32f4/discovery - ugfx from repository - chibistudiowhen 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
Joel Bodenmann Posted August 21, 2014 Report Posted August 21, 2014 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
fastlink30 Posted August 21, 2014 Author Report Posted August 21, 2014 yes, warnings gone... thank you
Joel Bodenmann Posted August 21, 2014 Report Posted August 21, 2014 Thanks for testing. I updated the repository.~ Tectu
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now