Paparazzi UAS v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
threads_arch.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2025 The Paparazzi Team
3 *
4 * This file is part of paparazzi.
5 *
6 * Paparazzi is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
10 *
11 * See LICENSE file for the full license version, or see http://www.gnu.org/licenses/
12 */
13
14#pragma once
15
16#define PPRZ_NORMAL_PRIO NORMALPRIO
17
18#define THREADS_ATTRIBUTES __attribute__((error("Threads cannot be used in STM32 bare metal ARCH.")))
19
20struct pprzMutex {
21 int dummy; // avoid warning: empty declaration
22};
23
24struct pprzBSem {
25 volatile int value;
26};
27
28
29typedef int pprz_thread_t;
thread_t * pprz_thread_t
volatile int value