version 1.1, 2008/03/04 16:05:17 |
version 1.2, 2008/03/05 15:35:40 |
|
|
|
|
/* wait for any pending transmission to finish */ |
/* wait for any pending transmission to finish */ |
timo = 50000; |
timo = 50000; |
while (((*(uint32_t *)(sacom_base + SACOM_SR1)) & SR1_TBY) == 1 && --timo) |
while (((*(volatile uint32_t *)(sacom_base + SACOM_SR1)) & SR1_TBY) == 1 && --timo) |
; |
; |
|
|
*(uint32_t *)(sacom_base + SACOM_DR) = c; |
*(uint32_t *)(sacom_base + SACOM_DR) = c; |
|
|
/* wait for this transmission to complete */ |
/* wait for this transmission to complete */ |
timo = 1500000; |
timo = 1500000; |
while (((*(uint32_t *)(sacom_base + SACOM_SR1)) & SR1_TBY) == 1 && --timo) |
while (((*(volatile uint32_t *)(sacom_base + SACOM_SR1)) & SR1_TBY) == 1 && --timo) |
; |
; |
} |
} |