This makes the binary considerably smaller (73852 text with gcc
4.7.3, 71620 text with gcc 4.9.0 from TNT).
Build-tested only.
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
This saves a bit more space and a reasonable thing to do since a
custom startup is used anyway.
Build-tested only.
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
This removes a function that's no longer used, and inline specifiers
from include file (where they're useless anyway). This makes the whole
default project warnings-free with -Wall -pedantic.
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
this lets the naze emulate the FAS100 current sensor and also transmits
the internally calculated mAh drawn via the fuel level data.
Conflicts:
src/main/telemetry/frsky.c
Conflicts:
src/main/telemetry/frsky.c
This rearranges Makefile a bit and enables Link Time Optimisation
which leads to a smaller code (77724 text with gcc 4.7.3).
Unconditionally adding -ggdb3 doesn't affect code size anyhow as all
the debugging info is stored in separate sections.
Build-tested only.
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
Conflicts:
Makefile
Applied same to SOFT_I2C driver (but the pin config is compile-time #define)
Conflicts:
src/board.h
src/drv_i2c.h
src/drv_system.c
src/main/drivers/bus_i2c_soft.c
src/main/drivers/bus_i2c_stm32f10x.c
The timer was not being initialised correctly, it only worked by
accident due to timer configuration of other timer channels. This
explained why TIM3 didn't work in the mapping exclusion for the CC3D and
why for the LEDs to work correctly TIM2 had to be specified so that TIM3
was actually accidentally initialised still.
On the CC3D it was observed that jitters were present, this code
validates each frame.
Prior to this, on other boards (Naze32/Flip32+/Olimexino/etc) it was
observed that when using an 8 channel RX AUX5-8 would sometimes be set
due to bad PPM data.
This code fixes both issues.
This required timer overflow events to be used in the calculation of PPM
channel data.
CC3D tested, other targets may be unstable as a result. Needs further
testing.