Tagged: hardware abstraction layer

FFT result of matlab generated signal 2

HAL Library 14- Fast Fourier Transform for STM32Fxxx

Here is an example of Fast Fourier Transform on STM32F4xx devices. This HAL library works for F4 and F7 series! That was the main reason I decided to make a library for FFT on STM32F4xx. To use this library, some third-party libraries are also required. All these required files can be found in STM32F4xx Standard peripheral drivers and DSP instructions provided from ST.com from their website. Now is version 1.5.1 of these drivers and also .lib file is included for ARM...

HAL Library 13- Buttons for STM32Fxxx 1

HAL Library 13- Buttons for STM32Fxxx

New port. Buttons library for HAL based libraries. It can handle buttons, connected to your STM32Fxxx devices. It supports basically unlimited number of buttons with different triggering. Currently, callback functions can be called on these events: Button on pressed: Called directly when button is pressed Button normal press: Called when button is released after specific amount of time Button long press: Called when button is pressed for specific “long” amount of time It uses malloc() to allocate memory, so you...

Single LCD library for different boards 41

HAL library 12- LCD for STM32Fxxx

LCD is first big library provided from me. It’s the same as SDRAM, it works on STM32F429-Discovery, STM32F439-EVAL and STM32F7-Discovery boards. With one library you can control 3 boards just by selecting proper define in your target. Library can be extended to other boards. Library requires FMC peripheral for SDRAM for display memory, DMA2D for fastest graphic accelerations and LTDC for transferring layers to LCD. Library Read more about new HAL libraries Features Supports STM32F429-Discovery board Supports STM32F439-EVAL board Supports...

HAL library 10- CRC for STM32Fxxx 1

HAL library 10- CRC for STM32Fxxx

STM32Fxxx devices have CRC (Cyclic Redundancy Check) module inside. This is small and useful unit when working with communications. It might become very useful to verify if your packet of data is correct. STM32Fxxx devices uses “Ethernet” CRC with polynomial below: X32 + X26 + X23 + X22 + X16 + X12 + X11 + X10 +X8 + X7 + X5 + X4 + X2 + X +1 It is quite ugly 😀 Well, using this module is very easy....

HAL library 09- GENERAL for STM32Fxxx 3

HAL library 09- GENERAL for STM32Fxxx

With this name I mean that in this library, a lot of different stuff, maybe unrelated between, but very useful things will be implemented. It allows you to make software reset, get reset source, disable or enable global interrupts (NVIC) and more. It will be updated frequently but for now it’s just a start to use it in your projects. Library Read more about new HAL libraries Features Support for software reset with callback Get reset source, what resets your...

HAL library 08- SPI for STM32Fxxx 32

HAL library 08- SPI for STM32Fxxx

Next library in ported libs is SPI for HAL based drivers for STM32F4xx and STM32F7xx based devices. Library Read more about new HAL libraries Features Operate with up to 6 SPI peripherals Send single or multiple bytes at time Automatic SPI prescaler selection based on maximum clock selected for your external device Software based Chip Select pin Support for custom GPIO pins combination for SPI