Jim Mussared
d36fc4682e
nrf/Makefile: Add support for flashing with a Black Magic Probe.
...
Also rename "flash" target to "deploy" to match other ports (but provide
"flash" as an alias for backwards compatibility).
2019-09-05 22:56:05 +10:00
Jim Mussared
353ed7705f
nrf/boards/make-pins.py: Fix gen of board pins to use correct index.
...
It was previously not taking into account that the list of pins was sparse,
so using the wrong index. The boards/X/pins.csv was generating the wrong
data for machine.Pin.board.
As part of this fix rename the variables to make it more clear what the
list contains (only board pins).
2019-09-05 22:52:24 +10:00
Damien George
9e90e2528b
nrf/machine/adc: Fix mapping of ADC channel to pin.
2019-09-05 22:13:04 +10:00
Damien George
c7fb93b844
nrf/machine/adc: Allow to pass a Pin object in to ADC constructor.
2019-09-05 22:13:04 +10:00
Damien George
b766a6971e
nrf: Add ADC channel mapping to alt function table.
2019-09-05 22:13:04 +10:00
Damien George
9cad134a2f
nrf/machine/adc: Add ADC.read_u16() method.
2019-09-05 22:13:04 +10:00
Damien George
983283a8cd
esp32/machine_adc: Add ADC.read_u16() method.
2019-09-05 22:13:04 +10:00
Damien George
0e72cc9029
esp8266/machine_adc: Add read_u16 method and refactor.
2019-09-05 22:13:04 +10:00
Damien George
625609a737
esp8266/machine_adc: Rename pyb_adc_* to machine_adc_*.
2019-09-04 16:17:10 +10:00
Damien George
ebacdfabb6
stm32/machine_adc: Add machine.ADC class.
2019-09-04 15:40:24 +10:00
Damien George
e509da22df
docs/library: Specify new machine.ADC class.
...
This initial specification is only for the ADC constructor and read_u16()
method.
2019-09-04 15:35:09 +10:00
Damien George
8a237237a3
docs: Rename machine.ADC docs to machine.ADCWiPy.
...
To signify that this ADC documentation is specific to the WiPy, and to make
way for a standardised ADC documentation.
2019-09-04 15:05:03 +10:00
Jim Mussared
06661890de
stm32/powerctrl: Fix machine.bootloader() for L0 MCUs.
2019-09-04 11:36:53 +10:00
Jim Mussared
8fc00928ea
stm32/dma: Fix DMA config for L0 MCUs.
2019-09-03 23:33:09 +10:00
stijn
4beb6c21ca
windows/msvc: Treat compiler warnings as errors.
...
This is consistent with the other ports and helps catching problems early.
2019-09-03 23:27:06 +10:00
Jim Mussared
74fe841449
docs/library/pyb.DAC.rst: Correct frequency for triangle mode output.
...
Also correct comments in related code.
2019-09-03 23:25:45 +10:00
Jim Mussared
50482cdc0c
esp32/Makefile: Fix subst->patsubst in ESPIDF_BOOTLOADER_SUPPORT_O.
2019-09-03 23:21:50 +10:00
Damien George
b29fae0c56
py/bc: Fix size calculation of UNWIND_JUMP opcode in mp_opcode_format.
...
Prior to this patch mp_opcode_format would calculate the incorrect size of
the MP_BC_UNWIND_JUMP opcode, missing the additional byte. But, because
opcodes below 0x10 are unused and treated as bytes in the .mpy load/save
and freezing code, this bug did not show any symptoms, since nested unwind
jumps would rarely (if ever) reach a depth of 16 (so the extra byte of this
opcode would be between 0x01 and 0x0f and be correctly loaded/saved/frozen
simply as an undefined opcode).
This patch fixes this bug by correctly accounting for the additional byte.
.
2019-09-02 13:30:16 +10:00
Damien George
c348e79187
py/binary: Change mp_uint_t to size_t for index, size, align args.
...
Reduces code size for nan-box builds, otherwise changes nothing.
2019-09-02 13:14:27 +10:00
Damien George
24c3e9b283
py/modstruct: Fix struct.pack_into with unaligned offset of native type.
...
Following the same fix for unpack.
2019-09-02 13:14:16 +10:00
Tom McDermott
1022f9cc35
py/modstruct: Fix struct.unpack with unaligned offset of native type.
...
With this patch alignment is done relative to the start of the buffer that
is being unpacked, not the raw pointer value, as per CPython.
Fixes issue #3314 .
2019-09-02 13:10:55 +10:00
Jeff Epler
12f13ee634
py/objtuple: Allow compatible subclasses of tuple in mp_obj_tuple_get.
...
As part of this patch a private macro mp_obj_is_tuple_compatible is
introduced to encapsulate the check, which is used in two locations.
Fixes #5005 .
2019-08-31 00:14:11 +10:00
Damien George
0b85b5b8b3
travis: Add new job to test unix port with sys.settrace enabled.
2019-08-30 16:49:13 +10:00
Damien George
4691b43c8a
tools/mpy-tool.py: Add initial support for frozen with settrace.
2019-08-30 16:49:13 +10:00
Damien George
060209240b
esp8266: Put new profile code in iROM.
2019-08-30 16:49:02 +10:00