Commit graph

2704 commits

Author SHA1 Message Date
Dominic Clifton
94784dfa04 STM32F30x - Update compiler flags. Disable -pedantic on F30x targets
due to the hundreds of warning the CMSIS library generates when it is
enabled.
2014-08-01 22:06:39 +01:00
Dominic Clifton
ff71a32eed Update STM32F303 startup script to handle recent changes to make file.
See 941b42a269
2014-08-01 21:44:27 +01:00
Trey Marc
c86a64ffb7 Update cli.c
let user set small angle to 180 , let user arm in any orientation , test ok
2014-08-01 21:19:55 +01:00
dongie
897839f9b8 making it really const this time. 2014-08-01 21:18:44 +01:00
Chris Nisbet
ceec9687cb Fixed location of const 2014-08-01 21:18:28 +01:00
Dominic Clifton
193c4db508 making timer lists const. 2014-08-01 21:17:34 +01:00
luggi
3c250d24ee fixed accz pt1 element bug 2014-08-01 21:14:18 +01:00
bubi-007
ca1964aa5c Update imu.c 2014-08-01 21:14:05 +01:00
bubi-007
d63d6e73b1 Update imu.c 2014-08-01 21:13:50 +01:00
bubi-007
626847456c Update imu.c 2014-08-01 21:13:36 +01:00
Dominic Clifton
38cbe28e0f Apply accz pt1 element fixes.
See:
f7132b9d33211a55b8bd2c92f14da59f35b715a4
b1f58bc01fcf1632b3c3947a5ed0e807c2763a30
5832e2f67fcd2ee93044b300fda37a420c595813
a5961aeda657225fa843a115a94229313db4b2db
2014-08-01 21:10:26 +01:00
Dominic Clifton
9a9ff9b1ad Cleanup various compiler warnings that were appearing since the
additional compiler flags were added.
2014-08-01 20:02:10 +01:00
Dominic Clifton
2d6a61c8c7 Remove -Wshadow, the warnings are not useful.
See https://lkml.org/lkml/2006/11/28/253
2014-08-01 19:58:39 +01:00
Paul Fertser
1a14b72b16 Makefile: add -lc to make debug build with -nostartfiles happy
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2014-08-01 18:44:39 +01:00
Dominic Clifton
ee5211c5ad Fix merge of a753661c23c428ede8c2b72e95d3e31f6c8b894e when building for
targets that use telemetry.
2014-08-01 18:43:45 +01:00
Dominic Clifton
5451d45f5f OLIMEXINO - Fix build when LEDs not used. 2014-08-01 18:40:10 +01:00
Dominic Clifton
61bdc2ad5d Fixed problem with debug build and _sbrk, caused by missing -lc linker
option.

Re-ordered some makefile statements to be in-line with baseflight for
easier merging.
2014-08-01 18:39:47 +01:00
Dominic Clifton
b96d1ae71d Update makefile so it builds with DEBUG=GDB without _sbrk linker error.
Enable additional warnings.

Later commits will fix warnings.
2014-08-01 14:12:39 +01:00
Paul Fertser
900f872058 Makefile: switch to newlib-nano
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>
2014-08-01 12:29:00 +01:00
Paul Fertser
941b42a269 Makefile: link with -nostartfiles
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>
2014-08-01 12:28:55 +01:00
Paul Fertser
76f4f31cf3 Make code warnings-free with -pedantic
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>
2014-08-01 12:28:44 +01:00
luggi
8e8e48032d add current sensor support to frsky telemetry
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
2014-08-01 12:28:21 +01:00
Dominic Clifton
9cad163030 OLIMEXINO - Use I2C2. 2014-08-01 01:26:36 +01:00
Paul Fertser
f218d3c040 Makefile: enable LTO
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
2014-08-01 01:25:16 +01:00
Dominic Clifton
53623d4d7f Update led strip compile in/out. 2014-08-01 01:15:05 +01:00
Dominic Clifton
326a10b1dc Allow autotune to be compiled in/out. 2014-08-01 01:14:23 +01:00
Dominic Clifton
a6f4633272 Show sizes after build. 2014-08-01 01:07:06 +01:00
Dominic Clifton
1d5ef51373 CJMCU - Add compass driver. Update I2C configuration. Use PPM and
Brushed motors by default.
2014-08-01 00:56:28 +01:00
Dominic Clifton
5e045616fa Delete remaining LED Ring code. Please use generic WS2812 LEDs instead. 2014-08-01 00:54:30 +01:00
Dominic Clifton
f59c8c3b25 NAZE - Make beeper hack Naze specific now that it's clear why the code
existed.
2014-08-01 00:53:22 +01:00
Dominic Clifton
125f6d1450 CJMCU - Allow various features to be compiled out to support. 2014-08-01 00:18:37 +01:00
Dominic Clifton
fc93be394f Merge branch 'master' into cjmcu 2014-07-31 23:54:37 +01:00
Dominic Clifton
9f1a0fcb4c Cleanup line endings. 2014-07-31 23:53:34 +01:00
Dominic Clifton
2238f535be Use smaller type for small_angle. 2014-07-31 23:51:35 +01:00
Dominic Clifton
8f473f9b20 Initial support for CJMCU target (work-in-progress, compiles but doesn't link yet) 2014-07-31 14:01:01 +01:00
Dominic Clifton
3d65e4ff96 Changes missed from last commit. 2014-07-31 13:47:46 +01:00
treymarc
0045e5c328 we can test for mag only one time 2014-07-31 13:31:10 +01:00
treymarc
4ed2bb7705 we can for mag only one time 2014-07-31 13:31:04 +01:00
treymarc
607477ab71 remove duplicate test 2014-07-31 13:30:44 +01:00
treymarc
9cf90fa230 smallAngle configurable, user can arm/disarm with swith in any
orientation
Conflicts:

	src/cli.c
	src/config.c
	src/imu.c
	src/mw.c
	src/mw.h
2014-07-31 00:25:24 +01:00
Dominic Clifton
3b629d58a0 GPS can now be conditionally compiled in. 2014-07-30 23:35:33 +01:00
dongie
b3a718882c updated I2C driver to allow using I2C2 or I2C1 at compile time - call i2cInit with I2CDEV_1 or _2.
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
2014-07-30 22:38:59 +01:00
Dominic Clifton
0ac2b51c60 Make ppm/pwm input filtering configurable. 2014-07-30 22:02:34 +01:00
dongie
226e38de3e rolling back pwm capture filter stuff, not necessary and had reports of fail. 2014-07-30 21:56:22 +01:00
dongie
a68c869797 auto-configure eeprom save location based on Flash Size Register. Might help using baseflight on 64k flash devices. 2014-07-30 21:21:42 +01:00
Dominic Clifton
10790a7378 Fix use of incorrect preprocessor define. 2014-07-30 21:19:08 +01:00
Dominic Clifton
cbb17dae59 Dynamically determine flash size on STM32F10X_MD 2014-07-30 21:17:57 +01:00
Dominic Clifton
6696031520 Adding notes. 2014-07-26 21:30:06 +01:00
Dominic Clifton
a39ae9929d Adjust i-term yaw zeroing.
See fe5a864 and b9e5a37.
2014-07-26 21:26:04 +01:00
Dominic Clifton
5086b46f1f Add simple LED animation when disarmed. Fixed led grid size
calculation.
2014-07-26 18:21:58 +01:00