Change USE_XOSC #ifdef s to #if s, now #define USE_XOSC 0 does the correct thing

master
Richard Meadows 2015-10-18 18:58:23 +01:00
rodzic 282da70a9c
commit 405dcbe5ca
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -48,7 +48,7 @@ measurement_result_t _callback;
* connects it to GLCK1.
*/
void xosc_init(void) {
#ifdef USE_XOSC
#if USE_XOSC
system_clock_source_xosc_set_config(SYSTEM_CLOCK_EXTERNAL_CLOCK,
SYSTEM_XOSC_STARTUP_1,
true,
@ -62,7 +62,7 @@ void xosc_init(void) {
/* Configure GCLK1 to XOSC */
system_gclk_gen_set_config(GCLK_GENERATOR_1,
#ifdef USE_XOSC
#if USE_XOSC
GCLK_SOURCE_XOSC, /* Source */
#else
GCLK_SOURCE_OSC8M, /* Source */