Indentation
This commit is contained in:
@@ -121,14 +121,14 @@ extern "C" void DAC_IRQHandler()
|
|||||||
if (sr & DACC_ISR_ENDTX) {
|
if (sr & DACC_ISR_ENDTX) {
|
||||||
AudioBuffer *nextBuffer = audioQueue.getNextFilledBuffer();
|
AudioBuffer *nextBuffer = audioQueue.getNextFilledBuffer();
|
||||||
if (nextBuffer) {
|
if (nextBuffer) {
|
||||||
// Try the first PDC buffer
|
// Try the first PDC buffer
|
||||||
if ((DACC->DACC_TCR == 0) && (DACC->DACC_TNCR == 0)) {
|
if ((DACC->DACC_TCR == 0) && (DACC->DACC_TNCR == 0)) {
|
||||||
DACC->DACC_TPR = CONVERT_PTR_UINT(nextBuffer->data);
|
DACC->DACC_TPR = CONVERT_PTR_UINT(nextBuffer->data);
|
||||||
DACC->DACC_TCR = nextBuffer->size/2;
|
DACC->DACC_TCR = nextBuffer->size/2;
|
||||||
DACC->DACC_PTCR = DACC_PTCR_TXTEN;
|
DACC->DACC_PTCR = DACC_PTCR_TXTEN;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// Try the second PDC buffer
|
// Try the second PDC buffer
|
||||||
if (DACC->DACC_TNCR == 0) {
|
if (DACC->DACC_TNCR == 0) {
|
||||||
DACC->DACC_TNPR = CONVERT_PTR_UINT(nextBuffer->data);
|
DACC->DACC_TNPR = CONVERT_PTR_UINT(nextBuffer->data);
|
||||||
DACC->DACC_TNCR = nextBuffer->size/2;
|
DACC->DACC_TNCR = nextBuffer->size/2;
|
||||||
|
|||||||
Reference in New Issue
Block a user