McMajan Library Pack  v 2.00
Improve your Arduino !
Ss_Global.h
Go to the documentation of this file.
1 
2 #ifndef _McGlobal_h_
3 #define _McGlobal_h_
4 
5 //==============================================================================
6 // Common inclusion: Don't change !!!!!
7 //==============================================================================
8 #if defined(ARDUINO) && ARDUINO >= 100
9  #include <Arduino.h>
10 #else
11  #include <WProgram.h>
12 #endif
13 
14 
15 
16 #if defined(ARDUINO_ARCH_AVR)
17  //#warning global arduino AVR
18  #include <avr/pgmspace.h>
19  // Provides ISR
20  #include <avr/interrupt.h>
21  // prepara valori di prescaler per l'ADC
22  #define Mc_PS_8 ((1 << ADPS1) | (1 << ADPS0))
23  #define Mc_PS_16 (1 << ADPS2)
24  #define Mc_PS_32 ((1 << ADPS2) | (1 << ADPS0))
25  #define Mc_PS_64 ((1 << ADPS2) | (1 << ADPS1))
26  #define Mc_PS_128 ((1 << ADPS2) | (1 << ADPS1) | (1 << ADPS0))
27  #define Mc_ArduinoVoltageRange 5
28  #define Mc_ADC_basic_bits 10
29 #else
30  //#warning global arduino SAM
31  #define Mc_ArduinoVoltageRange 3.3
32  #define Mc_ADC_basic_bits 12
33 
34 #endif
35 
36  #define Mc_ADC_extended_bits (Mc_ADC_bit_extension+Mc_ADC_basic_bits)
37  #define Mc_High_ADC_Value (1<<Mc_ADC_extended_bits)
38 
39 
40 
41 
42 #endif
#define Mc_ADC_basic_bits
Definition: Ss_Global.h:32
#define Mc_ADC_extended_bits
Definition: Ss_Global.h:36