Daily Archive: July 26, 2015

HAL library 04- EXTI for STM32Fxxx 9

HAL library 04- EXTI for STM32Fxxx

EXTI library is used to set GPIO pin as external interrupt. It is designed to easily enable/disable interrupt and handle irq requests. If you don’t know how EXTI works on STM32F4 or STM32F7 lines, you should take a look here. Library Read more about new HAL libraries Features Allows up to 16 external interrupts at a time Allows to setup rising or falling edge for pin Allows to disable interrupt Single function for interrupt handling Works for STM32F0, STM32F4 and...

HAL library 3- DELAY for STM32Fxxx 17

HAL library 3- DELAY for STM32Fxxx

Delay functions are needed in your program, no matter how optimized and fast program you wanna do. Delay functions I’ve updated my delay library to support milliseconds and microseconds delays. Milliseconds based delay is done using systick timer which makes interrupts every 1ms generated by HAL library. For microseconds based delay, DWT cycle counter is used to get maximal optimized delay. DWT unit is for F4 and F7 only, F0 series does not have DWT, because of Cortex-M0. Software timers...

HAL library 2- LEDS and BUTTON for STM32 boards 3

HAL library 2- LEDS and BUTTON for STM32 boards

Next library in series in disco library for controlling leds and reading button state on various STM32F0, STM32F4 and STM32F7 boards. Supported boards: STM32F401-Discovery STM32F4-Discovery STM32F411-Discovery STM32F429-Discovery STM32F439-EVAL, STM32F401-Nucleo STM32F411-Nucleo STM32F446-Nucleo STM32F091-Nucleo STM32F7-Discovery Library Read more about new HAL libraries Features Set LED state Read LED state Read button state Dependencies HAL TM STM32Fxxx HAL defines.h Library required settings In order to tell which board you use, you have to set some defines for it. These defines are also used in other...