dpslwk
f3636a7b46
stmhal: Enable SD card on L4 MCUs.
2016-06-29 14:29:01 +01:00
dpslwk
b03df60f32
stmhal: Correct DMA to allow SD card on L4 MCUs.
2016-06-29 14:28:49 +01:00
dpslwk
14b7c3e59c
stmhal: Update HALCOMMITS due to change to hal
2016-06-29 14:28:49 +01:00
dpslwk
daa279a3a1
stmhal: Port of f4 hal commit 1d7fb82 to l4 hal
2016-06-29 14:27:55 +01:00
Paul Sokolovsky
07209f8592
all: Rename mp_obj_type_t::stream_p to protocol.
...
It's now used for more than just stream protocol (e.g. pin protocol), so
don't use false names.
2016-06-18 18:44:57 +03:00
Stefan Hölzl
c8332a5463
stmhal: Add board definition files for Olimex STM32-E407.
2016-06-06 10:21:02 +01:00
Tobias Badertscher
1191ec6a14
stmhal/uart.c: Fix wrong baudrate calculation for stm32l4 series.
2016-06-03 14:24:59 +01:00
Peter Hinch
641300dccb
stmhal/dac: DAC deinit() method added.
2016-05-31 13:10:35 +03:00
Paul Sokolovsky
2503b59592
stmhal/moduos: getcwd(): Use mp_obj_new_exception_arg1().
...
Argument types were converted, but old function call of
mp_obj_new_exception_msg_varg() remained.
2016-05-29 20:04:32 +03:00
Damien George
4b37e775ea
extmod/machine_i2c: Redo mp_hal_pin macros to use open_drain and od_low.
...
mp_hal_pin_config_od is renamed mp_hal_pin_open_drain, and mp_hal_pin_low
is mp_hal_pin_od_low.
2016-05-26 17:06:40 +01:00
Damien George
3e03d1b87e
stmhal: Support frozen packages using .mpy files.
...
See issue #1814 .
2016-05-23 13:29:56 +01:00
Damien George
87981fc517
stmhal/sdcard: Allow to do unaligned read-from/write-to SD card.
...
For example, the following code now works with a file on the SD card:
f = open('test', 'rb') # test must be 1024 bytes or more in size
f.seek(511)
f.read(513)
Also works for writing.
Fixes issue #1863 .
2016-05-13 14:45:40 +01:00
Damien George
1e388079f9
stmhal/i2c: Expose I2CHandle3 for use by custom C code.
...
If custom C code uses the I2C busses then it needs access to these
structures for i2c_init().
2016-05-13 11:23:32 +01:00
Damien George
1dc2862a83
stmhal/led: Allow LEDs to be in PWM mode with TIM1 and channels 1-4.
...
This allows PYBv3 to use PWM for LED(1) and LED(2).
2016-05-13 11:01:21 +01:00
Damien George
79a38a7a43
stmhal: For network drivers, convert to use MP_Exxx errno symbols.
2016-05-10 23:45:33 +01:00
Damien George
5ab98d5c41
stmhal: Convert to use internal errno symbols; enable uerrno module.
2016-05-10 23:30:39 +01:00
Tobias Badertscher
b924f649cd
stmhal: Fix clock configuration for STM32L476-discovery; also add I2C2.
2016-05-10 09:20:30 +01:00
Henrik Sölver
c4587e2426
stmhal/can: Allow to get existing CAN obj if constructed without args.
...
Initialisation of CAN objects should now behave as other peripheral
objects.
Fixes issue #2001 .
2016-05-08 12:47:33 +01:00
Damien George
88153dc56a
stmhal/sdcard: Fix initialisation of DMA TX so that writes work.
...
Addresses issue #2034 .
2016-05-06 10:53:25 +01:00
Dave Hylands
cbbeb786d7
stmhal/dma: Fix builds for boards with an F4 or F7 but no DAC.
2016-05-06 09:57:33 +01:00
Damien George
08d3d5d9ab
stmhal: For LIMIFROG board, add early-init function to get to DFU mode.
2016-05-05 17:00:30 +01:00
Tobias Badertscher
770f169e63
stmhal: Add board files for LIMIFROG board.
2016-05-05 17:00:16 +01:00
Damien George
05d1664981
stmhal/dma: Make DAC DMA descriptors conditional on having a DAC.
2016-05-05 15:34:01 +01:00
Tobias Badertscher
0f846e563c
stmhal: L4: Add support for machine.sleep on STM32L4 MCUs.
...
Also raise an exception for machine.freq and machine.deepsleep on this
MCU, since they are not yet implemented.
2016-05-05 15:28:55 +01:00
Tobias Badertscher
7441ba7749
stmhal: L4: Make CCM/DTCM RAM start-up conditional on MCU type.
2016-05-05 15:19:33 +01:00