comparison Scan/ADCTest/analog.c @ 308:ab4515606277

Fix whitespace Use a consistent standard - Tabs in front for indenting, spaces after for anything else. This way everything stays nice and lined up while also letting users change there prefered indent level. Most of the new files from Haata where already in this format.
author Rowan Decker <Smasher816@gmail.com>
date Sun, 08 Mar 2015 18:40:01 -0700
parents 9afed592bcb5
children
comparison
equal deleted inserted replaced
305:4617ef5e06f1 308:ab4515606277
55 void analog_init(void) 55 void analog_init(void)
56 { 56 {
57 uint32_t num; 57 uint32_t num;
58 58
59 VREF_TRM = 0x60; 59 VREF_TRM = 0x60;
60 VREF_SC = 0xE1; // enable 1.2 volt ref 60 VREF_SC = 0xE1; // enable 1.2 volt ref
61 61
62 if (analog_config_bits == 8) { 62 if (analog_config_bits == 8) {
63 ADC0_CFG1 = ADC_CFG1_24MHZ + ADC_CFG1_MODE(0); 63 ADC0_CFG1 = ADC_CFG1_24MHZ + ADC_CFG1_MODE(0);
64 ADC0_CFG2 = ADC_CFG2_MUXSEL + ADC_CFG2_ADLSTS(3); 64 ADC0_CFG2 = ADC_CFG2_MUXSEL + ADC_CFG2_ADLSTS(3);
65 #if defined(_mk20dx256_) || defined(_mk20dx256vlh7_) 65 #if defined(_mk20dx256_) || defined(_mk20dx256vlh7_)