mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-25 13:31:37 +00:00
9a000 is the RF_BASE, evidently.
This commit is contained in:
parent
40207dc533
commit
2306e8cb6e
12
src/maca.c
12
src/maca.c
@ -62,16 +62,16 @@ void reset_maca(void)
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/* tested and is good */
|
/* tested and is good */
|
||||||
#define FLYBACK_BASE 0x80009a000
|
#define RF_BASE 0x80009a000
|
||||||
void flyback_init(void) {
|
void flyback_init(void) {
|
||||||
uint32_t val8, or;
|
uint32_t val8, or;
|
||||||
|
|
||||||
val8 = *(volatile uint32_t *)(FLYBACK_BASE+8);
|
val8 = *(volatile uint32_t *)(RF_BASE+8);
|
||||||
or = val8 | 0x0000f7df;
|
or = val8 | 0x0000f7df;
|
||||||
*(volatile uint32_t *)(FLYBACK_BASE+8) = or;
|
*(volatile uint32_t *)(RF_BASE+8) = or;
|
||||||
*(volatile uint32_t *)(FLYBACK_BASE+12) = 0x00ffffff;
|
*(volatile uint32_t *)(RF_BASE+12) = 0x00ffffff;
|
||||||
*(volatile uint32_t *)(FLYBACK_BASE+16) = (((uint32_t)0x00ffffff)>>12);
|
*(volatile uint32_t *)(RF_BASE+16) = (((uint32_t)0x00ffffff)>>12);
|
||||||
*(volatile uint32_t *)(FLYBACK_BASE) = 16;
|
*(volatile uint32_t *)(RF_BASE) = 16;
|
||||||
/* good luck and godspeed */
|
/* good luck and godspeed */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user