avr-fw-modules/core/src/fdev_notify.c

14 lines
161 B
C
Executable File

#include <stdio.h>
#include <sys/atomic.h>
int fdev_notify(FILE* f,thread_t* notify){
if (f){
ATOMIC
f->notify = notify;
return 0;
}
return -1;
};