git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7939 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
b2431579e4
commit
263c5350ba
|
@ -81,10 +81,6 @@ DACDriver DACD4;
|
|||
/* Driver local variables. */
|
||||
/*===========================================================================*/
|
||||
|
||||
static const DACConfig default_config = {
|
||||
datamode: DAC_DHRM_12BIT_RIGHT
|
||||
};
|
||||
|
||||
#if STM32_DAC_USE_DAC1_CH1 == TRUE
|
||||
static const dacparams_t dma1_ch1_params = {
|
||||
dac: DAC1,
|
||||
|
@ -223,12 +219,6 @@ void dac_lld_init(void) {
|
|||
void dac_lld_start(DACDriver *dacp) {
|
||||
bool b;
|
||||
|
||||
/* If the application does not provide a configuration structure then a
|
||||
default is used.*/
|
||||
if (dacp->config == NULL) {
|
||||
dacp->config = &default_config;
|
||||
}
|
||||
|
||||
/* If the driver is in DAC_STOP state then a full initialization is
|
||||
required.*/
|
||||
if (dacp->state == DAC_STOP) {
|
||||
|
|
Loading…
Reference in New Issue