- 23 Apr, 2018 3 commits
-
-
iabdalkader authored
-
Damien George authored
In particular don't issue a warning if the passed-in constraints are actually supported because they are the default values.
-
Damien George authored
Uses new pypi.org URL, and now creates a socket with the address parameters returned by getaddrinfo().
-
- 20 Apr, 2018 4 commits
-
-
Shanee Vanstone authored
-
Peter D. Gray authored
-
Damien George authored
-
Peter Hinch authored
-
- 11 Apr, 2018 14 commits
-
-
Damien George authored
-
Damien George authored
To change the default label a board should define: #define MICROPY_HW_FLASH_FS_LABEL "label"
-
Damien George authored
To use HSE bypass mode the board should define: #define MICROPY_HW_CLK_USE_BYPASS (1) If this is not defined, or is defined to 0, then HSE oscillator mode is used.
-
Damien George authored
-
Damien George authored
This patch allows a given board to configure which pins are used for the CAN peripherals, in a similar way to all the other bus peripherals (I2C, UART, SPI). To enable CAN on a board the mpconfigboard.h file should define (for example): #define MICROPY_HW_CAN1_TX (pin_B9) #define MICROPY_HW_CAN1_RX (pin_B8) #define MICROPY_HW_CAN2_TX (pin_B13) #define MICROPY_HW_CAN2_RX (pin_B12) And the board config file should no longer define MICROPY_HW_ENABLE_CAN.
-
Damien George authored
The individual union members (like SPI, I2C) are never used, only the generic "reg" entry is. And the union names can clash with macro definitions in the HAL so better to remove them.
-
Damien George authored
The only configuration that changes with this patch is that on L4 MCUs the clock prescaler changed from ADC_CLOCK_ASYNC_DIV2 to ADC_CLOCK_ASYNC_DIV1 for the ADCAll object. This should be ok.
-
Damien George authored
A value of DISABLE for EOCSelection is invalid. This would have been interpreted instead as ADC_EOC_SEQ_CONV, but really it should be ADC_EOC_SINGLE_CONV for the uses in this code. So this has been fixed. ExternalTrigConv should be ADC_SOFTWARE_START because all ADC conversions are started by software. This is now fixed.
-
Damien George authored
Saves 200 bytes of code space.
-
Damien George authored
This can be used to select the output buffer behaviour of the DAC. The default values are chosen to retain backwards compatibility with existing behaviour. Thanks to @peterhinch for the initial idea to add this feature.
-
Damien George authored
-
Peter Hinch authored
-
Damien George authored
Reading into a bytearray will truncate values to 0xff so the assertions checking read_timed() would previously always succeed. Thanks to @peterhinch for finding this problem and providing the solution.
-
Damien George authored
-
- 10 Apr, 2018 13 commits
-
-
Peter D. Gray authored
-
Damien George authored
This event queue has UART events posted to it and they need to be drained for it to operate without error. The queue is not used by the uPy UART class so it should be removed to prevent the IDF emitting errors. Fixes #3704.
-
Damien George authored
Instead of emitnative.c having configuration code for each supported architecture, and then compiling this file multiple times with different macros defined, this patch adds a file per architecture with the necessary code to configure the native emitter. These files then #include the emitnative.c file. This simplifies emitnative.c (which is already very large), and simplifies the build system because emitnative.c no longer needs special handling for compilation and qstr extraction.
-
Damien George authored
Keeping all the stress related tests in one place makes it easier to stress-test a given port, and to also not run such tests on ports that can't handle them.
-
Damien George authored
-
Damien George authored
-
Damien George authored
-
iabdalkader authored
-
iabdalkader authored
Includes a fix for H7 DAC DMA requests.
-
Jeff Epler authored
This turns a hard crash in a recursive generator into a 'maximum recursion depth exceeded' exception.
-
armink authored
The 2nd and 3rd args of the ternary operator are treated like they are in the same expression and must have similar types. void is not compatible with int so that's why the compiler is complaining.
-
Damien George authored
This patch moves the implementation of stream closure from a dedicated method to the ioctl of the stream protocol, for each type that implements closing. The benefits of this are: 1. Rounds out the stream ioctl function, which already includes flush, seek and poll (among other things). 2. Makes calling mp_stream_close() on an object slightly more efficient because it now no longer needs to lookup the close method and call it, rather it just delegates straight to the ioctl function (if it exists). 3. Reduces code size and allows future types that implement the stream protocol to be smaller because they don't need a dedicated close method. Code size reduction is around 200 bytes smaller for x86 archs and around 30 bytes smaller for the bare-metal archs.
-
T S authored
-
- 05 Apr, 2018 1 commit
-
-
Jeff Epler authored
-
- 04 Apr, 2018 5 commits
-
-
Damien George authored
-
Damien George authored
-
Damien George authored
The LHS passed to mp_obj_int_binary_op() will always be an integer, either a small int or a big int, so the test for this type doesn't need to include an "other, unsupported type" case.
-
Damien George authored
-
Damien George authored
The string "Q+?" is special in that it hashes to zero with the djb2 algorithm (among other strings), and a zero hash should be incremented to a hash of 1.
-