diff options
| author | Dan Halbert <halbert@halwitz.org> | 2019-04-09 20:23:01 -0400 |
|---|---|---|
| committer | Dan Halbert <halbert@halwitz.org> | 2019-04-09 20:23:01 -0400 |
| commit | d633928a160ee029fa1a16f10e62f6628020aaef (patch) | |
| tree | 493263802a626c996d677bf511d297ff91af64c5 /ports/nrf/background.h | |
| parent | 5015036c06e12c158ca0b36a23fade8da6fbbf07 (diff) | |
Don't let a background task call run_background_tasks()
Diffstat (limited to 'ports/nrf/background.h')
| -rw-r--r-- | ports/nrf/background.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/ports/nrf/background.h b/ports/nrf/background.h new file mode 100644 index 000000000..d53681c0f --- /dev/null +++ b/ports/nrf/background.h @@ -0,0 +1,35 @@ +/* + * This file is part of the MicroPython project, http://micropython.org/ + * + * The MIT License (MIT) + * + * Copyright (c) 2019 Dan Halbert for Adafruit Industries + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ + +#ifndef MICROPY_INCLUDED_NRF_BACKGROUND_H +#define MICROPY_INCLUDED_NRF_BACKGROUND_H + +#include <stdbool.h> + +void background_tasks_reset(void); +void run_background_tasks(void); + +#endif // MICROPY_INCLUDED_NRF_BACKGROUND_H |
