mqx.h version 3.8

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

mqx.h version 3.8

跳至解决方案
2,595 次查看
Tgomes
Contributor III

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.

0 项奖励
回复
1 解答
2,234 次查看
c0170
Senior Contributor III

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

在原帖中查看解决方案

0 项奖励
回复
4 回复数
2,235 次查看
c0170
Senior Contributor III

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

0 项奖励
回复
2,234 次查看
Tgomes
Contributor III

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.

0 项奖励
回复
2,234 次查看
c0170
Senior Contributor III

Hi Tgomes,

 

those 2 defines are OK.

 

Regards,

MartinK

0 项奖励
回复
2,234 次查看
Tgomes
Contributor III

Ok, thanks MartinK.

 

 

Best regards.

0 项奖励
回复