Hello there,
I am porting my application from MQX 3_6 to MQX 3_8, and noticed in the file mqx.h, in the "MEMORY TYPES MQX", there is the following piece of code:
# define MEM_TYPE_IO_USB_DCD_INFO_STRUCT 1045
# define MEM_TYPE_IO_USB_DCD_POLLED_DEVICE_STRUCT 1046
# define MEM_TYPE_IO_USB_DCD_INT_DEVICE_STRUCT 1047
# define MEM_TYPE_IO_SDIO_INT_DEVICE_STRUCT 1045
# define MEM_TYPE_IO_SDIO_IN_BUFFER 1046
# define MEM_TYPE_IO_SDIO_OUT_BUFFER 1047
Note that the first 3 are equal to the last three. Those types of memory are really the same? Or this was an error of type "Ctrl + c Ctrl + v"?
Best regards.
Solved! Go to Solution.
Hi Tgomes,
nice catch, fix this by ascending numbering:
# define MEM_TYPE_IO_SDIO_INT_DEVICE_STRUCT 1048
# define MEM_TYPE_IO_SDIO_IN_BUFFER 1049
# define MEM_TYPE_IO_SDIO_OUT_BUFFER 1050
It's been fixed.
Regards,
MartinK
Hi Tgomes,
nice catch, fix this by ascending numbering:
# define MEM_TYPE_IO_SDIO_INT_DEVICE_STRUCT 1048
# define MEM_TYPE_IO_SDIO_IN_BUFFER 1049
# define MEM_TYPE_IO_SDIO_OUT_BUFFER 1050
It's been fixed.
Regards,
MartinK
Hi MartinK,
Thanks for clarifying my question. Other two types of memory are also defined with the same value:
MEM_TYPE_MESSAGE_POOL_BLOCKS 12
MEM_TYPE_COMPONENT_SHIFT 12
MEM_TYPE_COMPONENT_SHIFT also must follow the ascending order? Or it should remain the same, since it was explicitly set apart from others.
Best regards.
Hi Tgomes,
those 2 defines are OK.
Regards,
MartinK
Ok, thanks MartinK.
Best regards.