Atmel Software Framework

sysclk_opt.c File Reference

Chip-specific system clock management functions.

Copyright (c) 2011-2015 Atmel Corporation. All rights reserved.

#include <compiler.h>
#include <sysclk.h>
#include <osc.h>
#include <pll.h>

Functions

void sysclk_disable_usb_opt (void)
 Disable clock for the USB module. More...
 
void sysclk_enable_usb_opt (uint8_t freq)
 Enable clock for the USB module. More...
 
void sysclk_init_opt (void)
 

void sysclk_disable_usb_opt ( void  )

Disable clock for the USB module.

References ccp_write_io().

void sysclk_enable_usb_opt ( uint8_t  freq)

Enable clock for the USB module.

Precondition
CONFIG_USBCLK_SOURCE must be defined.
Parameters
freqThe required USB clock frequency in MHz:
  • 6 for 6 MHz
  • 48 for 48 MHz

References Assert, ccp_write_io(), sysclk_enable_module(), SYSCLK_PORT_GEN, and SYSCLK_USB.