I find code is basically a query to send, send the interruption of rare, in a sense the query is about sending and interrupt signal overhead, but the priority should be differentiated, sbuf queries are directly send data, and then query flags, determine whether to send complete, the disruption to send?
CodePudding user response:
Interrupt way to send, usually need a buffer, such as 32 bytes of buffer buf, let's put one or more need to send data in buf, and open to send interrupt, interrupt program interrupt when sbuf empty, will be sent out in one of data in buf wrote sbuf, until buf is empty, closed again send interrupt,