Jump to content

fixer

Members
  • Posts

    6
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. You're welcome. A tiny contribution to feedback into uGFX. I have not tried using it yet but it looks pretty good so far. I also made a small improvement to the CalibrationTransform bug, in case you haven't noticed. Just a little more efficient. I'll try to check out that correction to master later.
  2. I beg your pardon, I copied the wrong line. it was GFX_NO_INLINE that I was referring to . //#define GFX_NO_INLINE FALSE If I leave that commented I get a metric tonne of messages like this one: Compiling gwin.c In file included from /svn/stm32/stm32f4_linux/local/src/ugfx/src/gwin/gwin.c:13:0: /svn/stm32/stm32f4_linux/local/src/ugfx/gfx.h:61:5: warning: "GFX_NO_INLINE" is not defined [-Wundef] #if GFX_NO_INLINE
  3. Thanks, I'd just worked that out and came back to post : "never mind". I do now have a clean compilation of the chibios demo with uGFX compiled but unused. Fine. A couple of suggstions: rather than braking into continuation lines in the example config it may be clearer ( an easer to revert etc ) if just done by adding extra path content in a separate line: INCDIR += $(GFXINC) CSRC += $(GFXSRC) When I first built it having only turned on CHIBIOS in the config file , it was spamming the console with warnings about undefined GFX_USE_GDISP gfxconf.example.h contains indicating that the default value is FALSE. This is incorrect : it is undefined. //#define GFX_USE_GDISP FALSE Either it should be defined as false ( which is effectively what the code does when it is undefined ) or the doc should not say it has a default of FALSE when it is in fact UNDEFINED. Is there a logic to leaving it undefined which is spamming the console with warnings. Thanks for the help
  4. OK, I was misunderstanding how to include the demos. I have now compiled the demo example in /ugfx/boards/base/STM32F429i-Discovery/example_chibios_3.x without problems ( I have not flashed it but it compiles cleanly ). However, I don't see why editing the Chibios demo is not working. As a trivial test example, say I want to use the blinking LED demo and use uGFX to have a red dot blink on the display at the same time using gdisp . Before worrying about implementing that I need to link in the basic uGFX functionality following the guide. I edit the chibios demo Makefile as indicated. I first define GFXLIB , then: ### add uGFX includes: include $(GFXLIB)/gfx.mk include $(GFXLIB)/boards/base/STM32F429i-Discovery/board.mk include $(GFXLIB)/drivers/gdisp/STM32F429iDiscovery/driver.mk I've modified CSRC and INCDIR to include GFX. However, it fails to build. Compiling chprintf.c Compiling gfx.c In file included from /foobar/ugfx/src/gfx.c:16:0: /foobar/ugfx/gfx.h:55:21: fatal error: gfxconf.h: No such file or directory #include "gfxconf.h" ^ compilation terminated. make: *** [build/obj/gfx.o] Error 1 Have I not followed the guilde correctly or is this not what it is intended for? Thx.
  5. the bug fix is valid ( good catch ) but the second extra variable and assignment in the fix are unnecessary, it seems. static inline void CalibrationTransform(GMouseReading *pt, const GMouseCalibration *c) { coord_t tmp = (coord_t) (c->ax * pt->x + c->bx * pt->y + c->cx); pt->y = (coord_t) (c->ay * pt->x + c->by * pt->y + c->cy); pt->x = tmp; } I assume the aim is to keep the code as tight and small as possible.
  6. I have been trying to test current uGFX on ChibiOS 3 too. ( I did a fresh pull last night ). First of all there seems to be an error in the example Makefile you use to explain what mods are needed to include uGFX http://wiki.ugfx.org/index.php?title=ChibiOS/RT You say that there must not be a main.c in the project that links a uGFX demo ( which have their own main.c ) but you forget to remove it in the example. You may wish to correct that. I tried to add the oscilloscope and play-wave demos but they complained about a missing .h file. I suspect something has been renamed but the change not reflected in the demo code. I renamed at a guess and it looked like it fixed the problem: cp gaudio_driver_play.h gaudio_play_config.h However, it failed with problems in SPI. I skipped and went for gdsip/basics to get things running and hit the same problem: ugfx/boards/base/STM32F429i-Discovery/board_STM32F429iDiscovery.h:15:19: error: 'SPID5' undeclared (first use in this function) #define SPI_PORT &SPID5 Plus some missing function definitions eg; : ugfx/boards/base/STM32F429i-Discovery/board_STM32F429iDiscovery.h:118:2: warning: implicit declaration of function 'spiSend' [-Wimplicit-function-declaration] spiSend(SPI_PORT, 1, &sindex); The STM32F429iDiscovery appears to be fully supported and has an explicit subdir for Chibios 3.0 , what is this all about? Do I need to manually turn things on Chibios HAL until it stops complaining? BTW, I had already built the Chibios demo and it compiled without problems. Thanks.
×
×
  • Create New...