mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-24 00:35:39 +03:00
REFACTOR: moving timer definitions to MCU locations. (#12397)
* REFACTOR: moving timer definitions to MCU locations. * Now that the MCU directory needs to be included in the search path for includes, no need for target.h entry if filenaming is consistent. * SITL needs the empty include.
This commit is contained in:
parent
c4ab98258e
commit
82566eb89a
40 changed files with 547 additions and 299 deletions
|
@ -185,7 +185,7 @@ motor_output_unittest_SRC := \
|
|||
$(USER_DIR)/drivers/dshot.c
|
||||
|
||||
motor_output_unittest_DEFINES := \
|
||||
USE_DSHOT=
|
||||
USE_DSHOT=
|
||||
|
||||
osd_unittest_SRC := \
|
||||
$(USER_DIR)/osd/osd.c \
|
||||
|
@ -290,7 +290,7 @@ scheduler_unittest_SRC := \
|
|||
$(USER_DIR)/common/streambuf.c
|
||||
|
||||
scheduler_unittest_DEFINES := \
|
||||
USE_OSD=
|
||||
USE_OSD=
|
||||
|
||||
sensor_gyro_unittest_SRC := \
|
||||
$(USER_DIR)/sensors/gyro.c \
|
||||
|
|
22
src/test/unit/dma_reqmap_mcu.h
Normal file
22
src/test/unit/dma_reqmap_mcu.h
Normal file
|
@ -0,0 +1,22 @@
|
|||
/*
|
||||
* This file is part of Betaflight.
|
||||
*
|
||||
* Betaflight is free software. You can redistribute this software
|
||||
* and/or modify this software 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.
|
||||
*
|
||||
* Betaflight 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 software.
|
||||
*
|
||||
* If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#pragma once
|
|
@ -36,7 +36,7 @@ extern "C" {
|
|||
#include "drivers/io.h"
|
||||
#include "drivers/light_ws2811strip.h"
|
||||
#include "drivers/timer.h"
|
||||
#include "drivers/timer_def.h"
|
||||
#include "timer_def.h"
|
||||
|
||||
#include "config/config.h"
|
||||
#include "fc/rc_controls.h"
|
||||
|
|
22
src/test/unit/timer_def.h
Normal file
22
src/test/unit/timer_def.h
Normal file
|
@ -0,0 +1,22 @@
|
|||
/*
|
||||
* This file is part of Betaflight.
|
||||
*
|
||||
* Betaflight is free software. You can redistribute this software
|
||||
* and/or modify this software 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.
|
||||
*
|
||||
* Betaflight 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 software.
|
||||
*
|
||||
* If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#pragma once
|
Loading…
Add table
Add a link
Reference in a new issue