Missing files for SWo
git-svn-id: https://svn.vbchaos.nl/svn/hsb/trunk@236 05563f52-14a8-4384-a975-3d1654cca0fa
This commit is contained in:
@@ -67,6 +67,7 @@ struct AdcChannel
|
||||
uint8_t Rank;
|
||||
uint8_t ADC_SampleTime;
|
||||
T_PL_GPIO input;
|
||||
bool initialized;
|
||||
};
|
||||
|
||||
struct AdcParameters
|
||||
@@ -93,6 +94,7 @@ struct Adc
|
||||
// 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];
|
||||
bool initialized;
|
||||
};
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
@@ -188,6 +190,7 @@ extern ErrorStatus ADC_setDMAStatus (struct Adc* self, FunctionalState command);
|
||||
* Constructor for ADC channel instance
|
||||
*
|
||||
* @param self The ADC channel instance to initialize
|
||||
* @param parent The parent ADC this channel belongs to
|
||||
* @param parameters Additional ADC parameters
|
||||
*
|
||||
* @return ErrorStatus SUCCESS if initialisation was successful
|
||||
@@ -196,7 +199,7 @@ extern ErrorStatus ADC_setDMAStatus (struct Adc* self, FunctionalState command);
|
||||
* @todo
|
||||
* -----------------------------------------------------------------------------
|
||||
*/
|
||||
extern ErrorStatus ADCChannel_construct(struct AdcChannel* self, struct AdcChannelParameters* parameters);
|
||||
extern ErrorStatus ADCChannel_construct(struct AdcChannel* self, struct Adc* parent, struct AdcChannelParameters* parameters);
|
||||
|
||||
|
||||
/** ----------------------------------------------------------------------------
|
||||
|
||||
@@ -140,7 +140,7 @@ ErrorStatus ADC_setDMAStatus (struct Adc* self, FunctionalState command)
|
||||
}
|
||||
|
||||
|
||||
ErrorStatus ADCChannel_construct(struct AdcChannel* self, struct AdcChannelParameters* parameters)
|
||||
ErrorStatus ADCChannel_construct(struct AdcChannel* self, struct Adc* parent, struct AdcChannelParameters* parameters)
|
||||
{
|
||||
ErrorStatus returnValue = SUCCESS;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user