librfn
An ad-hoc utility library
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
librfn
fibre_default.c
Go to the documentation of this file.
1
/*
2
* fibre_default.c
3
*
4
* Part of librfn (a general utility library from redfelineninja.org.uk)
5
*
6
* Copyright (C) 2014 Daniel Thompson <daniel@redfelineninja.org.uk>
7
*
8
* This program is free software; you can redistribute it and/or modify
9
* it under the terms of the GNU Lesser General Public License as published
10
* by the Free Software Foundation; either version 3 of the License, or
11
* (at your option) any later version.
12
*/
13
14
#include "
librfn/fibre.h
"
15
#include "
librfn/time.h
"
16
17
void
fibre_scheduler_main_loop
()
18
{
19
while
(
true
) {
20
(void)
fibre_scheduler_next
(
time_now
());
21
}
22
}
time.h
fibre_scheduler_next
uint32_t fibre_scheduler_next(uint32_t time)
Schedule the next fibre.
Definition:
fibre.c:134
fibre_scheduler_main_loop
void fibre_scheduler_main_loop()
Definition:
fibre_default.c:17
time_now
uint32_t time_now(void)
Definition:
time_libopencm3.c:42
fibre.h
Generated on Sat Feb 6 2016 21:25:32 for librfn by
1.8.10