mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-11-14 12:02:38 +08:00
HAL_ChibiOS: moved more headers to common
allow customisation, but don't require every port to copy the defaults
This commit is contained in:
1 parent
960bc40ff3
commit
d65ec2ada7
16 files changed
+14
-3483
No files matched your search
@@ -31,7 +31,7 @@ static struct gpio_entry {
|
||||
{1, PAL_LINE(GPIOB, 6U)},
|
||||
#elif CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_CHIBIOS_FMUV3
|
||||
// pin numbers chosen to match px4 build
|
||||
{0, true, LINE_LED1},
|
||||
{0, true, PAL_LINE(GPIOE, 12U)}, // LED
|
||||
{1, true, PAL_LINE(GPIOB, 0U)},
|
||||
{50, false, PAL_LINE(GPIOE, 14U)},
|
||||
{51, false, PAL_LINE(GPIOE, 13U)},
|
||||
|
||||
+13
-9
@@ -16,24 +16,28 @@
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
/*
|
||||
* APM HW Defines
|
||||
*/
|
||||
#define PPM_ICU_TIMER ICUD4
|
||||
#define PPM_ICU_CHANNEL ICU_CHANNEL_2
|
||||
|
||||
#define HRT_TIMER GPTD5
|
||||
#define LINE_LED1 PAL_LINE(GPIOE,12)
|
||||
|
||||
#include "hwdef.h"
|
||||
|
||||
#ifndef PPM_ICU_TIMER
|
||||
#define PPM_ICU_TIMER ICUD4
|
||||
#endif
|
||||
|
||||
#ifndef PPM_ICU_CHANNEL
|
||||
#define PPM_ICU_CHANNEL ICU_CHANNEL_2
|
||||
#endif
|
||||
|
||||
#ifndef HRT_TIMER
|
||||
#define HRT_TIMER GPTD5
|
||||
#endif
|
||||
|
||||
#ifndef HAL_BOARD_INIT_HOOK_DEFINE
|
||||
#define HAL_BOARD_INIT_HOOK_DEFINE
|
||||
#endif
|
||||
|
||||
#ifndef HAL_BOARD_INIT_HOOK_CALL
|
||||
#define HAL_BOARD_INIT_HOOK_CALL
|
||||
#endif
|
||||
|
||||
#if !defined(_FROM_ASM_)
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -1,47 +0,0 @@
|
||||
/*
|
||||
* This file is free software: you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License as published by the
|
||||
* Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This file is distributed in the hope that it will be useful, but
|
||||
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
* See the GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along
|
||||
* with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
* Code by Andrew Tridgell and Siddharth Bharat Purohit
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
/*
|
||||
* APM HW Defines
|
||||
*/
|
||||
#define PPM_ICU_TIMER ICUD4
|
||||
#define PPM_ICU_CHANNEL ICU_CHANNEL_2
|
||||
|
||||
#define HRT_TIMER GPTD5
|
||||
#define LINE_LED1 PAL_LINE(GPIOE,12)
|
||||
|
||||
#include "hwdef.h"
|
||||
|
||||
|
||||
#ifndef HAL_BOARD_INIT_HOOK_DEFINE
|
||||
#define HAL_BOARD_INIT_HOOK_DEFINE
|
||||
#endif
|
||||
#ifndef HAL_BOARD_INIT_HOOK_CALL
|
||||
#define HAL_BOARD_INIT_HOOK_CALL
|
||||
#endif
|
||||
#if !defined(_FROM_ASM_)
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
void boardInit(void);
|
||||
HAL_BOARD_INIT_HOOK_DEFINE
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif /* _FROM_ASM_ */
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
@@ -1,47 +0,0 @@
|
||||
/*
|
||||
* This file is free software: you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License as published by the
|
||||
* Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This file is distributed in the hope that it will be useful, but
|
||||
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
* See the GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along
|
||||
* with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
* Code by Andrew Tridgell and Siddharth Bharat Purohit
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
/*
|
||||
* APM HW Defines
|
||||
*/
|
||||
#define PPM_ICU_TIMER ICUD4
|
||||
#define PPM_ICU_CHANNEL ICU_CHANNEL_2
|
||||
|
||||
#define HRT_TIMER GPTD5
|
||||
#define LINE_LED1 PAL_LINE(GPIOE,12)
|
||||
|
||||
#include "hwdef.h"
|
||||
|
||||
|
||||
#ifndef HAL_BOARD_INIT_HOOK_DEFINE
|
||||
#define HAL_BOARD_INIT_HOOK_DEFINE
|
||||
#endif
|
||||
#ifndef HAL_BOARD_INIT_HOOK_CALL
|
||||
#define HAL_BOARD_INIT_HOOK_CALL
|
||||
#endif
|
||||
#if !defined(_FROM_ASM_)
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
void boardInit(void);
|
||||
HAL_BOARD_INIT_HOOK_DEFINE
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif /* _FROM_ASM_ */
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
@@ -1,60 +0,0 @@
|
||||
/*
|
||||
ChibiOS - Copyright (C) 2006..2016 Giovanni Di Sirio
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
/*
|
||||
* This file is free software: you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License as published by the
|
||||
* Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This file is distributed in the hope that it will be useful, but
|
||||
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
* See the GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along
|
||||
* with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
* Modified for use in AP_HAL by Andrew Tridgell and Siddharth Bharat Purohit
|
||||
*/
|
||||
#ifndef _BOARD_H_
|
||||
#define _BOARD_H_
|
||||
|
||||
/*
|
||||
* Setup for STMicroelectronics STM32 F412 SkyViper board.
|
||||
*/
|
||||
|
||||
#include "hwdef.h"
|
||||
|
||||
/*
|
||||
* APM HW Defines
|
||||
*/
|
||||
|
||||
#define HRT_TIMER GPTD5
|
||||
|
||||
#define PPM_ICU_TIMER ICUD1
|
||||
#define PPM_ICU_CHANNEL ICU_CHANNEL_1
|
||||
|
||||
#if !defined(_FROM_ASM_)
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
void boardInit(void);
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif /* _FROM_ASM_ */
|
||||
|
||||
#endif /* _BOARD_H_ */
|
||||
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user