STM32G474xx HAL User Manual
宏定义 | 函数 | 变量
stm32g4xx_ hal_nor.c文件参考

NOR HAL模块驱动程序。本文件提供了用于驱动作为外部设备安装的NOR存储器的通用固件。 更多...

#include "stm32g4xx_ hal.h"

跳转到此文件的源代码。

宏定义

#define NOR_ CMD_ ADDRESS_ FIRST_ BYTE   (uint16_ t)0x0AAA
#define NOR_ CMD_ ADDRESS_ FIRST_ CFI_ BYTE   (uint16_ t)0x00AA
#define NOR_ CMD_ ADDRESS_ SECOND_ BYTE   (uint16_ t)0x0AAA
#define NOR_ CMD_ ADDRESS_ THIRD_ BYTE   (uint16_ t)0x0AAA
#define NOR_ CMD_ ADDRESS_ FIRST   (uint16_ t)0x0AAA
#define NOR_ CMD_ ADDRESS_ FIRST_ CFI   (uint16_ t)0x00AA
#define NOR_ CMD_ ADDRESS_ SECOND   (uint16_ t)0x02AA
#define NOR_ CMD_ ADDRESS_ THIRD   (uint16_ t)0x0AAA
#define NOR_ CMD_ ADDRESS_ FOURTH   (uint16_ t)0x0AAA
#define NOR_ CMD_ ADDRESS_ FIFTH   (uint16_ t)0x02AA
#define NOR_ CMD_ ADDRESS_ SIXTH   (uint16_ t)0x0AAA
#define NOR_ CMD_ DATA_ READ_ RESET   (uint16_ t)0x00F0
#define NOR_ CMD_ DATA_ FIRST   (uint16_ t)0x00AA
#define NOR_ CMD_ DATA_ SECOND   (uint16_ t)0x00AA
#define NOR_ CMD_ DATA_ AUTO_ SELECT   (uint16_ t)0x00AA
#define NOR_ CMD_ DATA_ PROGRAM   (uint16_ t)0x00A0
#define NOR_ CMD_ DATA_ CHIP_ BLOCK_ ERASE_ THIRD   (uint16_ t)0x00AA
#define NOR_ CMD_ DATA_ CHIP_ BLOCK_ ERASE_ FOURTH   (uint16_ t)0x00AA
#define NOR_ CMD_ DATA_ CHIP_ BLOCK_ ERASE_ FIFTH   (uint16_ t)0x00AA
#define NOR_ CMD_ DATA_ CHIP_ ERASE   (uint16_ t)0x00AA
#define NOR_ CMD_ DATA_ CFI   (uint16_ t)0x00A8
#define NOR_ CMD_ DATA_ BUFFER_ AND_ PROG   (uint8_ t)0x25
#define NOR_ CMD_ DATA_ BUFFER_ AND_ PROG_ CONFIRM   (uint8_ t)0x29
#define NOR_ CMD_ DATA_ BLOCK_ ERASE   (uint8_ t)0x30
#define NOR_ CMD_ READ_ ARRAY   (uint16_ t)0x00FF
#define NOR_ CMD_ WORD_ PROGRAM   (uint16_ t)0x00AA
#define NOR_ CMD_ BUFFERED_ PROGRAM   (uint16_ t)0x00A8
#define NOR_ CMD_ CONFIRM   (uint16_ t)0x00D0
#define NOR_ CMD_ BLOCK_ ERASE   (uint16_ t)0x0020
#define NOR_ CMD_ BLOCK_ UNLOCK   (uint16_ t)0x0060
#define NOR_ CMD_ READ_ STATUS_ REG   (uint16_ t)0x0070
#define NOR_ CMD_ CLEAR_ STATUS_ REG   (uint16_ t)0x0050
#define NOR_ MASK_ STATUS_ DQ4   (uint16_ t)0x0010
#define NOR_ MASK_ STATUS_ DQ5   (uint16_ t)0x0020
#define NOR_ MASK_ STATUS_ DQ6   (uint16_ t)0x0040
#define NOR_ MASK_ STATUS_ DQ7   (uint16_ t)0x0080
#define NOR_ ADDRESS_ COMMAND_ SET   (uint16_ t)0x00c13
#define NOR_ INTEL_ SHARP_ EXT_ COMMAND_ SET   (uint16_ t)0x0001 /* 此驱动程序支持 */
#define NOR_ AMD_ FUJITSU_ COMMAND_ SET   (uint16_ t)0x0002 /* 此驱动程序支持 */
#define NOR_ INTEL_ STANDARD_ COMMAND_ SET   (uint16_ t)0x0003 /* 此驱动程序不支持 */
#define NOR_ AMD_ FUJITSU_ EXT_ COMMAND_ SET   (uint16_ t)0x0004 /* 此驱动程序不支持 */
#define NOR_ WINDBOND_ STANDARD_ COMMAND_ SET   (uint16_ t)0x0006 /* 此驱动程序不支持 */
#define NOR_ MITSUBISHI_ STANDARD_ COMMAND_ SET   (uint16_ t)0x0c100 /* 此驱动程序不支持 */
#define NOR_ MITSUBISHI_ EXT_ COMMAND_ SET   (uint16_ t)0x0c101 /* 此驱动程序不支持 */
#define NOR_ PAGE_ WRITE_ COMMAND_ SET   (uint16_ t)0x0c102 /* 此驱动程序不支持 */
#define NOR_ INTEL_ PERFORMANCE_ COMMAND_ SET   (uint16_ t)0x0c200 /* 此驱动程序不支持 */
#define NOR_ INTEL_ DATA_ COMMAND_ SET   (uint16_ t)0x02c10 /* 此驱动程序不支持 */

函数

HAL_ StatusTypeDef