mirror of
https://github.com/markqvist/OpenModem.git
synced 2024-12-29 01:16:17 -05:00
Reworked remaining KFile functions
This commit is contained in:
parent
319f18330c
commit
2dc4e73d38
24
Modem/afsk.c
24
Modem/afsk.c
@ -364,29 +364,27 @@ static size_t afsk_write(KFile *fd, const void *_buf, size_t size) {
|
||||
return buf - (const uint8_t *)_buf;
|
||||
}
|
||||
|
||||
static int afsk_flush(KFile *fd)
|
||||
{
|
||||
Afsk *af = AFSK_CAST(fd);
|
||||
while (af->sending)
|
||||
static int afsk_flush(KFile *fd) {
|
||||
Afsk *afsk = AFSK_CAST(fd);
|
||||
while (afsk->sending) {
|
||||
cpu_relax();
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int afsk_error(KFile *fd)
|
||||
{
|
||||
Afsk *af = AFSK_CAST(fd);
|
||||
static int afsk_error(KFile *fd) {
|
||||
Afsk *afsk = AFSK_CAST(fd);
|
||||
int err;
|
||||
|
||||
ATOMIC(err = af->status);
|
||||
ATOMIC(err = afsk->status);
|
||||
return err;
|
||||
}
|
||||
|
||||
static void afsk_clearerr(KFile *fd)
|
||||
{
|
||||
Afsk *af = AFSK_CAST(fd);
|
||||
ATOMIC(af->status = 0);
|
||||
static void afsk_clearerr(KFile *fd) {
|
||||
Afsk *afsk = AFSK_CAST(fd);
|
||||
ATOMIC(afsk->status = 0);
|
||||
}
|
||||
|
||||
|
||||
//////////////////////////////////////////////////////
|
||||
// Modem Initialization //
|
||||
//////////////////////////////////////////////////////
|
||||
|
@ -1,2 +1,2 @@
|
||||
#define VERS_BUILD 119
|
||||
#define VERS_BUILD 123
|
||||
#define VERS_HOST "vixen"
|
||||
|
Loading…
Reference in New Issue
Block a user