access to ALDOY

15 Apr 2010

I need to access the rtc alarm address ALDOY and my main file includes mbed.h but the compiler doesn't recognize this address. I must be missing something?

15 Apr 2010

mbed library uses new CMSIS style for peripheral registers. Every peripheral is now wrapped into a structure instead of all registers being declared as global variables. Also, sometimes the registers have slightly different names inside the structures. You can see definitions for LPC17xx here. In case of RTC, you'll need to access the LPC_RTC structure:

LPC_RTC->ALDOY = 256; // Programmer's day!

15 Apr 2010

That worked great! I made a note of it for future register access.