Fixed several issues:
- ADC has now averaging - Pause screen added - Fixed display glitches for most parts git-svn-id: https://svn.vbchaos.nl/svn/hsb/trunk@258 05563f52-14a8-4384-a975-3d1654cca0fa
This commit is contained in:
@@ -43,7 +43,7 @@
|
||||
// Constant and macro definitions
|
||||
// -----------------------------------------------------------------------------
|
||||
|
||||
|
||||
#define ADC_AVERAGE_DEPTH (10)
|
||||
#define ADC_NUMBER_OF_CHANNELS (18) // 16 IOs + Temp + Vcc
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
@@ -85,7 +85,7 @@ struct Adc
|
||||
ADC_TypeDef* ADCx;
|
||||
ADC_InitTypeDef ADC_InitStruct;
|
||||
bool useDMA;
|
||||
bool useRanks;
|
||||
int numberOfUsedChannels;
|
||||
struct AdcChannel channel[ADC_NUMBER_OF_CHANNELS];
|
||||
// Only necessary when the RANK parameter determines conversion order or RANK is used anyway
|
||||
// For single conversions the READ function simply returns the converted value
|
||||
@@ -93,7 +93,7 @@ struct Adc
|
||||
// When initialising an ADC channel to a regular group, the RANK parameter determines the
|
||||
// order of convertions. E.G. channel 5 can be put first while channel 1 can be put last.
|
||||
// The array index stands for the RANK
|
||||
uint16_t channelValue[ADC_NUMBER_OF_CHANNELS];
|
||||
uint16_t channelValue[ADC_NUMBER_OF_CHANNELS * ADC_AVERAGE_DEPTH];
|
||||
bool initialized;
|
||||
};
|
||||
|
||||
|
||||
@@ -90,4 +90,7 @@ extern ErrorStatus RTC_construct(struct Rtc* self);
|
||||
extern struct Observable* RTC_getObservable(struct Rtc* self);
|
||||
|
||||
|
||||
extern void RTC_calculateTimeFromSeconds(uint32_t seconds, struct Time* time);
|
||||
|
||||
|
||||
#endif /* INC_RTC_H_ */
|
||||
|
||||
Reference in New Issue
Block a user