/* Configure SPI2 pins: SCK, MISO and MOSI -------------*/
GPIO_InitStructure.GPIO_Pin =GPIO_Pin_13 | GPIO_Pin_14 | GPIO_Pin_15;
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_10MHz;
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_AF_PP;
GPIO_Init(GPIOB, &GPIO_InitStructure);
// 片选
GPIO_InitStructure.GPIO_Pin=GPIO_Pin_12;
GPIO_InitStructure.GPIO_Speed=GPIO_Speed_10MHz;
GPIO_InitStructure.GPIO_Mode=GPIO_Mode_Out_PP;
GPIO_Init(GPIOB, &GPIO_InitStructure);
//使能端
GPIO_InitStructure.GPIO_Pin=GPIO_Pin_11;
GPIO_InitStructure.GPIO_Speed=GPIO_Speed_10MHz;
GPIO_InitStructure.GPIO_Mode=GPIO_Mode_Out_PP;
GPIO_Init(GPIOB, &GPIO_InitStructure);
//复位端
GPIO_InitStructure.GPIO_Pin=GPIO_Pin_10;
GPIO_InitStructure.GPIO_Speed=GPIO_Speed_10MHz;
GPIO_InitStructure.GPIO_Mode=GPIO_Mode_Out_PP;
GPIO_Init(GPIOB, &GPIO_InitStructure);
spi2 对应管脚
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
isd 4004 stm32 (224个子文件)
stm32f10x_systick.__i 377B
stm32f10x_dbgmcu.__i 371B
system_stm32f10x.__i 368B
stm32f10x_usart.__i 367B
stm32f10x_flash.__i 367B
stm32f10x_sdio.__i 363B
stm32f10x_exti.__i 363B
stm32f10x_fsmc.__i 363B
stm32f10x_gpio.__i 363B
stm32f10x_iwdg.__i 363B
stm32f10x_wwdg.__i 363B
stm32f10x_spi.__i 359B
stm32f10x_rtc.__i 359B
stm32f10x_rcc.__i 359B
stm32f10x_dac.__i 359B
stm32f10x_adc.__i 359B
stm32f10x_i2c.__i 359B
stm32f10x_tim.__i 359B
stm32f10x_cec.__i 359B
stm32f10x_bkp.__i 359B
stm32f10x_crc.__i 359B
stm32f10x_pwr.__i 359B
stm32f10x_can.__i 359B
stm32f10x_dma.__i 359B
stm32f10x_it.__i 352B
systick.__i 332B
isd4004.__i 332B
usart.__i 324B
misc.__i 323B
main.__i 320B
key.__i 316B
startup_stm32f10x_ld._ia 282B
Usart.uvgui.Administrator 282KB
Usart.axf 314KB
Usart.uvgui_Administrator.bak 282KB
Usart_uvopt.bak 24KB
Usart_uvproj.bak 20KB
stm32f10x_tim.c 107KB
stm32f10x_flash.c 61KB
stm32f10x_rcc.c 50KB
stm32f10x_adc.c 46KB
stm32f10x_i2c.c 45KB
stm32f10x_can.c 44KB
stm32f10x_usart.c 37KB
system_stm32f10x.c 36KB
stm32f10x_fsmc.c 35KB
stm32f10x_spi.c 30KB
stm32f10x_dma.c 29KB
stm32f10x_sdio.c 28KB
stm32f10x_gpio.c 23KB
stm32f10x_dac.c 19KB
core_cm3.c 17KB
stm32f10x_cec.c 11KB
stm32f10x_pwr.c 9KB
stm32f10x_rtc.c 8KB
stm32f10x_bkp.c 8KB
misc.c 7KB
stm32f10x_exti.c 7KB
stm32f10x_systick.c 6KB
stm32f10x_wwdg.c 6KB
stm32f10x_dbgmcu.c 5KB
stm32f10x_iwdg.c 5KB
stm32f10x_it.c 4KB
isd4004.c 4KB
stm32f10x_crc.c 3KB
systick.c 3KB
usart.c 2KB
spi1.c 2KB
main.c 2KB
key.c 784B
stm32f10x_tim.crf 359KB
stm32f10x_can.crf 346KB
stm32f10x_adc.crf 344KB
stm32f10x_rcc.crf 344KB
stm32f10x_flash.crf 344KB
isd4004.crf 344KB
stm32f10x_i2c.crf 343KB
stm32f10x_usart.crf 343KB
stm32f10x_fsmc.crf 342KB
main.crf 342KB
usart.crf 341KB
stm32f10x_sdio.crf 341KB
stm32f10x_it.crf 341KB
stm32f10x_spi.crf 341KB
stm32f10x_cec.crf 341KB
key.crf 341KB
stm32f10x_gpio.crf 340KB
stm32f10x_dma.crf 340KB
stm32f10x_dac.crf 339KB
system_stm32f10x.crf 338KB
stm32f10x_bkp.crf 338KB
stm32f10x_wwdg.crf 338KB
stm32f10x_rtc.crf 338KB
stm32f10x_pwr.crf 338KB
stm32f10x_systick.crf 338KB
systick.crf 338KB
stm32f10x_exti.crf 338KB
misc.crf 337KB
stm32f10x_iwdg.crf 337KB
stm32f10x_crc.crf 337KB
共 224 条
- 1
- 2
- 3
资源评论
ww1849647167com
- 粉丝: 0
- 资源: 6
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功