- Aug 14, 2016
-
-
Damien George authored
This patch does further refactoring using the new mp_raise_TypeError and mp_raise_ValueError functions.
-
Damien George authored
-
Damien George authored
Only tuple, namedtuple and attrtuple use the tuple_cmp_helper function, and they all have getiter=mp_obj_tuple_getiter, so the check here is only to ensure that the self object is consistent. Hence use mp_check_self.
-
- Aug 13, 2016
-
-
Paul Sokolovsky authored
-
- Aug 12, 2016
-
-
Paul Sokolovsky authored
To use the actual current name.
-
Paul Sokolovsky authored
Checks for number of args removes where guaranteed by function descriptor, self checking is replaced with mp_check_self(). In few cases, exception is raised instead of assert.
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
Indended to replace raw asserts in bunch of files. Expands to empty if MICROPY_BUILTIN_METHOD_CHECK_SELF_ARG is defined, otehrwise by default still to assert, though a particular port may define it to something else.
-
Paul Sokolovsky authored
Introduce mp_raise_msg(), mp_raise_ValueError(), mp_raise_TypeError() instead of previous pattern nlr_raise(mp_obj_new_exception_msg(...)). Save few bytes on each call, which are many.
-
- Aug 11, 2016
-
-
Tobias Badertscher authored
Fixing Issue #2243. Main problems were: - HAL_ADC_GetState(adcHandle) may return other bits set (not only HAL_ADC_STATE_EOC_REG) when called - so I AND-ed it out as proposed by mattbrejza in Issue #2243. - ADC Pin has to be configured as GPIO_MODE_ANALOG_ADC_CONTROL not only GPIO_MODE_ANALOG. - Resolved ADC resolution L4 specific (Use L4 define ADC_RESOLUTION_12B). - Changed setting of Init.EOCSelection toADC_EOC_SINGLE_CONV for L4. - Added call to ADC_MultiModeTypeDef as this is done on a STM32Cube generated project too. - Clean up: Configuration of ADC is done only in ONE function not the same is done in two functions. Test is done on PA5 pin of STM32L4Discovery-Kit which is connected to the DOWN button. Thanks to mattbrejza for discovering the bug.
-
Damien George authored
This patch introduces proper ADC Pin definitions in stm32l476_af.csv. Originally provided by @tobbad.
-
- Aug 10, 2016
-
-
ilovezfs authored
Fixes build errors such as "../lib/utils/printf.c:43:5: error: expected parameter declarator"
-
Paul Sokolovsky authored
It used a standard BootROM programming algo and may be useful as a fallback.
-
Damien George authored
The tool now generates code for freezing floats in obj-repr A, B or C, with the specific representation detected at compile time using macros.
-
Damien George authored
-
Damien George authored
Pin(16) now works as an input.
-
- Aug 09, 2016
-
-
Paul Sokolovsky authored
-
Damien George authored
-
Paul Sokolovsky authored
To accommodate growing firmware.
-
Paul Sokolovsky authored
Of them, 0x87000 is irom0 segment. This is required to ship increasing number of modules and examples developed in teh course of ESP8266 port project.
-
- Aug 08, 2016
-
-
Paul Sokolovsky authored
This both good default for 4096 and makes less chance to see overflow page issues.
-
Paul Sokolovsky authored
-
- Aug 07, 2016
-
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
Similar to existing MP_NOINLINE.
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
Skip tests if not available.
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
Tries to summarize most of the issues we've seen so far.
-
Paul Sokolovsky authored
People tend to skip introductions (everyone knows what esp8266 is, right?), so try to do A/B testing with a title inviting to read it.
-
Paul Sokolovsky authored
Not all NodeMCU boards require it.
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
Default is disabled, enabled for unix port. Saves 600 bytes on x86.
-
- Aug 06, 2016
-
-
Paul Sokolovsky authored
This includes file and socket objects, backed by Unix file descriptor. This improves compatibility with stmhal's uselect (and convenience of use), though not completely: return value from poll.poll() is still raw file descriptor.
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-