Other than the standard core manual(MPC563RM), is there a resource that explains how to use the structs (i.e. Module QSMCM) within 563.h? The manual does not contain actual example code for using the structs (i.e. QSMCM.SPCR.R=0xa10a; /*Master, TTL, 8bit, etc.)
I am new to lower level code like this and I am assuming there is possibly a supplemental guide for these structs.
Any help would be greatly appreciated.
Thank you,
Scott
Solved! Go to Solution.
Hello Scott
The attached file <samp563.c > contains the sample code for how to use the structures defined in head file.
It is similar for QSMCM, the code should be like:
QSMCM_A.SPCR0.R = 0xa10a
The address for QSMCM_A is defined in <mpc563.h>. Its structure type is defined in m_qsmcm.h.
Fiona Kuang
Technical Information & Commercial Support
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hello Scott
The attached file <samp563.c > contains the sample code for how to use the structures defined in head file.
It is similar for QSMCM, the code should be like:
QSMCM_A.SPCR0.R = 0xa10a
The address for QSMCM_A is defined in <mpc563.h>. Its structure type is defined in m_qsmcm.h.
Fiona Kuang
Technical Information & Commercial Support
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Thank you for your help! The sample code file really helped to clarify.
Scott