资源简介
视频演示地址:https://v.youku.com/v_show/id_XMzc3MTcyNjE4MA==.html?spm=a2h1n.8251843.playList.5!6~5~A&f=51844923&o=1
代码片段和文件信息
#include “rc522_config.h“
static void RC522_SPI_Config ( void );
void RC522_Init ( void )
{
RC522_SPI_Config ();
macRC522_Reset_Disable();
macRC522_CS_Disable();
}
static void RC522_SPI_Config ( void )
{
/* SPI_InitTypeDef SPI_InitStructure */
GPIO_InitTypeDef GPIO_InitStructure;
/*!< Configure SPI_RC522_SPI pins: CS */
macRC522_GPIO_CS_CLK_FUN ( macRC522_GPIO_CS_CLK ENABLE );
GPIO_InitStructure.GPIO_Pin = macRC522_GPIO_CS_PIN;
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;
GPIO_InitStructure.GPIO_Mode = macRC522_GPIO_CS_Mode;
GPIO_Init(macRC522_GPIO_CS_PORT &GPIO_InitStructure);
/*!< Configure SPI_RC522_SPI pins: SCK */
macRC522_GPIO_SCK_CLK_FUN ( macRC522_GPIO_SCK_CLK ENABLE );
GPIO_InitStructure.GPIO_Pin = macRC522_GPIO_SCK_PIN;
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;
GPIO_InitStructure.GPIO_Mode = macRC522_GPIO_SCK_Mode;
GPIO_Init(macRC522_GPIO_SCK_PORT &GPIO_InitStructure);
/*!< Configure SPI_RC522_SPI pins: MOSI */
macRC522_GPIO_MOSI_CLK_FUN ( macRC522_GPIO_MOSI_CLK ENABLE );
GPIO_InitStructure.GPIO_Pin = macRC522_GPIO_MOSI_PIN;
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;
GPIO_InitStructure.GPIO_Mode = macRC522_GPIO_MOSI_Mode;
GPIO_Init(macRC522_GPIO_MOSI_PORT &GPIO_InitStructure);
/*!< Configure SPI_RC522_SPI pins: MISO */
macRC522_GPIO_MISO_CLK_FUN ( macRC522_GPIO_MISO_CLK ENABLE );
GPIO_InitStructure.GPIO_Pin = macRC522_GPIO_MISO_PIN;
GPIO_InitStructure.GPIO_Mode = macRC522_GPIO_MISO_Mode;
GPIO_Init(macRC522_GPIO_MISO_PORT &GPIO_InitStructure);
/*!< Configure SPI_RC522_SPI pins: RST */
macRC522_GPIO_RST_CLK_FUN ( macRC522_GPIO_RST_CLK ENABLE );
GPIO_InitStructure.GPIO_Pin = macRC522_GPIO_RST_PIN;
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;
GPIO_InitStructure.GPIO_Mode = macRC522_GPIO_RST_Mode;
GPIO_Init(macRC522_GPIO_RST_PORT &GPIO_InitStructure);
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 290894 2018-08-24 18:22 read_me.pdf
目录 0 2018-08-08 16:47 源码\
目录 0 2018-08-08 16:34 源码\STM32规范化PRINTF\
目录 0 2018-08-08 16:34 源码\STM32规范化PRINTF\CMSIS\
文件 17273 2010-06-07 10:25 源码\STM32规范化PRINTF\CMSIS\core_cm3.c
文件 85714 2011-02-09 14:59 源码\STM32规范化PRINTF\CMSIS\core_cm3.h
目录 0 2018-08-08 16:34 源码\STM32规范化PRINTF\CMSIS\startup\
目录 0 2018-08-08 16:34 源码\STM32规范化PRINTF\CMSIS\startup\TrueSTUDIO\
文件 12604 2011-03-10 10:54 源码\STM32规范化PRINTF\CMSIS\startup\TrueSTUDIO\startup_stm32f10x_cl.s
文件 12592 2011-03-10 10:53 源码\STM32规范化PRINTF\CMSIS\startup\TrueSTUDIO\startup_stm32f10x_hd.s
文件 12239 2011-03-10 10:53 源码\STM32规范化PRINTF\CMSIS\startup\TrueSTUDIO\startup_stm32f10x_hd_vl.s
文件 9826 2011-03-10 10:53 源码\STM32规范化PRINTF\CMSIS\startup\TrueSTUDIO\startup_stm32f10x_ld.s
文件 10275 2011-03-10 10:53 源码\STM32规范化PRINTF\CMSIS\startup\TrueSTUDIO\startup_stm32f10x_ld_vl.s
文件 10275 2011-03-10 10:53 源码\STM32规范化PRINTF\CMSIS\startup\TrueSTUDIO\startup_stm32f10x_md.s
文件 10757 2011-03-10 10:53 源码\STM32规范化PRINTF\CMSIS\startup\TrueSTUDIO\startup_stm32f10x_md_vl.s
文件 13252 2011-03-10 10:53 源码\STM32规范化PRINTF\CMSIS\startup\TrueSTUDIO\startup_stm32f10x_xl.s
目录 0 2018-08-08 16:34 源码\STM32规范化PRINTF\CMSIS\startup\arm\
文件 15766 2011-03-10 10:52 源码\STM32规范化PRINTF\CMSIS\startup\arm\startup_stm32f10x_cl.s
文件 15503 2011-03-10 10:52 源码\STM32规范化PRINTF\CMSIS\startup\arm\startup_stm32f10x_hd.s
文件 15692 2011-03-10 10:52 源码\STM32规范化PRINTF\CMSIS\startup\arm\startup_stm32f10x_hd_vl.s
文件 12376 2011-03-10 10:52 源码\STM32规范化PRINTF\CMSIS\startup\arm\startup_stm32f10x_ld.s
文件 13656 2011-03-10 10:52 源码\STM32规范化PRINTF\CMSIS\startup\arm\startup_stm32f10x_ld_vl.s
文件 12765 2011-03-10 10:52 源码\STM32规范化PRINTF\CMSIS\startup\arm\startup_stm32f10x_md.s
文件 14073 2011-03-10 10:51 源码\STM32规范化PRINTF\CMSIS\startup\arm\startup_stm32f10x_md_vl.s
文件 15955 2011-03-10 10:51 源码\STM32规范化PRINTF\CMSIS\startup\arm\startup_stm32f10x_xl.s
目录 0 2018-08-08 16:34 源码\STM32规范化PRINTF\CMSIS\startup\gcc_ride7\
文件 13072 2011-03-10 10:52 源码\STM32规范化PRINTF\CMSIS\startup\gcc_ride7\startup_stm32f10x_cl.s
文件 13160 2011-03-10 10:52 源码\STM32规范化PRINTF\CMSIS\startup\gcc_ride7\startup_stm32f10x_hd.s
文件 12482 2011-03-10 10:52 源码\STM32规范化PRINTF\CMSIS\startup\gcc_ride7\startup_stm32f10x_hd_vl.s
文件 9814 2011-03-10 10:52 源码\STM32规范化PRINTF\CMSIS\startup\gcc_ride7\startup_stm32f10x_ld.s
文件 10562 2011-03-10 10:52 源码\STM32规范化PRINTF\CMSIS\startup\gcc_ride7\startup_stm32f10x_ld_vl.s
............此处省略486个文件信息
评论
共有 条评论