hdlcdrv_hbuf_empty
while (!hdlcdrv_hbuf_empty(&s->hdlcrx.hbuf)) {
if (hdlcdrv_hbuf_empty(&s->hdlctx.hbuf)) {