11 lines
497 B
C
11 lines
497 B
C
#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
|