26 #ifndef SIGNATURE_FEATURES_H 27 #define SIGNATURE_FEATURES_H 31 #if defined(__AVR_ATmega48A__) || defined(__AVR_ATmega48PA__) || \ 32 defined(__AVR_ATmega88A__) || defined(__AVR_ATmega88PA__) || \ 33 defined(__AVR_ATmega168A__) || defined(__AVR_ATmega168PA__) || \ 34 defined(__AVR_ATmega328__) || defined(__AVR_ATmega328P__) 39 #define FEATURE_RC_OSCILLATOR_CALIBRATION 40 #elif defined(__AVR_ATtiny828__) 65 #define FEATURE_INTERNAL_8MHZ_OSCILLATOR_CALIBRATION 66 #define FEATURE_OSCILLATOR_TEMPERATURE_CALIBRATION_A 67 #define FEATURE_OSCILLATOR_TEMPERATURE_CALIBRATION_B 68 #define FEATURE_INTERNAL_32KHZ_OSCILLATOR_CALIBRATION 69 #define FEATURE_TEMPERATURE_SENSOR_GAIN_CALIBRATION 70 #define FEATURE_TEMPERATURE_SENSOR_OFFSET_CALIBRATION 82 #ifdef FEATURE_RC_OSCILLATOR_CALIBRATION 83 static uint8_t rcOscillatorCalibration;
86 #ifdef FEATURE_INTERNAL_8MHZ_OSCILLATOR_CALIBRATION 87 static uint8_t internal8MHzOscillatorCalibration;
91 #ifdef FEATURE_OSCILLATOR_TEMPERATURE_CALIBRATION_A 92 static uint8_t oscillatorTemperatureCalibrationA;
97 #ifdef FEATURE_OSCILLATOR_TEMPERATURE_CALIBRATION_B 98 static uint8_t oscillatorTemperatureCalibrationB;
103 #ifdef FEATURE_INTERNAL_32KHZ_OSCILLATOR_CALIBRATION 104 static uint8_t internal32kHzOscillatorCalibration;
108 #ifdef FEATURE_TEMPERATURE_SENSOR_GAIN_CALIBRATION 109 static uint8_t temperatureSensorGainCalibration;
113 #ifdef FEATURE_TEMPERATURE_SENSOR_OFFSET_CALIBRATION 114 static uint8_t temperatureSensorOffsetCalibration;
125 #ifdef FEATURE_RC_OSCILLATOR_CALIBRATION 126 static uint8_t getRcOscillatorCalibration() {
128 return rcOscillatorCalibration;
132 #ifdef FEATURE_INTERNAL_8MHZ_OSCILLATOR_CALIBRATION 133 static uint8_t getInternal8MHzOscillatorCalibration() {
135 return internal8MHzOscillatorCalibration;
139 #ifdef FEATURE_OSCILLATOR_TEMPERATURE_CALIBRATION_A 140 static uint8_t getOscillatorTemperatureCalibrationA() {
142 return oscillatorTemperatureCalibrationA;
146 #ifdef FEATURE_OSCILLATOR_TEMPERATURE_CALIBRATION_B 147 static uint8_t getOscillatorTemperatureCalibrationB() {
149 return oscillatorTemperatureCalibrationB;
153 #ifdef FEATURE_INTERNAL_32KHZ_OSCILLATOR_CALIBRATION 154 static uint8_t getInternal32kHzOscillatorCalibration() {
156 return internal32kHzOscillatorCalibration;
160 #ifdef FEATURE_TEMPERATURE_SENSOR_GAIN_CALIBRATION 161 static uint8_t getTemperatureSensorGainCalibration() {
163 return temperatureSensorGainCalibration;
167 #ifdef FEATURE_TEMPERATURE_SENSOR_OFFSET_CALIBRATION 168 static uint8_t getTemperatureSensorOffsetCalibration() {
170 return temperatureSensorOffsetCalibration;
183 #endif // SIGNATURE_FEATURES_H static String getSummary()
Writing a summary of the additional information stored in the signature of the microcontroller.
Definition: Features.cpp:105
static void INIT()
Initialise the class.
Definition: Features.cpp:60
Class representing additional information stored in the signature of the microcontroller.
Definition: Features.hpp:80