contiki/board/lowlevel.c
Mariano Alvira 0c4f5c61ef need a way to run board specific lowlevel inits
like for vreg. this is a start.
2010-02-24 18:47:53 -05:00

10 lines
497 B
C

/* has been tested and it good */
void default_vreg_init(void) {
volatile uint32_t i;
*(volatile uint32_t *)(0x80003000) = 0x00000018; /* set default state */
*(volatile uint32_t *)(0x80003048) = 0x00000f04; /* bypass the buck */
for(i=0; i<0x161a8; i++) { continue; } /* wait for the bypass to take */
// while((((*(volatile uint32_t *)(0x80003018))>>17) & 1) !=1) { continue; } /* wait for the bypass to take */
*(volatile uint32_t *)(0x80003048) = 0x00000ff8; /* start the regulators */
}