Skip to content
Snippets Groups Projects

Revert "Changes to use the new momory data structures to handle the devices modules memory."

Merged Sergi Hernandez requested to merge revert-59fde70f into master
21 files
+ 803
648
Compare changes
  • Side-by-side
  • Inline
Files
21
+ 4
3
@@ -6,13 +6,11 @@ extern "C" {
#endif
#include "stm32f4xx.h"
#include "adc_dma_registers.h"
#include "memory.h"
typedef enum {ADC_CH1,ADC_CH2,ADC_CH3,ADC_CH4,ADC_CH6,ADC_CH8} adc_ch_t;
// public functions
uint8_t adc_init(TMemory *memory);
void adc_init(void);
void adc_start(void);
void adc_set_period(uint8_t period_ms);
inline uint8_t adc_get_period(void);
@@ -20,6 +18,9 @@ unsigned short adc_get_channel(adc_ch_t channel);
unsigned short adc_get_channel_raw(adc_ch_t channel);
unsigned short adc_get_temperature(void);
void adc_stop(void);
// operation functions
uint8_t adc_in_range(unsigned short int address,unsigned short int length);
void adc_process_write_cmd(unsigned short int address,unsigned short int length,unsigned char *data);
#ifdef __cplusplus
}
Loading