Altera_Forum
Honored Contributor
20 years agoshould i write functions myself?
wentao and clansdown:
i want to use sl811hs,and select it in kernel ,should i write 4 functions myself?? 1. char SL811Read (hci_t * hci, char offset) { hcipriv_t *hp = &hci->hp; char data; writeb (offset, hp->hcport); wmb (); data = readb (hp->hcport2); rmb (); return (data); } 2.void SL811Write (hci_t * hci, char offset, char data) 3.void SL811BufRead (hci_t * hci, short offset, char *buf, short size) 4.void SL811BufWrite (hci_t * hci, short offset, char *buf, short size)