LPC_RTC->GPREG

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

LPC_RTC->GPREG

940 Views
isacakmak
Contributor I

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 ?

Labels (1)
0 Kudos
3 Replies

743 Views
isacakmak
Contributor I

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...

0 Kudos

743 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

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.
-------------------------------------------------------------------------------

0 Kudos

743 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

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

0 Kudos