You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

18 lines
341 B

  1. if [info exists AT91C_MAINOSC_FREQ] {
  2. # user set this... let it be.
  3. } {
  4. # 18.432mhz is a common thing...
  5. set AT91C_MAINOSC_FREQ 18432000
  6. }
  7. global AT91C_MAINOSC_FREQ
  8. if [info exists AT91C_SLOWOSC_FREQ] {
  9. # user set this... let it be.
  10. } {
  11. # 32khz is the norm
  12. set AT91C_SLOWOSC_FREQ 32768
  13. }
  14. global AT91C_SLOWOSC_FREQ