Hello
I have a problem...
Example;
#define A ((uint16_t *)&LPC_RTC->GPREG0)[0]
#define B ((uint16_t *)&LPC_RTC->GPREG0)[1]
A = 10;
B = 20;
OUT
A = 20
B = 20
Why its not work ?
I use emBitz IDE and LPC1768
for example;
typedef struct{
uint32_t value;
} C;
((uint16_t *)&C.value)[0] = 10;
((uint16_t *)&C.value)[1] = 20;
this is work... But, for LPC_RTC->GPREG not work...
Hi
emBitz IDE is not NXP product.
I would suggest you contact the product owner for this issue.
Have a great day,
Jun Zhang
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------
HI ,
Which IDE do you work with?
What's your chip part number?
Please let me know thus we can test it.
Thanks,
Jun Zhang