64 lines
1.1 KiB
C
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#ifndef __QSPI_H
#define __QSPI_H
#include "sys.h"
//////////////////////////////////////////////////////////////////////////////////
/************************************************************/
//QSPI驱动代码
//STM32H7工程模板-HAL库函数版本
//DevEBox 大越创新
//淘宝店铺mcudev.taobao.com
//淘宝店铺shop389957290.taobao.com
/************************************************************/
//////////////////////////////////////////////////////////////////////////////////
extern QSPI_HandleTypeDef QSPI_Handler; //QSPI句柄
u8 QSPI_Init(void); //初始化QSPI
void QSPI_Send_CMD(u32 instruction,u32 address,u32 dummyCycles,u32 instructionMode,u32 addressMode,u32 addressSize,u32 dataMode); //QSPI发送命令
u8 QSPI_Receive(u8* buf,u32 datalen); //QSPI接收数据
u8 QSPI_Transmit(u8* buf,u32 datalen); //QSPI发送数据
#endif
/************************************************************/
//QSPI驱动代码
//STM32H7工程模板-HAL库函数版本
//DevEBox 大越创新
//淘宝店铺mcudev.taobao.com
//淘宝店铺shop389957290.taobao.com
/************************************************************/