• 大小: 20.4MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-07-04
  • 语言: 其他
  • 标签: demo  

资源简介

STM32L476RC平台的关于SDMMC+fatfs的demo工程:亲测有效,4线传输,读写采用HAL库HAL_SD_ReadBlocks();HAL_SD_WriteBlocks();函数的轮询方式

资源截图

代码片段和文件信息

/**
  ******************************************************************************
  * @file    system_stm32l4xx.c
  * @author  MCD Application Team
  * @brief   CMSIS Cortex-M4 Device Peripheral Access layer System Source File
  *
  *   This file provides two functions and one global variable to be called from
  *   user application:
  *      - SystemInit(): This function is called at startup just after reset and
  *                      before branch to main program. This call is made inside
  *                      the “startup_stm32l4xx.s“ file.
  *
  *      - SystemCoreClock variable: Contains the core clock (HCLK) it can be used
  *                                  by the user application to setup the SysTick
  *                                  timer or configure other parameters.
  *
  *      - SystemCoreClockUpdate(): Updates the variable SystemCoreClock and must
  *                                 be called whenever the core clock is changed
  *                                 during program execution.
  *
  *   After each device reset the MSI (4 MHz) is used as system clock source.
  *   Then SystemInit() function is called in “startup_stm32l4xx.s“ file to
  *   configure the system clock before to branch to main program.
  *
  *   This file configures the system clock as follows:
  *=============================================================================
  *-----------------------------------------------------------------------------
  *        System Clock source                    | MSI
  *-----------------------------------------------------------------------------
  *        SYSCLK(Hz)                             | 4000000
  *-----------------------------------------------------------------------------
  *        HCLK(Hz)                               | 4000000
  *-----------------------------------------------------------------------------
  *        AHB Prescaler                          | 1
  *-----------------------------------------------------------------------------
  *        APB1 Prescaler                         | 1
  *-----------------------------------------------------------------------------
  *        APB2 Prescaler                         | 1
  *-----------------------------------------------------------------------------
  *        PLL_M                                  | 1
  *-----------------------------------------------------------------------------
  *        PLL_N                                  | 8
  *-----------------------------------------------------------------------------
  *        PLL_P                                  | 7
  *-----------------------------------------------------------------------------
  *        PLL_Q                                  | 2
  *-----------------------------------------------------------------------------
  *        PLL_R                                  | 2
  *---------------------------------------------------

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       8690  2019-03-26 10:54  sd\.mxproject

     文件     821626  2018-10-15 14:42  sd\Drivers\CMSIS\Device\ST\STM32L4xx\Include\stm32l412xx.h

     文件     838082  2018-10-15 14:42  sd\Drivers\CMSIS\Device\ST\STM32L4xx\Include\stm32l422xx.h

     文件    1149820  2018-10-15 14:42  sd\Drivers\CMSIS\Device\ST\STM32L4xx\Include\stm32l431xx.h

     文件    1129578  2018-10-15 14:42  sd\Drivers\CMSIS\Device\ST\STM32L4xx\Include\stm32l432xx.h

     文件    1218912  2018-10-15 14:42  sd\Drivers\CMSIS\Device\ST\STM32L4xx\Include\stm32l433xx.h

     文件    1146034  2018-10-15 14:42  sd\Drivers\CMSIS\Device\ST\STM32L4xx\Include\stm32l442xx.h

     文件    1235368  2018-10-15 14:42  sd\Drivers\CMSIS\Device\ST\STM32L4xx\Include\stm32l443xx.h

     文件    1171909  2018-10-15 14:42  sd\Drivers\CMSIS\Device\ST\STM32L4xx\Include\stm32l451xx.h

     文件    1229667  2018-10-15 14:42  sd\Drivers\CMSIS\Device\ST\STM32L4xx\Include\stm32l452xx.h

     文件    1246123  2018-10-15 14:42  sd\Drivers\CMSIS\Device\ST\STM32L4xx\Include\stm32l462xx.h

     文件    1293344  2018-10-15 14:42  sd\Drivers\CMSIS\Device\ST\STM32L4xx\Include\stm32l471xx.h

     文件    1419127  2018-10-15 14:42  sd\Drivers\CMSIS\Device\ST\STM32L4xx\Include\stm32l475xx.h

     文件    1430461  2018-10-15 14:42  sd\Drivers\CMSIS\Device\ST\STM32L4xx\Include\stm32l476xx.h

     文件    1435583  2018-10-15 14:42  sd\Drivers\CMSIS\Device\ST\STM32L4xx\Include\stm32l485xx.h

     文件    1446917  2018-10-15 14:42  sd\Drivers\CMSIS\Device\ST\STM32L4xx\Include\stm32l486xx.h

     文件    1532152  2018-10-15 14:42  sd\Drivers\CMSIS\Device\ST\STM32L4xx\Include\stm32l496xx.h

     文件    1555912  2018-10-15 14:42  sd\Drivers\CMSIS\Device\ST\STM32L4xx\Include\stm32l4a6xx.h

     文件    1560173  2018-10-15 14:42  sd\Drivers\CMSIS\Device\ST\STM32L4xx\Include\stm32l4r5xx.h

     文件    1596821  2018-10-15 14:42  sd\Drivers\CMSIS\Device\ST\STM32L4xx\Include\stm32l4r7xx.h

     文件    1825180  2018-10-15 14:42  sd\Drivers\CMSIS\Device\ST\STM32L4xx\Include\stm32l4r9xx.h

     文件    1584602  2018-10-15 14:42  sd\Drivers\CMSIS\Device\ST\STM32L4xx\Include\stm32l4s5xx.h

     文件    1621250  2018-10-15 14:42  sd\Drivers\CMSIS\Device\ST\STM32L4xx\Include\stm32l4s7xx.h

     文件    1849609  2018-10-15 14:42  sd\Drivers\CMSIS\Device\ST\STM32L4xx\Include\stm32l4s9xx.h

     文件       8980  2018-10-15 14:42  sd\Drivers\CMSIS\Device\ST\STM32L4xx\Include\stm32l4xx.h

     文件       3874  2018-10-15 14:42  sd\Drivers\CMSIS\Device\ST\STM32L4xx\Include\system_stm32l4xx.h

     文件      18098  2018-10-15 14:42  sd\Drivers\CMSIS\Device\ST\STM32L4xx\Source\Templates\arm\startup_stm32l412xx.s

     文件      18187  2018-10-15 14:42  sd\Drivers\CMSIS\Device\ST\STM32L4xx\Source\Templates\arm\startup_stm32l422xx.s

     文件      18826  2018-10-15 14:42  sd\Drivers\CMSIS\Device\ST\STM32L4xx\Source\Templates\arm\startup_stm32l431xx.s

     文件      18504  2018-10-15 14:42  sd\Drivers\CMSIS\Device\ST\STM32L4xx\Source\Templates\arm\startup_stm32l432xx.s

............此处省略813个文件信息

评论

共有 条评论