Commit graph

72 commits

Author SHA1 Message Date
Karl Palsson
90ce052d82 spi-master: functional spi slave on l1 host
Doesn't do much other than reply with an increasing pattern, but at
least the basic wiring is now in place.
2018-04-17 22:53:25 +00:00
Karl Palsson
3ee8c6f8b9 spi-master-l0: wip:
doesn't work, but getting there
2018-04-16 23:15:48 +00:00
Karl Palsson
a62f296f73 adc-power: correctly allow parallel make
Need to use $(MAKE) correctly!
2018-04-16 21:32:29 +00:00
Karl Palsson
d339255511 i2c-master: add parallel make and fix errors
Fix bugs from outof date libopencm3
2018-02-25 22:50:09 +00:00
Karl Palsson
da729ec691 adc-power: add parallel parent makefile
and fix the bugs it shows from me not maintaining this code!
2018-02-25 22:46:21 +00:00
Karl Palsson
9d0983c386 adc-power: drop unused l053 makefile stub
remnant of being copied from usb-gadget0
2018-02-25 22:45:40 +00:00
Karl Palsson
f391796ddd uart-basic: initial hacks for dut board.
but oh joy,  solder bridges are wrong for serial to hw1 host by defualt
:(
2018-02-22 08:51:06 +00:00
Karl Palsson
bed7ca19b2 adc-power: stm32l1: make "generic" == hw1 test board.
* use the trigger pin instead of the led.
* use the smaller flash of the part mounted.
2018-02-21 22:56:01 +00:00
Karl Palsson
d5fd0d1012 spi-master: update to run on the hw1 host board
"TRIGGER" is now D0 on the fx2 port
"LED" is now D1 on the fx2 port,
"SPI MOSI" is now D4 on the fx2
"SPI MISO" is now D5
"SPI CLOCK" is now D6
2018-02-19 22:04:59 +00:00
Karl Palsson
0d9dca3ac9 uart-basic: l0: speedup and drop dead code
Don't need the HSI48 clocks, that was from a usb demo
2017-10-26 21:42:33 +00:00
Karl Palsson
3c53aa4ec3 uart-basic: add l4 2017-10-25 23:54:17 +00:00
Karl Palsson
0cf7359b78 uart-basic: add functional l0 test code too.
Really need to get the rcc helpers built up and upstream!
2017-10-25 23:25:26 +00:00
Karl Palsson
d35d362699 uart-basic: add f0, requires newest code too
stupid f072 disco doesn't have usart2 available
2017-10-24 23:48:55 +00:00
Karl Palsson
a549503ade basic uart: f4 and f3, prepping tests for usart-v2
use parity to at least test a little more of the common code
2017-10-24 23:48:28 +00:00
Karl Palsson
b375054177 awd-timer-dma: initial commit.
Had to figure out a few screwups before I got the AWD working properly.
2017-09-01 21:20:39 +00:00
Karl Palsson
76f86f8b2c spi-master: trivial: names to match sigrok default 2017-09-01 21:20:39 +00:00
Karl Palsson
cfe847f7f3 i2c: fix uart notes for f0 2017-04-05 21:30:42 +00:00
Karl Palsson
43a891d5cd i2c-master: f0: fix leds 2017-04-04 21:17:10 +00:00
Karl Palsson
667ce879ef fix sigrok 2017-03-27 23:23:52 +00:00
Karl Palsson
f8d621ec5b spi-master: initial busy sending test stub.
Basic framework.  now we can build on it.
2017-03-27 23:20:07 +00:00
Karl Palsson
cb66272d4e i2c-master: add pins for f0 disco 2017-03-27 21:44:53 +00:00
Karl Palsson
6dfe47b399 i2c-master: use library form of transfer functions 2017-03-24 00:13:23 +00:00
Karl Palsson
f34641e25b i2c: use speed setting from newer library version 2017-03-23 23:58:20 +00:00
Karl Palsson
5e1ba40641 i2c-master: add 400k speed support on v1/v2 2017-03-23 23:37:25 +00:00
Karl Palsson
112e9e6814 i2c-master: cleaned up again on l1
now has repeated-start and stop/start support, with the same API as v2

Just to decide whether all of it goes up into the library or not.
2017-03-23 22:29:52 +00:00
Karl Palsson
4c1859668e working temp/humi stop/repeated stuff on f0
needs cleanup and remerge with f4/l1
2017-03-22 23:31:53 +00:00
Karl Palsson
4032ff221f use transfer style for serial number reading 2017-03-22 23:03:29 +00:00
Karl Palsson
7a540fb4ab f0 working with repeated start properly. need to squish lots of this
like, you left the f0 makefiles out earlier, and it's all boring history
anwyay
2017-03-22 22:50:37 +00:00
Karl Palsson
9930ddd472 i2c: draft api of "set speed 100k" common
Only needs the input clock in megahz.
2017-03-09 23:13:23 +00:00
Karl Palsson
a2785bdf76 i2c-master: first hack working on f0
read_i2c and write_i2c are not flexible enough, and terribly named.
they're going to have to go, but they're a nice start for some things.
2017-03-08 23:06:00 +00:00
Karl Palsson
d6e9b188c7 i2c-master: working on l1 too.
Needs retest on f4.  then ready to move to new hardware
2017-03-08 23:05:52 +00:00
Karl Palsson
12f454b41b i2c-master: tidy up more.
Still f4 only, but cleaner, and more testing with sigrok for
verification
2017-03-01 22:53:58 +00:00
Karl Palsson
d30f38ed3c i2c-master: start extracting out i2c code
Working on f4 with an external sht21 i2c sensor.
Still lots of f4 specifics yet.  But, progress.
2017-02-21 23:32:50 +00:00
Karl Palsson
65301e5a0b i2c-master: start progressing to extracting common i2c code 2017-02-21 23:11:43 +00:00
Karl Palsson
115b771e56 i2c: Initial stub import of old f4 code
Currently (despite docs) is an import of code reading the onboard i2c
peripheral
2017-02-21 21:37:36 +00:00
Karl Palsson
3a79a3b923 usb-rs485: more docs 2017-02-21 21:17:52 +00:00
Karl Palsson
9e15416b0b usb-rs485: update to latest library master 2017-02-21 21:17:14 +00:00
Karl Palsson
18df4064d3 usb-rs485: enable rs485 mode.
Tested on the f1 with a LA only, but traces look good and as expected.
future work to actually hook it up to a rs485 device.
2016-10-03 21:17:54 +00:00
Karl Palsson
8f7dbbb069 usb-rs485: update readme 2016-09-30 23:47:18 +00:00
Karl Palsson
34de89cb81 usb-serial: functional f4
Add stubs based on f1, and include irq timing pin
2016-09-30 23:32:10 +00:00
Karl Palsson
315da21955 usb-serial: f1: try and diagnose corruption in rx path 2016-09-30 23:32:09 +00:00
Karl Palsson
003c9d202a usb-serial: functional on f1. 2016-09-30 23:31:54 +00:00
Karl Palsson
8b484ba88e oocd: move stm32f1 config file to common 2016-09-27 22:23:57 +00:00
Karl Palsson
c0ec94e4c9 ubs-serial-rs485: First solidly working version.
Needs major refactoring to split out the _actual_ arch dependent pieces.
Needs parity and more complete baud rate support.
Needs rs485 support.
2016-09-26 22:04:02 +00:00
Karl Palsson
19d3225fd6 adc-power: update makefiles with work lying around 2016-09-26 20:57:10 +00:00
Karl Palsson
cdd0a0c2e4 adc-power: include f1 tests 2016-09-11 23:38:55 +00:00
Karl Palsson
55cf5bcd76 adc-power: Calling adc_power_off twice should be safe
but, it's not on f3 at present.

See https://github.com/libopencm3/libopencm3/issues/654
and
https://github.com/libopencm3/libopencm3/pull/662
2016-09-09 22:16:45 +00:00
Karl Palsson
075229952e adc-power: f3 adc peripheral takes over gpios automatically?
Doesn't seem to have any impact when just hooking up a pot to the pins
at least.
2016-09-09 22:16:45 +00:00
Karl Palsson
f1138d9cc2 adc-power: add oocd file for f3 disco 2016-09-09 22:16:45 +00:00
Karl Palsson
a5764de19f adc-power: add f4 oocd config 2016-09-09 22:16:45 +00:00