Modified version of the mbed library for use with the Nucleo boards.

Dependents:   EEPROMWrite Full-Project

Fork of mbed-src by mbed official

Revision:
613:bc40b8d2aec4
Parent:
612:fba1c7dc54c0
Child:
614:9d86c2ae5de0
--- a/targets/hal/TARGET_Atmel/TARGET_SAM21/drivers/system/clock/clock_samd21_r21/clock_config_check.h	Tue Aug 18 15:00:09 2015 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,380 +0,0 @@
-#ifndef CLOCK_CONFIG_CHECK_H
-#  define CLOCK_CONFIG_CHECK_H
-
-#if !defined(CONF_CLOCK_FLASH_WAIT_STATES)
-#  error CONF_CLOCK_FLASH_WAIT_STATES not defined in conf_clock.h
-#endif
-
-#if !defined(CONF_CLOCK_CPU_DIVIDER)
-#  error CONF_CLOCK_CPU_DIVIDER not defined in conf_clock.h
-#endif
-
-#if !defined(CONF_CLOCK_APBA_DIVIDER)
-#  error CONF_CLOCK_APBA_DIVIDER not defined in conf_clock.h
-#endif
-
-#if !defined(CONF_CLOCK_APBB_DIVIDER)
-#  error CONF_CLOCK_APBB_DIVIDER not defined in conf_clock.h
-#endif
-
-#if !defined(CONF_CLOCK_OSC8M_PRESCALER)
-#  error CONF_CLOCK_OSC8M_PRESCALER not defined in conf_clock.h
-#endif
-
-#if !defined(CONF_CLOCK_OSC8M_ON_DEMAND)
-#  error CONF_CLOCK_OSC8M_ON_DEMAND not defined in conf_clock.h
-#endif
-
-#if !defined(CONF_CLOCK_OSC8M_RUN_IN_STANDBY)
-#  error CONF_CLOCK_OSC8M_RUN_IN_STANDBY not defined in conf_clock.h
-#endif
-
-#if !defined(CONF_CLOCK_XOSC_ENABLE)
-#  error CONF_CLOCK_XOSC_ENABLE not defined in conf_clock.h
-#endif
-
-#if !defined(CONF_CLOCK_XOSC_EXTERNAL_CRYSTAL)
-#  error CONF_CLOCK_XOSC_EXTERNAL_CRYSTAL not defined in conf_clock.h
-#endif
-
-#if !defined(CONF_CLOCK_XOSC_EXTERNAL_FREQUENCY)
-#  error CONF_CLOCK_XOSC_EXTERNAL_FREQUENCY not defined in conf_clock.h
-#endif
-
-#if !defined(CONF_CLOCK_XOSC_STARTUP_TIME)
-#  error CONF_CLOCK_XOSC_STARTUP_TIME not defined in conf_clock.h
-#endif
-
-#if !defined(CONF_CLOCK_XOSC_AUTO_GAIN_CONTROL)
-#  error CONF_CLOCK_XOSC_AUTO_GAIN_CONTROL not defined in conf_clock.h
-#endif
-
-#if !defined(CONF_CLOCK_XOSC_ON_DEMAND)
-#  error CONF_CLOCK_XOSC_ON_DEMAND not defined in conf_clock.h
-#endif
-
-#if !defined(CONF_CLOCK_XOSC_RUN_IN_STANDBY)
-#  error CONF_CLOCK_XOSC_RUN_IN_STANDBY not defined in conf_clock.h
-#endif
-
-#if !defined(CONF_CLOCK_XOSC32K_ENABLE)
-#  error CONF_CLOCK_XOSC32K_ENABLE not defined in conf_clock.h
-#endif
-
-#if !defined(CONF_CLOCK_XOSC32K_EXTERNAL_CRYSTAL)
-#  error CONF_CLOCK_XOSC32K_EXTERNAL_CRYSTAL not defined in conf_clock.h
-#endif
-
-#if !defined(CONF_CLOCK_XOSC32K_STARTUP_TIME)
-#  error CONF_CLOCK_XOSC32K_STARTUP_TIME not defined in conf_clock.h
-#endif
-
-#if !defined(CONF_CLOCK_XOSC32K_AUTO_AMPLITUDE_CONTROL)
-#  error CONF_CLOCK_XOSC32K_AUTO_AMPLITUDE_CONTROL not defined in conf_clock.h
-#endif
-
-#if !defined(CONF_CLOCK_XOSC32K_ENABLE_1KHZ_OUPUT)
-#  error CONF_CLOCK_XOSC32K_ENABLE_1KHZ_OUPUT not defined in conf_clock.h
-#endif
-
-#if !defined(CONF_CLOCK_XOSC32K_ENABLE_32KHZ_OUTPUT)
-#  error CONF_CLOCK_XOSC32K_ENABLE_32KHZ_OUTPUT not defined in conf_clock.h
-#endif
-
-#if !defined(CONF_CLOCK_XOSC32K_ON_DEMAND)
-#  error CONF_CLOCK_XOSC32K_ON_DEMAND not defined in conf_clock.h
-#endif
-
-#if !defined(CONF_CLOCK_XOSC32K_RUN_IN_STANDBY)
-#  error CONF_CLOCK_XOSC32K_RUN_IN_STANDBY not defined in conf_clock.h
-#endif
-
-#if !defined(CONF_CLOCK_OSC32K_ENABLE)
-#  error CONF_CLOCK_OSC32K_ENABLE not defined in conf_clock.h
-#endif
-
-#if !defined(CONF_CLOCK_OSC32K_STARTUP_TIME)
-#  error CONF_CLOCK_OSC32K_STARTUP_TIME not defined in conf_clock.h
-#endif
-
-#if !defined(CONF_CLOCK_OSC32K_ENABLE_1KHZ_OUTPUT)
-#  error CONF_CLOCK_OSC32K_ENABLE_1KHZ_OUTPUT not defined in conf_clock.h
-#endif
-
-#if !defined(CONF_CLOCK_OSC32K_ENABLE_32KHZ_OUTPUT)
-#  error CONF_CLOCK_OSC32K_ENABLE_32KHZ_OUTPUT not defined in conf_clock.h
-#endif
-
-#if !defined(CONF_CLOCK_OSC32K_ON_DEMAND)
-#  error CONF_CLOCK_OSC32K_ON_DEMAND not defined in conf_clock.h
-#endif
-
-#if !defined(CONF_CLOCK_OSC32K_RUN_IN_STANDBY)
-#  error CONF_CLOCK_OSC32K_RUN_IN_STANDBY not defined in conf_clock.h
-#endif
-
-#if !defined(CONF_CLOCK_DFLL_ENABLE)
-#  error CONF_CLOCK_DFLL_ENABLE not defined in conf_clock.h
-#endif
-
-#if !defined(CONF_CLOCK_DFLL_LOOP_MODE)
-#  error CONF_CLOCK_DFLL_LOOP_MODE not defined in conf_clock.h
-#endif
-
-#if !defined(CONF_CLOCK_DFLL_ON_DEMAND)
-#  error CONF_CLOCK_DFLL_ON_DEMAND not defined in conf_clock.h
-#endif
-
-#if !defined(CONF_CLOCK_DFLL_COARSE_VALUE)
-#  error CONF_CLOCK_DFLL_COARSE_VALUE not defined in conf_clock.h
-#endif
-
-#if !defined(CONF_CLOCK_DFLL_FINE_VALUE)
-#  error CONF_CLOCK_DFLL_FINE_VALUE not defined in conf_clock.h
-#endif
-
-#if !defined(CONF_CLOCK_DFLL_SOURCE_GCLK_GENERATOR)
-#  error CONF_CLOCK_DFLL_SOURCE_GCLK_GENERATOR not defined in conf_clock.h
-#endif
-
-#if !defined(CONF_CLOCK_DFLL_MULTIPLY_FACTOR)
-#  error CONF_CLOCK_DFLL_MULTIPLY_FACTOR not defined in conf_clock.h
-#endif
-
-#if !defined(CONF_CLOCK_DFLL_QUICK_LOCK)
-#  error CONF_CLOCK_DFLL_QUICK_LOCK not defined in conf_clock.h
-#endif
-
-#if !defined(CONF_CLOCK_DFLL_TRACK_AFTER_FINE_LOCK)
-#  error CONF_CLOCK_DFLL_TRACK_AFTER_FINE_LOCK not defined in conf_clock.h
-#endif
-
-#if !defined(CONF_CLOCK_DFLL_KEEP_LOCK_ON_WAKEUP)
-#  error CONF_CLOCK_DFLL_KEEP_LOCK_ON_WAKEUP not defined in conf_clock.h
-#endif
-
-#if !defined(CONF_CLOCK_DFLL_ENABLE_CHILL_CYCLE)
-#  error CONF_CLOCK_DFLL_ENABLE_CHILL_CYCLE not defined in conf_clock.h
-#endif
-
-#if !defined(CONF_CLOCK_DFLL_MAX_COARSE_STEP_SIZE)
-#  error CONF_CLOCK_DFLL_MAX_COARSE_STEP_SIZE not defined in conf_clock.h
-#endif
-
-#if !defined(CONF_CLOCK_DFLL_MAX_FINE_STEP_SIZE)
-#  error CONF_CLOCK_DFLL_MAX_FINE_STEP_SIZE not defined in conf_clock.h
-#endif
-
-#if !defined(CONF_CLOCK_DPLL_ENABLE)
-#  error CONF_CLOCK_DPLL_ENABLE not defined in conf_clock.h
-#endif
-
-#if !defined(CONF_CLOCK_DPLL_ON_DEMAND)
-#  error CONF_CLOCK_DPLL_ON_DEMAND not defined in conf_clock.h
-#endif
-
-#if !defined(CONF_CLOCK_DPLL_RUN_IN_STANDBY)
-#  error CONF_CLOCK_DPLL_RUN_IN_STANDBY not defined in conf_clock.h
-#endif
-
-#if !defined(CONF_CLOCK_DPLL_LOCK_BYPASS)
-#  error CONF_CLOCK_DPLL_LOCK_BYPASS not defined in conf_clock.h
-#endif
-
-#if !defined(CONF_CLOCK_DPLL_WAKE_UP_FAST)
-#  error CONF_CLOCK_DPLL_WAKE_UP_FAST not defined in conf_clock.h
-#endif
-
-#if !defined(CONF_CLOCK_DPLL_LOW_POWER_ENABLE)
-#  error CONF_CLOCK_DPLL_LOW_POWER_ENABLE not defined in conf_clock.h
-#endif
-
-#if !defined(CONF_CLOCK_DPLL_LOCK_TIME)
-#  error CONF_CLOCK_DPLL_LOCK_TIME not defined in conf_clock.h
-#endif
-
-#if !defined(CONF_CLOCK_DPLL_REFERENCE_CLOCK)
-#  error CONF_CLOCK_DPLL_REFERENCE_CLOCK not defined in conf_clock.h
-#endif
-
-#if !defined(CONF_CLOCK_DPLL_FILTER)
-#  error CONF_CLOCK_DPLL_FILTER not defined in conf_clock.h
-#endif
-
-#if !defined(CONF_CLOCK_DPLL_REFERENCE_FREQUENCY)
-#  error CONF_CLOCK_DPLL_REFERENCE_FREQUENCY not defined in conf_clock.h
-#endif
-
-#if !defined(CONF_CLOCK_DPLL_REFEREMCE_DIVIDER)
-#  error CONF_CLOCK_DPLL_REFEREMCE_DIVIDER not defined in conf_clock.h
-#endif
-
-#if !defined(CONF_CLOCK_DPLL_OUTPUT_FREQUENCY)
-#  error CONF_CLOCK_DPLL_OUTPUT_FREQUENCY not defined in conf_clock.h
-#endif
-
-#if !defined(CONF_CLOCK_CONFIGURE_GCLK)
-#  error CONF_CLOCK_CONFIGURE_GCLK not defined in conf_clock.h
-#endif
-
-#if !defined(CONF_CLOCK_GCLK_0_ENABLE)
-#  error CONF_CLOCK_GCLK_0_ENABLE not defined in conf_clock.h
-#endif
-
-#if !defined(CONF_CLOCK_GCLK_0_RUN_IN_STANDBY)
-#  error CONF_CLOCK_GCLK_0_RUN_IN_STANDBY not defined in conf_clock.h
-#endif
-
-#if !defined(CONF_CLOCK_GCLK_0_CLOCK_SOURCE)
-#  error CONF_CLOCK_GCLK_0_CLOCK_SOURCE not defined in conf_clock.h
-#endif
-
-#if !defined(CONF_CLOCK_GCLK_0_PRESCALER)
-#  error CONF_CLOCK_GCLK_0_PRESCALER not defined in conf_clock.h
-#endif
-
-#if !defined(CONF_CLOCK_GCLK_0_OUTPUT_ENABLE)
-#  error CONF_CLOCK_GCLK_0_OUTPUT_ENABLE not defined in conf_clock.h
-#endif
-
-#if !defined(CONF_CLOCK_GCLK_1_ENABLE)
-#  error CONF_CLOCK_GCLK_1_ENABLE not defined in conf_clock.h
-#endif
-
-#if !defined(CONF_CLOCK_GCLK_1_RUN_IN_STANDBY)
-#  error CONF_CLOCK_GCLK_1_RUN_IN_STANDBY not defined in conf_clock.h
-#endif
-
-#if !defined(CONF_CLOCK_GCLK_1_CLOCK_SOURCE)
-#  error CONF_CLOCK_GCLK_1_CLOCK_SOURCE not defined in conf_clock.h
-#endif
-
-#if !defined(CONF_CLOCK_GCLK_1_PRESCALER)
-#  error CONF_CLOCK_GCLK_1_PRESCALER not defined in conf_clock.h
-#endif
-
-#if !defined(CONF_CLOCK_GCLK_1_OUTPUT_ENABLE)
-#  error CONF_CLOCK_GCLK_1_OUTPUT_ENABLE not defined in conf_clock.h
-#endif
-
-#if !defined(CONF_CLOCK_GCLK_2_ENABLE)
-#  error CONF_CLOCK_GCLK_2_ENABLE not defined in conf_clock.h
-#endif
-
-#if !defined(CONF_CLOCK_GCLK_2_RUN_IN_STANDBY)
-#  error CONF_CLOCK_GCLK_2_RUN_IN_STANDBY not defined in conf_clock.h
-#endif
-
-#if !defined(CONF_CLOCK_GCLK_2_CLOCK_SOURCE)
-#  error CONF_CLOCK_GCLK_2_CLOCK_SOURCE not defined in conf_clock.h
-#endif
-
-#if !defined(CONF_CLOCK_GCLK_2_PRESCALER)
-#  error CONF_CLOCK_GCLK_2_PRESCALER not defined in conf_clock.h
-#endif
-
-#if !defined(CONF_CLOCK_GCLK_2_OUTPUT_ENABLE)
-#  error CONF_CLOCK_GCLK_2_OUTPUT_ENABLE not defined in conf_clock.h
-#endif
-
-#if !defined(CONF_CLOCK_GCLK_3_ENABLE)
-#  error CONF_CLOCK_GCLK_3_ENABLE not defined in conf_clock.h
-#endif
-
-#if !defined(CONF_CLOCK_GCLK_3_RUN_IN_STANDBY)
-#  error CONF_CLOCK_GCLK_3_RUN_IN_STANDBY not defined in conf_clock.h
-#endif
-
-#if !defined(CONF_CLOCK_GCLK_3_CLOCK_SOURCE)
-#  error CONF_CLOCK_GCLK_3_CLOCK_SOURCE not defined in conf_clock.h
-#endif
-
-#if !defined(CONF_CLOCK_GCLK_3_PRESCALER)
-#  error CONF_CLOCK_GCLK_3_PRESCALER not defined in conf_clock.h
-#endif
-
-#if !defined(CONF_CLOCK_GCLK_3_OUTPUT_ENABLE)
-#  error CONF_CLOCK_GCLK_3_OUTPUT_ENABLE not defined in conf_clock.h
-#endif
-
-#if !defined(CONF_CLOCK_GCLK_4_ENABLE)
-#  error CONF_CLOCK_GCLK_4_ENABLE not defined in conf_clock.h
-#endif
-
-#if !defined(CONF_CLOCK_GCLK_4_RUN_IN_STANDBY)
-#  error CONF_CLOCK_GCLK_4_RUN_IN_STANDBY not defined in conf_clock.h
-#endif
-
-#if !defined(CONF_CLOCK_GCLK_4_CLOCK_SOURCE)
-#  error CONF_CLOCK_GCLK_4_CLOCK_SOURCE not defined in conf_clock.h
-#endif
-
-#if !defined(CONF_CLOCK_GCLK_4_PRESCALER)
-#  error CONF_CLOCK_GCLK_4_PRESCALER not defined in conf_clock.h
-#endif
-
-#if !defined(CONF_CLOCK_GCLK_4_OUTPUT_ENABLE)
-#  error CONF_CLOCK_GCLK_4_OUTPUT_ENABLE not defined in conf_clock.h
-#endif
-
-#if !defined(CONF_CLOCK_GCLK_5_ENABLE)
-#  error CONF_CLOCK_GCLK_5_ENABLE not defined in conf_clock.h
-#endif
-
-#if !defined(CONF_CLOCK_GCLK_5_RUN_IN_STANDBY)
-#  error CONF_CLOCK_GCLK_5_RUN_IN_STANDBY not defined in conf_clock.h
-#endif
-
-#if !defined(CONF_CLOCK_GCLK_5_CLOCK_SOURCE)
-#  error CONF_CLOCK_GCLK_5_CLOCK_SOURCE not defined in conf_clock.h
-#endif
-
-#if !defined(CONF_CLOCK_GCLK_5_PRESCALER)
-#  error CONF_CLOCK_GCLK_5_PRESCALER not defined in conf_clock.h
-#endif
-
-#if !defined(CONF_CLOCK_GCLK_5_OUTPUT_ENABLE)
-#  error CONF_CLOCK_GCLK_5_OUTPUT_ENABLE not defined in conf_clock.h
-#endif
-
-#if !defined(CONF_CLOCK_GCLK_6_ENABLE)
-#  error CONF_CLOCK_GCLK_6_ENABLE not defined in conf_clock.h
-#endif
-
-#if !defined(CONF_CLOCK_GCLK_6_RUN_IN_STANDBY)
-#  error CONF_CLOCK_GCLK_6_RUN_IN_STANDBY not defined in conf_clock.h
-#endif
-
-#if !defined(CONF_CLOCK_GCLK_6_CLOCK_SOURCE)
-#  error CONF_CLOCK_GCLK_6_CLOCK_SOURCE not defined in conf_clock.h
-#endif
-
-#if !defined(CONF_CLOCK_GCLK_6_PRESCALER)
-#  error CONF_CLOCK_GCLK_6_PRESCALER not defined in conf_clock.h
-#endif
-
-#if !defined(CONF_CLOCK_GCLK_6_OUTPUT_ENABLE)
-#  error CONF_CLOCK_GCLK_6_OUTPUT_ENABLE not defined in conf_clock.h
-#endif
-
-#if !defined(CONF_CLOCK_GCLK_7_ENABLE)
-#  error CONF_CLOCK_GCLK_7_ENABLE not defined in conf_clock.h
-#endif
-
-#if !defined(CONF_CLOCK_GCLK_7_RUN_IN_STANDBY)
-#  error CONF_CLOCK_GCLK_7_RUN_IN_STANDBY not defined in conf_clock.h
-#endif
-
-#if !defined(CONF_CLOCK_GCLK_7_CLOCK_SOURCE)
-#  error CONF_CLOCK_GCLK_7_CLOCK_SOURCE not defined in conf_clock.h
-#endif
-
-#if !defined(CONF_CLOCK_GCLK_7_PRESCALER)
-#  error CONF_CLOCK_GCLK_7_PRESCALER not defined in conf_clock.h
-#endif
-
-#if !defined(CONF_CLOCK_GCLK_7_OUTPUT_ENABLE)
-#  error CONF_CLOCK_GCLK_7_OUTPUT_ENABLE not defined in conf_clock.h
-#endif
-
-#endif /* CLOCK_CONFIG_CHECK_H */