【干货】老外的GitHub整理的stm32f4驱动库

发布者:脑电狂徒最新更新时间:2019-12-14 来源: eefocus关键字:GitHub  stm32f4  驱动库 手机看文章 扫描二维码
随时随地手机看文章

昨晚在github发现了一个老外自己整理的封装库,有很多,比如一些通讯啊啥的,一些显示屏驱动等等


目录

STM32F4


Libraries and projects


Here are listed all libraries for STM32F4 devices.Libraries are designed to work with STM32F4xx series of MCU. Every project hereis created with Keil uVision, but tested with GCC compiler too (Coocox). Eachproject includes 4 targets:


STM32F429-Discovery board (STM32F429ZI, 180MHz)


STM32F4-Discovery board (STM32F407VG, 168MHz)


STM32F401-Discovery (STM32F401, 84MHz)


STM32F411C-Discovery (STM32F411, 100MHz)


Nucleo F411-RE (STM32F411RE, 100MHz)


Nucleo F401-RE (STM32F401RE, 84MHz)


STM32F446xx (180MHz)


STM32439-Eval (STM32F439NI, 180MHz)


When you download repository and open project, you haveto set correct your target, for device you use. If you use other device in yourproject, then set your project and copy settings there from target options.


More information below http://stm32f4-discovery.com


First time with Discovery board? http://stm32f4-discovery.com


Current librarires:


All libraries listed at one place for easy editing them from one     place and use them for all projects


Two default projects are included


Default Keil project, with CMSIS files v.1.5.0      included


Default Keil project, with CMSIS files v.1.5.0      included and clock for STM32F429-Discovery/STM32F446 slowed down to      168MHz and for Nucleo F411 down to 96MHz for USB communication


LED_BUTTON - Project example for STM32F4/29 Discovery


DELAY - Delay library for STM32F4/29 


 USART - USART library for     STM32F4/29 


SPI - SPI library for STM32F4/29 


ADC - ADC library for STM32F4/29


DAC - DAC library for STM32F4/29 


ILI9341 LCD - STM32F429 Discovery ILI9341 LCD library


I2C - I2C library for STM32F4/29


STMPE811 touch driver for STM32F4/29 Discovery board 


ILI9341 Button - Button library for ILI9341 LCD and STMPE811 Touch     driver on STM32F429 


ONEWIRE - OneWire library for STM32F4/29


DS18B20 - DS18B20 OneWire temperature sensor library for STM32F4/29


SDRAM - ISSI 8MByte SDRAM on STM32F429 Discovery board 


DS1307 - DS1307 RTC modeule for STM32F429 Discovery 


HD44780 - HD44780 Alpha numeric LCD driver for STM32F429 discovery


NRF24L01+ - NRF24L01+ 2.4 GHz transceiver library


ILI8341 LTDC - ILI9341 LCD with LTDC hardware only for STM32F429


Internal RTC - Library for internal RTC on STM32F4xx devices 


Independent watchdog - Library for watchdog on STM32F4xx     devices 


FATFS - Read SDcard with STM32F4xx using SDIO or SPI     communication 


RNG - Use of True random number generator peripheral on STM32F4xx     devices 


MFRC522 - Read RFID Cards with STM32F4xx devices 


USB VCP - Use STM32F4xx as USB VCP device (Virtual COM Port) 


AM2301 - AM2301 (DHT21) temperature and humidity sensor 


ROTARY ENCODER - Connect Rotary Encoder to STM32F4xx device 


GPS - Read GPS data on STM32F4xx devices


L3GD20 - Measure rotation of all 3 axis with L3GD20 gyro sensor 


USB MSC HOST - Read USB flash drive with STM32F4xx 


HC-SR04 - Measure distance with ultrasonic sensor on STM32F4xx 


USB HID HOST - Read USB mouse and keyboard on STM32F4xx


4x4 KEYPAD - Read matrix keypad up to 4x4 with STM32F4xx


PWM - Use PWM on all possible timers for STM32F4xx device


USB HID Device - Turn STM32F4 into USB HID Device 


LIS302DL/LIS3DSH - Accelerometers on STM32F4-Discovery board. Also     can be used with any STM32F4 device


DAC SIGNAL - Output predefined signals with STM32F4 using DAC, DMA     and TIM 


BMP180 - Read atmosferic pressure on STM32F4 device


EXTI - Use external interrupts with STM32F4


LOW POWER - Power consumption modes for STM32F4 


MCO OUTPUT - Output different clocks from STM32F4 


STDIO - Use printf and fprintf/vfprintf on STM32F4 


SERVO - Control RC servo with STM32F4 


MPU-6050 - Read accelerometer and gyroscope data with STM32F4


Identification - Read identification bytes and 96-bits long UNIQUE ID     from STM32F4 


BKPSRAM - Interface backup SRAM on STM32F4 


SWO DEBUG - Debug STM32F4 using SWO output 


CRC - STM32F4 CRC Hardware module


PWM IN - Measure input PWM signal on STM32F4 


OTP - One-time programmable memory on STM32F4 


STemWin - STemWin implementation for STM32F429-Discovery


DMA2D GRAPHIC- Chrom-ART Accelerator on STM32F429-Discovery     board 


ETHERNET - Connect ethernet to STM32F4xx


GPIO - GPIO pins on STM32F4 


GENERAL - General library for STM32F4 


USART DMA - Extend USART with DMA TX functionality


SPI DMA - Extend SPI with DMA functionality


BUTTON - Use buttons with STM32F4xx 


STRING - Dynamic string allocation for STM32F4xx 


RCC - Dynamic PLL settings for STM32F4xx 


CPU LOAD - CPU load monitoring for STM32F4xx


SSD1306 - Use OLED LCD with STM32F4


FFT - FFT Library for STM32F4xx devices 


DMA - DMA library for STM32F4xx


PCD8544 LCD (Nokia 5110/3310) - Library for LCD


来看看真正的东西吧~~~激动

随意show两个代码:

(IIC)

(GPIO)


老外写的很是完善,英文的注释就连小编这种英语渣渣都能简单易懂,能直接用,不用怎么配置了,当然可以改装成为我们自己习惯的库。


虽然st的库很完善,但是以后我们写代码都可以有自己的库,拿来即用,很是方便。

关键字:GitHub  stm32f4  驱动库 引用地址:【干货】老外的GitHub整理的stm32f4驱动库

上一篇:基于Linux的kfifo移植到STM32(支持os的互斥访问)
下一篇:简析stm32启动过程

推荐阅读最新更新时间:2024-11-14 00:43

STM32F4时钟配置
看了下时钟树按照http://blog.csdn.net/louyangyang91/article/details/51374924这个博文配置了,结果发现UART波特率不对,但是MOC1\2都是正常输出(168M/5分频输出),蒙了很久才发现 USART_Init(USART1, &USART_InitStructure); 这个函数内部会调用RCC_GetClocksFreq(&RCC_ClocksStatus);这个函数来得到PCLK1\PCLK2等系统时钟,进入这个函数看其内部发现它调用了一个HSE_VALUE的宏定义,继续定位发现居然是 #if !defined (HSE_VALUE) #define HSE_VA
[单片机]
STM32F4——GPIO基本应用及复用
一、IO基本结构: 针对STM32F407有7组IO,分别为GPIOA~GPIOG,每组IO有16个IO口,则有112个IO口。其中IO口的基本结构如下: 二、工作方式: STM32F4工作模式有8种,其中4中输入模式,4种输出模式,分别为:输入浮空、输入上拉、输入下拉、模拟模式、开漏输出、开漏复用输出、推挽输出、推挽复用输出。 1、输入模式: 在输入浮空模式下,电路既不上拉也不下拉,通过施密特触发器送到输入数据寄存器在送入到CPU。输入上拉和下拉模式分别是在电路中经过上拉和下拉后通过施密特触发器送入的CPU,模拟模式下,施密特触发器关闭后信号直接通过模拟通道至片上外设。 2、输出模式:
[单片机]
基于LinkedInSTM32F4时钟系统初始化设置
LinkedInSTM32F4 时钟系统初始化是在system_stm32f4xx.c中的 SystemInit()函数中完成的。 对于系统时钟关键寄存器设置主要是在 SystemInit 函数中调用 SetSysClock()函数来设置的。我们可以先看看 SystemInit ()函数体: void SystemInit(void) { #if (__FPU_PRESENT == 1) && (__FPU_USED == 1) SCB-》CPACR |= ((3UL 《《 10*2)|(3UL 《《 11*2)); #endif RCC-》CR |= (uint32_t)0x00000001; RCC-》CFGR = 0x
[单片机]
基于LinkedIn<font color='red'>STM32F4</font>时钟系统初始化设置
STM32F4时钟配置的操作步骤
本文将介绍STM32F4时钟配置的操作步骤、并对比时钟配置前后LED外设闪烁的快慢以及对应代码的讲解 一、使用默认时钟配置去执行代码、获取LED闪烁的周期 如下图所示我们默认使用的是HSI(内部高速时钟)且不进行任何配置 最后我们系统时钟、以及外设获得的时钟频率为16MHz 主函数中的代码如下: int main(void) { /* USER CODE BEGIN 1 */ /* USER CODE END 1 */ /* MCU Configuration--------------------------------------------------------*/ /* Reset o
[单片机]
<font color='red'>STM32F4</font>时钟配置的操作步骤
STM32F103和STM32F401的ADC多通道采集DMA输出
使用STM32F103和STM32F401CCU6对双轴摇杆(两个电压通道)进行ADC采样并通过DMA读取数值 STM32 ADC(模数转换)工作模式 单次转换模式 In Single Conversion mode, the ADC does one conversion. This mode is started either by setting the ADON bit in the ADC_CR2 register (for a regular channel only) or by an external trigger (for a regular or injected channel), while the
[单片机]
STM32F4工程模板建立与时钟的设置方法
当你使用ST官网的STD标准库或者HAL库的时候,首先解决的就是时钟的配置问题,时钟就像一个人的心脏,心脏不好更别谈其他的工作了,闲话少说,关于STM32的时钟设置我们先从搭建Keil的工程模板开始。我们这次使用的是最新版的F4的STM32F4xx_StdPeriph_Driver库,版本1.8。具体请继续往下看。 1. 新建立Keil工程命名STM32F4_STD_Template,在Select Device for Target 对话框中,选择STM32F427VITx,这里一定要根据自己使用的芯片具体进行选择,当然官网的外设库也要与之匹配才行,如果没有安装支持包请转至: http://www.keil.com/dd2/pa
[单片机]
STM32F401利用CubeMX实现按键中断翻转LED
硬件平台:NucleoF401RE 软件环境:CubeMX+Kiel5 硬件说明:参考Nucleo板子原理图,用户按键链接IO为PC13,LED链接IO为PA5; 如上搞清楚资源链接关系,就可以利用CubeMX进行初始化代码生成配置,比较简单。需要注意的是在中断嵌套部分需要设置外部中断10-15LINES; 利用CubeMX工具生产代码,下面对部分代码进行说明。 CubeMX生成初始化代码配置后,用户字需要添加自己业务需要的功能即可。 中断函数全部在stm2f4xx_it.c当中,如下所示: /***************************************************
[单片机]
<font color='red'>STM32F4</font>01利用CubeMX实现按键中断翻转LED
STM32F407 TIM1的PWM输出
//TIM1 PWM部分初始化 //PWM输出初始化 //arr:自动重装值 //psc:时钟预分频数 void TIM1_PWM_Init(u32 arr,u32 psc) { //此部分需手动修改IO口设置 GPIO_InitTypeDef GPIO_InitStructure; TIM_TimeBaseInitTypeDef TIM_TimeBaseStructure; TIM_OCInitTypeDef TIM_OCInitStructure; RCC_APB2PeriphClockCmd(RCC_APB2Periph_TIM1,ENABLE); //TIM1时钟使能 RCC_AHB1P
[单片机]
小广播
设计资源 培训 开发板 精华推荐

最新单片机文章
何立民专栏 单片机及嵌入式宝典

北京航空航天大学教授,20余年来致力于单片机与嵌入式系统推广工作。

换一换 更多 相关热搜器件
更多往期活动
随便看看

 
EEWorld订阅号

 
EEWorld服务号

 
汽车开发圈

电子工程世界版权所有 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号 Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved