Add shared waveform processing, generation and firmware image support
This commit is contained in:
10
c/set-protocol/ports/stm32g474-wavegen/set_wave_g474.h
Normal file
10
c/set-protocol/ports/stm32g474-wavegen/set_wave_g474.h
Normal file
@@ -0,0 +1,10 @@
|
||||
#ifndef SET_WAVE_G474_H
|
||||
#define SET_WAVE_G474_H
|
||||
#include "stm32g4xx_hal.h"
|
||||
#include "../../include/set_wavegen.h"
|
||||
/* CubeMX owns initialization: DAC1 channel1 PA4, TIM6 TRGO_UPDATE,
|
||||
* DMA_REQUEST_DAC1_CHANNEL1, circular, halfword/halfword, memory increment.
|
||||
* Supply TIM6 input clock, not APB bus clock. DMA buffer in SRAM. */
|
||||
typedef struct { DAC_HandleTypeDef *dac; TIM_HandleTypeDef *timer; uint32_t timer_hz; } set_wave_g474;
|
||||
set_wave_port set_wave_g474_port(set_wave_g474 *context);
|
||||
#endif
|
||||
Reference in New Issue
Block a user