Guest User

conf_clock.h

a guest
Jul 29th, 2015
33
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #ifndef CONF_CLOCK_H_INCLUDED
  2. #define CONF_CLOCK_H_INCLUDED
  3.  
  4. // ===== Peripheral Clock Management Options
  5.  
  6. #define CONFIG_SYSCLK_INIT_CPUMASK   (0)
  7. #define CONFIG_SYSCLK_INIT_PBAMASK   (0)
  8. #define CONFIG_SYSCLK_INIT_PBBMASK   (0)
  9. #define CONFIG_SYSCLK_INIT_HSBMASK   (0)
  10.  
  11. #define CONFIG_SYSCLK_SOURCE         (SYSCLK_SRC_OSC0)
  12. #define CONFIG_SYSCLK_CPU_DIV        (0)
  13. #define CONFIG_SYSCLK_PBA_DIV        (0)
  14. #define CONFIG_SYSCLK_PBB_DIV        (0)
  15. #define CONFIG_PLL0_SOURCE           (PLL_SRC_OSC0)
  16. #define CONFIG_PLL0_MUL              (48000000UL / BOARD_OSC0_HZ)
  17. #define CONFIG_PLL0_DIV              (1)
  18. #define CONFIG_USBCLK_SOURCE         (USBCLK_SRC_OSC0)
  19. #define CONFIG_USBCLK_DIV            (1)
  20. #define CONFIG_PLL1_SOURCE           (PLL_SRC_OSC0)
  21. #define CONFIG_PLL1_DIV              (2)
  22. #define CONFIG_PLL1_MUL              (8)
  23.  
  24. #endif /* CONF_CLOCK_H_INCLUDED */
RAW Paste Data