init_at91.c File Reference
AT91SAM7S256 CRT. More...
#include <io/arm.h>#include <cfg/macros.h>Go to the source code of this file.
Defines | |
| #define | PLL_MUL_VAL 72 |
| Real multiplier value is PLL_MUL_VAL + 1! | |
Functions | |
| void | __init1 (void) |
| Early hardware initialization routine1. | |
| void | __init2 (void) |
| Early hardware initialization routine2. | |
Detailed Description
AT91SAM7S256 CRT.
Definition in file init_at91.c.
Function Documentation
| void __init1 | ( | void | ) |
Early hardware initialization routine1.
This will be called by the ASM CRT routine just *before* clearing .bss and loading .data sections. Usually only basic tasks are performed here (i.e. setting the PLL). For more generic tasks, __init2() should be used.
- Note:
- Please keep in mind that since .bss and .data are not yet set, care must be taken. No static data can be used inside this funcition. Also some libc functions or floating point operations could potentially use initialized static data, be aware!
Definition at line 151 of file init_at91.c.
| void __init2 | ( | void | ) |
Early hardware initialization routine2.
This will be called by the ASM CRT routine just *after* clearing .bss and loading .data sections and before calling main().
Definition at line 230 of file init_at91.c.
