mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-16 12:55:19 +03:00
Split initialization from gyro.c for flash savings
Move low performance requirements initialization code into gyro_init.c and optimize that for size.
This commit is contained in:
parent
d733c48b04
commit
ad0e7154a7
14 changed files with 859 additions and 775 deletions
|
@ -277,6 +277,7 @@ scheduler_unittest_SRC := \
|
|||
|
||||
sensor_gyro_unittest_SRC := \
|
||||
$(USER_DIR)/sensors/gyro.c \
|
||||
$(USER_DIR)/sensors/gyro_init.c \
|
||||
$(USER_DIR)/sensors/boardalignment.c \
|
||||
$(USER_DIR)/common/filter.c \
|
||||
$(USER_DIR)/common/maths.c \
|
||||
|
|
|
@ -37,6 +37,7 @@ extern "C" {
|
|||
#include "pg/pg_ids.h"
|
||||
#include "scheduler/scheduler.h"
|
||||
#include "sensors/gyro.h"
|
||||
#include "sensors/gyro_init.h"
|
||||
#include "sensors/acceleration.h"
|
||||
#include "sensors/sensors.h"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue