- 03 Oct, 2016 2 commits
-
-
Damien George authored
-
Damien George authored
-
- 26 May, 2016 1 commit
-
-
Damien George authored
mp_hal_pin_config_od is renamed mp_hal_pin_open_drain, and mp_hal_pin_low is mp_hal_pin_od_low.
-
- 22 Apr, 2016 1 commit
-
-
Damien George authored
-
- 21 Apr, 2016 1 commit
-
-
Tobias Badertscher authored
__GPIOI_CLK_ENABLE is defined in hal/l4/inc/Legacy/stm32_hal_legacy.h as __HAL_RCC_GPIOI_CLK_ENABLE, and that latter macro is not defined anywhere else (because the L4 does not have port GPIOI). So the test for GPIOI is needed, along with the test for the CLK_ENABLE macro.
-
- 12 Apr, 2016 2 commits
-
-
Damien George authored
-
Damien George authored
-
- 11 Feb, 2016 1 commit
-
-
Dave Hylands authored
mp_hal_gpio_set_af will search for a given function and unit and set the alternate function to the alternate function index found.
-
- 31 Oct, 2015 1 commit
-
-
Damien George authored
py/mphal.h contains declarations for generic mp_hal_XXX functions, such as stdio and delay/ticks, which ports should provide definitions for. A port will also provide mphalport.h with further HAL declarations.
-
- 30 Oct, 2015 1 commit
-
-
Dave Hylands authored
-
- 27 Oct, 2015 1 commit
-
-
Paul Sokolovsky authored
These MPHAL functions are intended to replace previously used HAL_Delay(), HAL_GetTick() to provide better naming and MPHAL separation (they are fully equivalent otherwise). Also, refactor extmod/modlwip to use them.
-
- 07 Aug, 2015 1 commit
-
-
Dave Hylands authored
-
- 02 Aug, 2015 1 commit
-
-
Damien George authored
Extracted GPIO clock enable logic into mp_hal_gpio_clock_enable and called from anyplace which might need to use GPIO functions on ports other than A-D. Thanks to Dave Hylands for the patch.
-
- 29 Jul, 2015 2 commits
-
-
Dave Hylands authored
-
Dave Hylands authored
-
- 13 Feb, 2015 1 commit
-
-
Damien George authored
Now all ports can use pybstdio.c to provide sys.stdin/stdout/stderr, so long as they implement mp_hal_stdin_* and mp_hal_stdout_* functions.
-
- 27 Nov, 2014 1 commit
-
-
Damien George authored
This makes it easier to re-use readline.c and pyexec.c from stmhal in other ports.
-
- 23 Oct, 2014 1 commit
-
-
Damien George authored
Addresses issue #921.
-
- 08 Aug, 2014 1 commit
-
-
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()))) ```
-