STM32F4 封装库

--------------------- 
作者:_杰杰_ 
来源:CSDN 
原文:https://blog.csdn.net/jiejiemcu/article/details/80179096 
版权声明:本文为博主原创文章,转载请附上博文链接!

昨晚在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的库很完善,但是以后我们写代码都可以有自己的库,拿来即用,很是方便。

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值