Damien George
62fe013a5f
stm32/machine_adc: Improve operation of ADC for H7, L4 and WB MCUs.
2019-09-06 17:55:12 +10:00
Jim Mussared
1f52a6f8e4
nrf/boards: Add Particle Xenon board configuration (an nRF52840).
2019-09-05 22:56:05 +10:00
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
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
060209240b
esp8266: Put new profile code in iROM.
2019-08-30 16:49:02 +10:00
Milan Rossa
310b3d1b81
py: Integrate sys.settrace feature into the VM and runtime.
...
This commit adds support for sys.settrace, allowing to install Python
handlers to trace execution of Python code. The interface follows CPython
as closely as possible. The feature is disabled by default and can be
enabled via MICROPY_PY_SYS_SETTRACE.
2019-08-30 16:44:12 +10:00
Damien George
400a128e11
stm32/stm32_it: Include correct EXTI interrupt handlers for L0 MCUs.
2019-08-29 12:00:18 +10:00
Damien George
1fe1ff935b
nrf: Clean up source by removing tabs, trailing spaces, non-ASCII chars.
2019-08-28 13:34:45 +10:00
Eric Poulsen
5635b96461
esp32: Add 'config' function to network.LAN, reusing network.WLAN.
2019-08-28 13:11:48 +10:00
iabdalkader
0bec07f32b
stm32/extint: Fix EXTI mapping of PVD and RTC events for H7 MCUs.
2019-08-28 12:53:42 +10:00
Damien George
af20c2ead3
py: Add global default_emit_opt variable to make emit kind persistent.
...
mp_compile no longer takes an emit_opt argument, rather this setting is now
provided by the global default_emit_opt variable.
Now, when -X emit=native is passed as a command-line option, the emitter
will be set for all compiled modules (included imports), not just the
top-level script.
In the future there could be a way to also set this variable from a script.
Fixes issue #4267 .
2019-08-28 12:47:58 +10:00
Damien George
15b36aa0af
unix/main: Only accept full emit cmd-line options if native enabled.
2019-08-28 12:47:58 +10:00