44 void lpc23xx_pclk_scale(uint32_t source, uint32_t target, uint32_t *pclksel, uint32_t *prescale);
54 bool install_irq(
int IntNumber,
void (*HandlerAddr)(
void),
int Priority);
57 void gpio_init_ports(
void);
65 register uint32_t *lr_ptr;
66 __asm__ __volatile__(
"mov %0, lr" :
"=r"(lr_ptr));
67 printf(
"%p\n", (
void*) lr_ptr);
85 #define CPU_HAS_BACKUP_RAM (1)
static bool cpu_woke_from_backup(void)
Returns true if the CPU woke from Deep Sleep.
void cpu_init_pll(void)
Initialize the phase lock loop oscillator.
bool cpu_backup_ram_is_initialized(void)
Returns true if the backup RAM has been initialized.
uintptr_t __stack_start
end of user stack memory space
void lpc23xx_pclk_scale(uint32_t source, uint32_t target, uint32_t *pclksel, uint32_t *prescale)
Scale lpc23xx cpu speed.
void cpu_init_clks(void)
Initialize lpc23xx cpu clocks.
static void cpu_print_last_instruction(void)
Prints the current content of the link register (lr)
bool install_irq(int IntNumber, void(*HandlerAddr)(void), int Priority)
install lpc23xx irq
void cpu_init_mam(void)
Initialize the Memory Acceleration Module.