- 29 Aug, 2014 1 commit
-
-
Damien George authored
Top-level lib directory is for standard C libraries that we want to provide our own versions of (for efficiency and stand-alone reasons). It currently has libm in it for math functions. Also add atanf and atan2f, which addresses issue #837.
-
- 26 Aug, 2014 5 commits
-
-
Damien George authored
-
Damien George authored
-
David Siorpaes authored
-
Damien George authored
Thanks to Dave Hylands for this patch.
-
Damien George authored
Addresses issue #825.
-
- 25 Aug, 2014 6 commits
-
-
Dave Hylands authored
-
Damien George authored
SysTick IRQ now increases millisecond counter directly (ie without calling HAL_IncTick). Provide our own version of HAL_Delay that does a wfi while waiting. This more than halves power consumption when running a loop containing a pyb.delay call. It used to be like this, but new version of HAL library regressed this feature.
-
Damien George authored
Also some whitespace cleanup.
-
Dave Hylands authored
I also removed trailing spaces from modpyb.c which affected a couple of lines technically not part of this patch. Tested using: https://github.com/dhylands/upy-examples/blob/master/micros_test.py which eventually fails due to wraparound issues (I could fix the test to compensate but didn't bother)
-
Damien George authored
These functions are generally 1 machine instruction, and are used in critical code, so makes sense to have them inline. Also leave these functions uninverted (ie 0 means enable, 1 means disable) and provide macro constants if you really need to distinguish the states. This makes for smaller code as well (combined with inlining). Applied to teensy port as well.
-
Dave Hylands authored
Factored irq functions into a separate file.
-
- 24 Aug, 2014 5 commits
-
-
Damien George authored
-
Dave Hylands authored
Added some functions to Pin class to query mode, pull, and af
-
Damien George authored
Also added test for modtime.
-
Dave Hylands authored
Now you can use time.localtime on the timestamps presented by os.stat
-
Damien George authored
Because (for Thumb) a function pointer has the LSB set, pointers to dynamic functions in RAM (eg native, viper or asm functions) were not being traced by the GC. This patch is a comprehensive fix for this. Addresses issue #820.
-
- 16 Aug, 2014 4 commits
-
-
Dave Hylands authored
This basically shrinks the remaining size of flash in the portion that goes after the internal flash drive.
-
Damien George authored
It's still "safe" because no scripts are run. Remove the SD card if you want to access the internal flash filesystem. Addresses issue #616. Also: remove obsolete pyb.source_dir setting, and reset pyb.main and pyb.usb_mode settings on soft-reset.
-
Damien George authored
-
Damien George authored
Saves over 35k ROM due to elimination of unused HAL functions. All tests pass. Addresses issue #702.
-
- 13 Aug, 2014 1 commit
-
-
Damien George authored
-
- 12 Aug, 2014 2 commits
-
-
Damien George authored
-
Damien George authored
Also fixes compiler error in moductypes when compiled without debugging. Addresses issue #778.
-
- 10 Aug, 2014 3 commits
-
-
Damien George authored
Thanks to David Siorpaes.
-
Damien George authored
-
Damien George authored
-
- 09 Aug, 2014 2 commits
-
-
Damien George authored
-
Damien George authored
-
- 08 Aug, 2014 5 commits
-
-
Damien George authored
-
Damien George authored
Trying to move towards consistency, let's use _ exclusively in names of source files (eg .c, .h, .csv).
-
Damien George authored
-
Damien George authored
-
Dave Hylands authored
Converts generted pins to use qstrs instead of string pointers. This patch also adds the following functions: pyb.Pin.names() pyb.Pin.af_list() pyb.Pin.gpio() dir(pyb.Pin.board) and dir(pyb.Pin.cpu) also produce useful results. pyb.Pin now takes kw args. pyb.Pin.__str__ now prints more useful information about the pin configuration. I found the following functions in my boot.py to be useful: ```python def pins(): for pin_name in dir(pyb.Pin.board): pin = pyb.Pin(pin_name) print('{:10s} {:s}'.format(pin_name, str(pin))) def af(): for pin_name in dir(pyb.Pin.board): pin = pyb.Pin(pin_name) print('{:10s} {:s}'.format(pin_name, str(pin.af_list()))) ```
-
- 06 Aug, 2014 4 commits
-
-
Damien George authored
This patch updates ST's HAL to the latest version, V1.3.0, dated 19 June 2014. Files were copied verbatim from the ST package. Only change was to suppress compiler warning of unused variables in 4 places. A lot of the changes from ST are cosmetic: comments and white space. Some small code changes here and there, and addition of F411 header. Main code change is how SysTick interrupt is set: it now has a configuration variable to set the priority, so we no longer need to work around this (originall in system_stm32f4xx.c).
-
Damien George authored
Addresses issue #780.
-
Damien George authored
Specifically, teensy port does not have these macros defined.
-
Damien George authored
-
- 05 Aug, 2014 2 commits
-
-
Damien George authored
-
Damien George authored
Addresses issue #790.
-