aboutsummaryrefslogtreecommitdiff
path: root/stmhal/mphalport.c
AgeCommit message (Collapse)Author
2017-09-06ports: Make new ports/ sub-directory and move all ports there.Damien George
This is to keep the top-level directory clean, to make it clear what is core and what is a port, and to allow the repository to grow with new ports in a sustainable way.
2017-03-10stmhal/mphalport: Get ticks_cpu() working on F7 MCUs.Damien George
2017-02-15stmhal: Use generic interrupt char code.Damien George
2017-02-06stmhal: Use MICROPY_EVENT_POLL_HOOK instead of __WFI where appropriate.Damien George
2017-01-12stmhal: Support PortG on STM32L476 and STM32L486.Dave Hylands
2016-11-21stmhal: Updates to get F411 MCUs compiling with latest ST HAL.Damien George
2016-11-11stmhal: Rename mp_hal_pin_set_af to _config_alt, to simplify alt config.Damien George
This way the caller doesn't need to initialise a big GPIO_InitTypeDef struct, and HAL_GPIO_Init is no longer called.
2016-10-18stmhal: Refactor pin usage to use mp_hal_pin API.Damien George
2016-10-18stmhal/modutime: Refactor to use extmod's version of ticks_cpu.Damien George
2016-10-07stmhal: Use mp_raise_OSError helper function.Damien George
2016-05-10stmhal: Convert to use internal errno symbols; enable uerrno module.Damien George
2016-04-21stmhal: L4: Modify mphalport to support L4 MCU.Tobias Badertscher
__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.
2016-04-12stmhal: Implement basic C-level pin HAL.Damien George
2016-02-10stmhal: Add a function for setting the pin alternate functionDave Hylands
mp_hal_gpio_set_af will search for a given function and unit and set the alternate function to the alternate function index found.
2015-10-31all: Add py/mphal.h and use it in all ports.Damien George
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.