Browse Source

fix tvl320aci23.c spi_init

Signed-off-by: surenyi <surenyi82@qq.com>
bfsk
surenyi 3 years ago
parent
commit
80942dfa9d
  1. 11
      platforms/dsk/tlv320aic23.c

11
platforms/dsk/tlv320aic23.c

@ -96,9 +96,8 @@ int mcbsp_spi_init()
MCBSP_config(__spi_handle, &mbconf);
//Enable McBSP in steps
MCBSP_start(__spi_handle, MCBSP_RCV_START |
MCBSP_SRGR_START |
MCBSP_SRGR_FRAMESYNC,
MCBSP_start(__spi_handle,
MCBSP_XMIT_START | MCBSP_SRGR_START | MCBSP_SRGR_FRAMESYNC,
MCBSP_SRGR_DEFAULT_DELAY);
return 0;
}
@ -228,10 +227,8 @@ int mcbsp_aic23_init()
MCBSP_config(__aic23_handle, &mbconf);
//Enable McBSP in steps
MCBSP_start(__aic23_handle, MCBSP_RCV_START |
MCBSP_SRGR_START |
MCBSP_XMIT_START |
MCBSP_SRGR_FRAMESYNC,
MCBSP_start(__aic23_handle,
MCBSP_RCV_START | MCBSP_XMIT_START | MCBSP_SRGR_START | MCBSP_SRGR_FRAMESYNC,
MCBSP_SRGR_DEFAULT_DELAY);
return 0;
}

Loading…
Cancel
Save