add ref. crystal trimming.

This commit is contained in:
Mariano Alvira 2010-03-01 13:01:51 -05:00
parent 78be082b3c
commit eb94e7daaf
6 changed files with 55 additions and 4 deletions

View file

@ -97,4 +97,7 @@
#define SLEEP_RAM_64K sleep_ram_retain(2)
#define SLEEP_RAM_96K sleep_ram_retain(3)
#define pack_XTAL_CNTL(ctune4pf, ctune, ftune, ibias) \
(*CRM_XTAL_CNTL = ((ctune4pf << 25) | (ctune << 21) | ( ftune << 16) | (ibias << 8) | 0x52))
#endif