James Cotton
13e5f4123a
Reading gyro registers directly working.
2011-08-13 08:33:46 -05:00
James Cotton
f82e5dde33
Fix the EXTI IRQ handlers
2011-08-13 07:13:21 -05:00
James Cotton
e1f7a5003d
Fix up SPI DMA streams
2011-08-13 04:54:19 -05:00
James Cotton
77cca9ba30
Move EXTI handlers into other drivers
2011-08-13 01:29:17 -05:00
James Cotton
6d018c046e
Get BMA180 working. Need to move exti stuff into it until pios_exti
...
implemented properly
2011-08-13 01:10:33 -05:00
James Cotton
5619e33292
Bootloader now jumps to functioning code for INS. Consistent with AHRS code.
2011-08-12 22:52:47 -05:00
James Cotton
6529b8360f
Trying to get linker system working for INS
2011-08-12 21:28:02 -05:00
James Cotton
1d1f351233
Pios Delay: Add function for measuring time difference between two cycle counts
2011-08-12 04:29:53 -05:00
James Cotton
b3b4fcd007
Fix linker script and get rid of dead code
2011-08-12 03:44:55 -05:00
James Cotton
f247112090
PiOS F2: Move IMU3000 to device dependent :(. Now they all are. Need to
...
abstract as much as possible out since init is almost identicalc and protocol
COULD be device independent.
2011-08-12 03:38:45 -05:00
James Cotton
8c1dd7b929
Make BMP085 driver device dependent and update to new driver style.
2011-08-12 03:38:45 -05:00
James Cotton
9d76efa2aa
Move BMA180 driver to common architecture style.
2011-08-12 03:38:45 -05:00
James Cotton
1dc08e5cf7
F2 PiOS: Small fix to hmc5883 driver
2011-08-12 03:38:44 -05:00
James Cotton
ba413d5dad
F2 StdPeriph: Make the StdPeriph take in config parameters as const.
...
Unfortunately they don't do this upstream :(
2011-08-12 03:38:40 -05:00
James Cotton
ef0cdae622
PiOS F2: Remove clock initialization from usart since it is in pios_sys.c
2011-08-12 02:28:02 -05:00
James Cotton
6310f46705
HMC5883: Update driver for F2. Move to STM32F2xx directory since it is device
...
dependent. Abstract configuration out of board.h file into a standard board.c
structure.
2011-08-12 02:26:51 -05:00
James Cotton
0c2c48bee6
F2 PiOS: More changes for spi to work (not completed)
2011-08-09 12:59:10 -05:00
James Cotton
a097ff784b
F2 PiOS: Getting the I2C driver working again (copying changes from Zippe,
...
thanks again man!)
2011-08-09 12:58:46 -05:00
James Cotton
8be9ac9cc9
PiOS: Move driver out of common directory since it makes calls to configure the
...
EXTI system.
2011-08-09 12:51:26 -05:00
James Cotton
d78450eae8
Move some of the F2 defines into the makefile to make them global. Fixes some
...
issues with grabbing the wrong stm32 configuration file.
2011-08-09 01:19:05 -05:00
James Cotton
27213c7fd9
F2 PiOS USART: Update to the new driver format for coms
2011-08-09 01:18:25 -05:00
James Cotton
479ba7c21f
OP-378 INS: Continue getting F2 INS to compile
2011-08-08 08:36:40 -05:00
James Cotton
558bdddeaf
INS: Almost got Bootloader compiling *sigh*
2011-08-06 21:27:29 -05:00
James Cotton
a0d77faf4b
PiOS: Move pios_iap out of common. It is STM32F1x specific. Created an
...
STM32F2xx stub version. This needs cleaning up - there is some common code,
most of which can probably move to the bl_helper function.
2011-08-06 20:24:07 -05:00
James Cotton
f23ec059fe
dos2unix
2011-08-06 19:53:46 -05:00
James Cotton
1ccb9a1947
Some changes to BL to get running on F2. Also disables it for now (flash
...
interface is different).
2011-08-06 19:46:41 -05:00
James Cotton
d1c9ac0705
PiOS F2: Commit the F2 port of PiOS from Zippe. Thanks for doing all the hard
...
work man :-D
2011-08-06 19:36:56 -05:00
James Cotton
0bba13a0e9
Merge branch 'next' into ins
...
Conflicts:
flight/INS/Makefile
flight/INS/pios_board.c
flight/Modules/Altitude/altitude.c
flight/PiOS/Boards/STM3210E_INS.h
flight/PiOS/STM32F10x/link_STM3210E_INS_BL_sections.ld
flight/PiOS/STM32F10x/link_STM3210E_INS_HD_BL.ld
flight/PiOS/STM32F10x/link_STM3210E_INS_HD_NB.ld
flight/PiOS/STM32F10x/link_STM3210E_INS_memory.ld
flight/PiOS/STM32F10x/link_STM3210E_INS_sections.ld
flight/Project/OpenPilotOSX/OpenPilotOSX.xcodeproj/project.pbxproj
2011-08-06 17:25:56 -05:00
Stacey Sheldon
2f79e4fa76
Merge remote branch 'origin/stac/refactor-usart-com' into next
2011-07-31 09:41:06 -04:00
Stacey Sheldon
c2fb0d8b43
com: allow run-time allocation of buffers
2011-07-29 15:33:14 -04:00
Stacey Sheldon
8b0415d905
bl: alternate stopwatch for small bootloaders
...
The small bootloaders (CC and PipX) are out of flash space
so their stopwatch implementation has been swapped out for
one based on the DELAY clock that takes about 500 bytes less
of code space.
Identical functionality is preserved.
2011-07-29 15:33:01 -04:00
Stacey Sheldon
13f9b0e09d
Merge remote branch 'origin/OP-498_jwhitlock_add-ppm-to-cc' into next
2011-07-28 22:15:01 -04:00
Stacey Sheldon
a3888ecd48
usart: ensure callbacks are bound in the correct order
2011-07-27 23:21:39 -04:00
Stacey Sheldon
5f8760a55c
com: Move buffering out of USART/HID layer and into COM layer
...
This allows the spektrum and sbus receiver drivers to bind
directly to the usart layer using a properly exported API
rather than overriding the interrupt handler.
Bytes are now pushed directly from the usart layer into the
com layer without any buffering. The com layer performs all
of the buffering.
A further benefit from this approach is that we can put all
blocking/non-blocking behaviour into the COM layer and not
in the underlying drivers.
Misc related changes:
- Remove obsolete .handler field from irq configs
- Adapt all users of PIOS_COM_* functions to new API
- Fixup callers of PIOS_USB_HID_Init()
2011-07-27 19:45:38 -04:00
James
60136f0464
Add support for PPM transmitters up to 12 channels. Small array indexing issue in PIOS_PPM_Get.
2011-07-27 00:33:32 +01:00
Mike Smith
df5569c758
Fix a stupid off-by-one that prevented this code from working.
...
Update to use 32-bit microsecond values.
Remove PIOS_DELAY_DiffuS per consensus (caller can do it easily themselves).
Update the core delay logic per Stac's suggestion to a version that is
resistant to various overflows.
2011-07-25 20:55:48 -07:00
James Whitlock
6a6ec41809
Build fixes
2011-07-23 22:10:17 +01:00
Mike Smith
480f07a264
Typo fix.
2011-07-23 13:58:56 -07:00
Mike Smith
0df3bb2c37
Restore functions lost due to inept merging, and refactor to take advantage of them.
...
Address the following review feedback items:
- use stdint types
- avoid the use of magic numbers (define CYCCNTENA)
- remove expository comment about sneakiness and corresponding code, replace with something simpler based on the API
- remove commented/#if 0 code
2011-07-23 13:53:16 -07:00
Mike Smith
c3267a3b53
Remove PIOS_DELAY_TIMER definitions from configuration files, as there is no longer a delay timer to configure.
2011-07-23 13:48:40 -07:00
James Whitlock
11c568ec50
Add in a PPM input frame size tracker.
...
Move update of capture values to start of new frame.
Fix an issue with setting channels to invalid.
2011-07-23 01:38:51 +01:00
James Whitlock
7a58b4cceb
A quick clean of ppm code to remove white space and duplicated comments
2011-07-23 01:32:57 +01:00
Mike Smith
6bc5339015
Change the pios_delay implementation to use the CPU cycle counter rather than burning a timer.
2011-07-21 23:21:26 -07:00
Stacey Sheldon
a7cce25252
usart: fix lower usarts clobbering higher ones
...
The break statements are clearly missing from this
switch statement.
This would lead to problems when using more than one
USART on CC.
2011-07-22 00:30:49 -04:00
James Whitlock
7ce5daef8f
Clean up of PPM code in master.
2011-07-19 20:46:24 -04:00
Stacey Sheldon
8dbace5ee2
Merge branch 'rcvr_mem_reduction'
...
Conflicts:
flight/PiOS/STM32F10x/link_STM32103CB_CC_Rev1_sections.ld
2011-07-17 17:14:40 -04:00
James Cotton
2da65014c7
Fix typo in servo doxygen header
2011-07-16 03:25:33 -05:00
James Cotton
b83f731c03
Remove all references to vTaskDelay in the flash code as it can run before the
...
FreeRTOS scheduler
Also increaes init stack size from 0x80 to 0x100
2011-07-15 18:16:16 -05:00
James Cotton
01b62cf98f
Fix a typo
2011-07-15 15:30:10 -05:00
James Cotton
72e80d407c
Change the magic value in the object file table. Forces all objects to be
...
erased since all ids are changing - this frees up memory.
2011-07-15 11:11:29 -05:00