APM:Libraries
libraries
AP_HAL_ChibiOS
HAL_ChibiOS_Class.h
Go to the documentation of this file.
1
/*
2
* This file is free software: you can redistribute it and/or modify it
3
* under the terms of the GNU General Public License as published by the
4
* Free Software Foundation, either version 3 of the License, or
5
* (at your option) any later version.
6
*
7
* This file is distributed in the hope that it will be useful, but
8
* WITHOUT ANY WARRANTY; without even the implied warranty of
9
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10
* See the GNU General Public License for more details.
11
*
12
* You should have received a copy of the GNU General Public License along
13
* with this program. If not, see <http://www.gnu.org/licenses/>.
14
*
15
* Code by Andrew Tridgell and Siddharth Bharat Purohit
16
*/
17
#pragma once
18
19
#include <
AP_HAL/AP_HAL.h
>
20
21
#include <
AP_HAL_Empty/AP_HAL_Empty_Namespace.h
>
22
#include <
AP_HAL_ChibiOS/AP_HAL_ChibiOS_Namespace.h
>
23
#include "
hwdef/common/halconf.h
"
24
#ifdef USE_POSIX
25
#include <
ff.h
>
26
#endif
27
#include <
stdio.h
>
28
#include "ch.h"
29
#include "
hal.h
"
30
#include "
hrt.h
"
31
32
class
HAL_ChibiOS
:
public
AP_HAL::HAL
{
33
public
:
34
HAL_ChibiOS
();
35
void
run
(
int
argc,
char
*
const
* argv,
Callbacks
* callbacks)
const override
;
36
};
37
void
hal_chibios_set_priority
(uint8_t priority);
38
39
thread_t*
get_main_thread
(
void
);
hrt.h
AP_HAL.h
halconf.h
AP_HAL_ChibiOS_Namespace.h
hal.h
AP_HAL_Empty_Namespace.h
AP_HAL::HAL
Definition:
HAL.h:26
hal_chibios_set_priority
void hal_chibios_set_priority(uint8_t priority)
Definition:
HAL_ChibiOS_Class.cpp:113
AP_HAL::HAL::Callbacks
Definition:
HAL.h:82
ff.h
stdio.h
HAL_ChibiOS
Definition:
HAL_ChibiOS_Class.h:32
HAL_ChibiOS::HAL_ChibiOS
HAL_ChibiOS()
Definition:
HAL_ChibiOS_Class.cpp:81
HAL_ChibiOS::run
void run(int argc, char *const *argv, Callbacks *callbacks) const override
Definition:
HAL_ChibiOS_Class.cpp:196
get_main_thread
thread_t * get_main_thread(void)
Definition:
HAL_ChibiOS_Class.cpp:126
Generated on Sun Jun 17 2018 14:18:48 for APM:Libraries by
1.8.13