- 27 Apr, 2018 3 commits
-
-
Damien George authored
This follows how all other boards are configured.
-
Ayke van Laethem authored
Clang defines __GNUC__ so we have to check for it specifically.
-
Damien George authored
After calling HAL_SYSTICK_Config the SysTick IRQ priority is set to 15, the lowest priority. This commit reconfigures the IRQ priority to the desired TICK_INT_PRIORITY value.
-
- 26 Apr, 2018 3 commits
-
-
Damien George authored
Thanks to @bboser for the initial idea and implementation.
-
Damien George authored
It's more efficient and improves accuracy.
-
Damien George authored
-
- 24 Apr, 2018 6 commits
-
-
Damien George authored
-
Damien George authored
-
Damien George authored
-
Damien George authored
i2c.c implements the legacy pyb.I2C class so rename the file to make this explicit, and also to make room for an improved I2C driver.
-
Damien George authored
-
Damien George authored
By default the stm module is included in the build, but a board can now define MICROPY_PY_STM to 0 to not include this module. This reduces the firmware by about 7k.
-
- 23 Apr, 2018 6 commits
-
-
Damien George authored
-
Damien George authored
-
iabdalkader authored
-
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 4 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.
-