mqx.h version 3.8

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

mqx.h version 3.8

Jump to solution
898 Views
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 Kudos
1 Solution
538 Views
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

View solution in original post

0 Kudos
4 Replies
539 Views
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 Kudos
538 Views
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 Kudos
538 Views
c0170
Senior Contributor III

Hi Tgomes,

 

those 2 defines are OK.

 

Regards,

MartinK

0 Kudos
538 Views
Tgomes
Contributor III

Ok, thanks MartinK.

 

 

Best regards.

0 Kudos