mirror of
https://github.com/pvvx/RTL00_WEB.git
synced 2026-04-05 21:15:11 +00:00
set adc shl rtl8195am
This commit is contained in:
parent
2bc9cc61b3
commit
8529849a5a
4 changed files with 187 additions and 10 deletions
|
|
@ -98,7 +98,7 @@ void adc_int_handler(void *par) {
|
|||
if(p->pbuf) {
|
||||
PADC_DATA pd = p->pbuf + p->buf_tx;
|
||||
pd->us0 = buf.w[3];
|
||||
pd->us1 = buf.w[0];
|
||||
pd->us1 = buf.w[2];
|
||||
if(p->buf_tx >= p->buf_idx) p->buf_tx = 0;
|
||||
else p->buf_tx++;
|
||||
if(p->buf_rx == p->buf_tx) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue