Lucas De Marchi
8cec2c188f
Tools: add O_CLOEXEC in places missing it
...
By opening with O_CLOEXEC we make sure we don't leak the file descriptor
when we are exec'ing or calling out subprograms. Right now we currently
don't do it so there's no harm, but it's good practice in Linux to have
it.
2016-11-07 12:37:30 -03:00
Lucas De Marchi
524b0870ff
Tools: remove unused Linux scripts/sources
2016-05-18 11:51:45 -03:00
Ricardo de Almeida Gonzaga
1062aed91e
Tools: Fix typos
2016-05-13 19:20:07 -03:00
mirkix
106f26d204
Linux_HAL_Essentials: Add missing make command in README.md for aiopru
2016-04-29 11:59:21 -03:00
Lucas De Marchi
36336e17b3
Tools: replace header guard with pragma once
2016-03-16 18:40:45 +11:00
mirkix
ef56d952cd
Linux_HAL_Essentials: Add HC-SR04 README.md
2015-12-01 07:04:10 +11:00
mirkix
fe442d35df
Linux_HAL_Essentials: Add AioPRU README.md
2015-12-01 07:03:28 +11:00
Gustavo Jose de Sousa
fe8d471490
Tools: RCInput_UART PIC firmware: keep status led on
...
Keep status led on while we are continuously sending packets to serial. That
shows the user we are receiving input properly.
2015-11-04 13:55:10 +11:00
Gustavo Jose de Sousa
2c9472c634
Tools: RCInput_UART PIC firmware: blink status led when idle
...
Blink status led if there's no input in more than (2 * NUM_INPUT) ms. That's
useful to show the user that the program is working, but not receiving proper
input.
2015-11-04 13:55:10 +11:00
Gustavo Jose de Sousa
6a8420aa48
Tools: RCInput_UART PIC firmware: remove code out of place
...
That code for serial configuration was not really setting TXSTA register, since
the selected bank is 2. Looking at the datasheet, it seems that we were
actually messing with a register named VRCON (full name "VOLTAGE REFERENCE
CONTROL REGISTER").
This is probably a leftover from a copy/paste, since the same is done (in the
right place) previously.
2015-11-04 13:55:10 +11:00
Gustavo Jose de Sousa
2a7e4baa7d
Tools: RCInput_UART PIC firmware: add informative comments
2015-11-04 13:55:10 +11:00
Fabio Mello
8110104361
Tools: add PIC assembly code for RCInput_UART
...
This patch adds the assembly source code for the PIC firmware responsible for
processing PWM input from the RC Receiver and pushing the values to the serial
output.
2015-11-04 13:55:10 +11:00
Mirko Denecke
d93200f3b1
Linux_HAL_Essentials: Update README.md
2015-10-08 15:24:14 +09:00
Víctor Mayoral Vilches
5036be6771
Linux_HAL_Essentials: ERLEBOARD legacy support
...
This config referred to the legacy Erle-Board
https://erlerobotics.com/blog/product/erle-board/
The configuration is preserved to support the
existing boards.
2015-09-09 10:31:55 +10:00
mirkix
6f77d3ae98
Linux_HAL_Essentials: Add PRU firmware files. Prevent user to install PRU compiler
2015-08-24 08:43:11 +10:00
Peter Barker
818bb3f88f
Tools: correct array-out-of-bounds in PRU test
2015-07-10 18:56:20 +10:00
mirkix
38318c4b51
Linux_HAL_Essentials: Add support for HC-SR04 Range Finder
2015-07-07 08:00:32 +10:00
mirkix
2e04effd4d
Linux_HAL_Essentials: Add (UAV)CAN support
2015-04-07 20:48:01 -07:00
mirkix
1f85a087ac
Linux_HAL_Essentials: Move pwmpru and rcinpru to subfolder pru
2015-03-17 08:21:46 +11:00
mirkix
a0f183e6ce
Linux_HAL_Essentials: Move PFX DT files to devicetree/pxf
2015-03-17 08:20:51 +11:00
mirkix
bd34ffa7db
Linux_HAL_Essentials: RC AIO PRU firmware. Does RC input (5ns accuracy) and 12 PWM RC ouputs (better than 1us accuracy) with only one PRU.
2015-03-16 09:33:55 +11:00
mirkix
b88dc40e79
Linux_HAL_Essentials: Add device tree for BBBMINI
2015-03-16 09:15:06 +11:00
mirkix
189dd158d7
Linux_HAL_Essentials: add channel mapping comments for RCInput and RCOutput
2015-01-13 12:18:42 +13:00
bugobliterator
b383e1633b
Tools/Linux_HAL_Essentials: Add loading of PWM capes to support ToneAlarm
...
new capes to be loaded by startup.sh: am33xx_pwm and bone_pwm_P8_36
2014-11-10 06:27:48 +11:00
Andrew Tridgell
b0c9e97181
Linux_HAL_Essentials: P8.15 is an input pin
2014-10-08 12:50:50 +11:00
Andrew Tridgell
e0caee9500
Linux_HAL_Essentials: rebuilt rcinpru0 with 300 ring buffer entries
...
thanks to Sid for doing this
2014-10-07 14:57:35 +11:00
Andrew Tridgell
994b2597fd
Linux_HAL_Essentials: change ring buffer to 300 entries
...
this ensures full SBUS frames can be decoded
2014-10-07 14:57:34 +11:00
Andrew Tridgell
e629a8d67a
Linux: added example startup script for plane
2014-08-19 20:03:33 +10:00
bugobliterator
5e03df2d9a
Tools:HAL_Linux_Essentials: store pin status during pulse instead of status after pulse
2014-08-19 10:08:16 +10:00
bugobliterator
210d3e8c32
Tools:HAL_Linux_Essentials:add rcinput test code
...
the test code performs continuous reads from ring buffer shared with PRU0
2014-08-19 10:08:16 +10:00
bugobliterator
d8e36fee41
Tools:HAL_Linux_Essentials: Add PRU side of code for RCinput to run on PRU0
...
PRU0 with rcinpru0 firmware will be timing pin state changes and loading it inside ring buffer maintained inside SHARED_RAM at 0x12000 offset
2014-08-19 10:08:16 +10:00
Victor Mayoral Vilches
04a8377462
Tools: Change sensor configurations easily.
...
This shell script allows to change the sensor configuration
(for now just supports IMU changes) so that the autopilot is
compiled for different combinations of sensors. This has probed
to be useful with Linux-based boards (e.g.: PXF, Erle-board)
that include serveral, different sensors for each kind.
2014-08-19 10:08:16 +10:00
bugobliterator
6b619562b5
Tools: Remove unrequired pru0 pin setups from BB-PXF-01-00A0 overlay
2014-07-25 15:29:29 +10:00
bugobliterator
fdf916025a
Tools: add unified device tree overlay to load all requisites
...
no more loading multiple capes to enable pru, spi, pwm etc. Steps to load the cape during boot also added.
2014-07-25 15:29:27 +10:00
Andrew Tridgell
0dcd0e600b
Tools: remove unused Linux device tree files
2014-07-19 14:48:43 +10:00
Andrew Tridgell
4e7e69bafb
Tools: added dtbo for PXF cape
2014-07-19 13:58:31 +10:00
Andrew Tridgell
183795df02
Tools: fixed DTS Makefile
2014-07-19 13:26:47 +10:00
Andrew Tridgell
ad532b89bd
Tools: new dts file for SPI on PXF cape
2014-07-19 13:22:09 +10:00
bugobliterator
003806fcc1
HAL_Linux: pwmpru,HAL_Linux_RCOut code doesn't wait for magic flag to send data
...
change pwmpru code to remove frequent wrong PWM outputs
Replace pru firmware with new modified pru firmware
2014-07-14 09:44:37 +10:00
Andrew Tridgell
e2822a2d8f
Tools: added Makefile for BBB overlays
2014-07-14 09:44:35 +10:00
Víctor Mayoral Vilches
7cb547272b
Linux_HAL_Essentials: Minor type fixed in the README
2014-07-14 09:44:33 +10:00
Víctor Mayoral Vilches
464cb8fed9
Linux_HAL_Essentials: Update README for Ubuntu.
...
Added a note pointing out the instructions for precise.
2014-07-14 09:44:33 +10:00
Siddharth Bharat Purohit
9c33420aab
HAL_Linux: Linux HAL Readme:change firmware name to pwmpru1
2014-07-14 09:32:29 +10:00
bugobliterator
aa1db00908
Linux_HAL_Essentials: cleanup PWM PRU code
...
change firmware name to pwmpru1
2014-07-14 09:32:29 +10:00
Siddharth Bharat Purohit
e438250068
Linux: Startup script:add reloading pru firmware option
2014-07-14 09:32:29 +10:00
Siddharth Bharat Purohit
1956c68e16
Linux: Add usage steps for PRU firmware to Readme
2014-07-14 09:32:29 +10:00
bugobliterator
971967be4b
Linux: add PRU PWM code to Linux_HAL_Essentials
2014-07-14 09:32:29 +10:00
Andrew Tridgell
d79877792f
Linux_HAL: updated binary dtbo files
2014-07-14 09:32:29 +10:00
Andrew Tridgell
cd98593280
Linux_HAL: added dts files for overlays
...
These are the BBB/PXF specific DTS files, fixed for the SPI pin handling
2014-07-14 09:32:29 +10:00
bugobliterator
5bcdb039e2
HAL_Linux: Make asynchronous PRU write and reduce the size of data exchange
...
Change to sending Total Period and hi Period, rather than Hi and Lo Period
Change PRU firmware accordingly
2014-07-14 09:32:29 +10:00