blmorris
5df81de7af
sthmal/rtc.c: Add calibration() method to get/set RTC fine-tuning value.
2015-05-11 23:48:39 +01:00
Henrik
e3cd154317
stmhal: Add support for sending and receiving CAN RTR messages.
2015-04-18 14:53:00 +01:00
Damien George
7d5e34287c
stmhal: Allow sending CAN messages with timeout=0.
...
Thanks to Henrik Sölver for this patch.
2015-04-16 23:52:43 +01:00
Damien George
7a6dbaa89b
stmhal: Make LED object print LED(x) for consistency with constructor.
2015-04-11 21:50:53 +01:00
Damien George
db80b65402
tests: Make pyb/timer test check callback timing properly.
2015-03-20 23:50:33 +00:00
Damien George
ac4f6b804f
stmhal: Fix adc.read_timed so buffer store respects element size.
...
Addresses issue #1154 .
2015-03-13 22:11:50 +00:00
Damien George
b67253e96f
tests: Update pyb/uart.py test since baudrate of 1200 is too low.
2015-02-27 00:40:08 +00:00
Damien George
626ee90ce1
tests: Add more tests for pyb.Timer class.
2015-02-23 13:18:33 +00:00
Henrik Sölver
f80f1a7077
stmhal: Add support for CAN rx callbacks.
2015-02-15 03:10:53 +00:00
Damien George
baafb290ad
stmhal: Add uart.sendbreak() method, to send a break condition.
2015-02-13 19:04:24 +00:00
Damien George
6936f4626c
tests: Get misc/print_exception and pyb/spi working on pyboard.
2014-12-18 13:37:56 +00:00
Henrik Sölver
acb92c186c
Adding CAN filter management
2014-11-26 18:52:33 +00:00
Damien George
224fee0e10
stmhal: Fix HAL error raising; make test for it.
...
Addresses issue #968 .
2014-11-15 20:39:44 +00:00
Damien George
efc49c5591
stmhal: Improve CAN print function.
2014-10-30 23:16:05 +00:00
Henrik Sölver
6a15ac80dc
tests: Added and adapted CAN tests for extended messages
2014-10-30 23:16:01 +00:00
Damien George
480a7ce58f
stmhal: Change SPI phase spec to 0,1 to match standard conventions.
...
Was 1 or 2, now 0 or 1 (respectively). 0 means sample MISO on first
edge, 1 means sample on second edge.
Addresses issue #936 .
2014-10-26 13:54:31 +00:00
Damien George
481d714bd5
stmhal: Overhaul UART class to use read/write, and improve it.
...
UART object now uses a stream-like interface: read, readall, readline,
readinto, readchar, write, writechar.
Timeouts are configured when the UART object is initialised, using
timeout and timeout_char keyword args.
The object includes optional read buffering, using interrupts. You can set
the buffer size dynamically using read_buf_len keyword arg. A size of 0
disables buffering.
2014-10-21 22:15:20 +01:00
Damien George
e535a61983
tests: Add simple CAN test.
2014-10-02 17:32:02 +01:00
Damien George
fa1a9bc9fd
tests: Add test for pyb.disable_irq and pyb.enable_irq.
2014-08-25 18:44:10 +01:00
Damien George
8ba832456e
stmhal, modtime: Small changes, reduced code size by around 80 bytes.
...
Also added test for modtime.
2014-08-24 17:40:24 +01:00
Damien George
d779b9642f
tests: Wait for just over 1 sec when testing RTC.
...
Waiting for 1000ms between seconds of RTC is sometimes too quick.
Waiting for 1001ms is enough for the RTC to pass 1 second.
2014-08-16 13:39:14 +01:00
Damien George
b92e7533d3
tests, pyb: Update pin test.
2014-08-08 22:38:58 +01:00
Damien George
04b7cc4df0
stmhal: Fix setting of RTC: was BCD now BIN encoded.
...
Addresses issue #592 .
2014-05-10 11:56:58 +01:00
Damien George
cda363a036
tests, pyb: Add 'import pyb' when needed.
2014-05-04 12:40:51 +01:00
Damien George
41f768f3f3
tests: Add a suite of tests specifically for the pyboard.
...
In tests/pyb is now a suite of tests that tests the pyb module on the
pyboard. They include expected output files because we can't run
CPython on the pyboard to compare against.
run-tests script has now been updated to allow pyboard tests to be run.
Just pass the option --pyboard. This runs all basic, float and pyb
tests. Note that float/math-fun.py currently fails because not all math
functions are implemented in stmhal/.
2014-05-03 16:43:27 +01:00