Jump to content

Recommended Posts

Posted

https://git.ugfx.io/uGFX/uGFX/src/master/src/gdisp/gdisp_image_support.h#L26

 

#define gdispImageSwapWords32(dw)                    ((((uint32_t)(w))>>16)|(((uint32_t)(w))<<16))
#define gdispImageSwapBytes32(dw)                    (((((uint32_t)(w))&0xFF000000)>>8)|((((uint32_t)(w))&0x00FF0000)<<8)\
                                                     |((((uint32_t)(w))&0x0000FF00)>>8)|(((uint32_t)(w))<<8))

 

dw macro variable but the expression just uses "w"

 

 

Interestingly enough there's another bug with endian detection now with gcc 6.2 as its detecting my 32-bit cortex m-7 as 64-bit.....and setting GFX_CPU_ENDIAN_BIG

  • 8 months later...
Posted

Hehe. I shall finally maybe find out whats going on with the endian detection!

 

(Just got back to the project sorry).

 

Issue definitely still exists.

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...