0 Replies Latest reply on Jul 28, 2016 8:52 PM by axel.lin_1746341

    Does DCT read/write need 4 bytes alignment?



      I'm reading the comments in platform_dct.h.

      It mentioned that "All sub-structures MUST be a multiple of 4 bytes in size.".

      What happened if it's not 4 bytes alignment?


      In my test, it seems fine to call

      wiced_dct_read_lock()/wiced_dct_write() with size is 1 ( sizeof(uint8_t)).

      I don't find any 4 bytes alignment checking in wiced_dct_read_lock()/wiced_dct_write().

      It's not clear to me why 4 bytes alignment is necessary, can you explain a bit?