资源简介
stm32最简单程序,基于库函数编写,LED灯闪烁,可参考。
代码片段和文件信息
/**
******************************************************************************
* @file misc.c
* @author MCD Application Team
* @version V3.5.0
* @date 11-March-2011
* @brief This file provides all the miscellaneous firmware functions (add-on
* to CMSIS functions).
******************************************************************************
* @attention
*
* THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
* WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
* TIME. AS A RESULT STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY
* DIRECT INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING
* FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
* CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
*
* © COPYRIGHT 2011 STMicroelectronics
******************************************************************************
*/
/* Includes ------------------------------------------------------------------*/
#include “misc.h“
/** @addtogroup STM32F10x_StdPeriph_Driver
* @{
*/
/** @defgroup MISC
* @brief MISC driver modules
* @{
*/
/** @defgroup MISC_Private_TypesDefinitions
* @{
*/
/**
* @}
*/
/** @defgroup MISC_Private_Defines
* @{
*/
#define AIRCR_VECTKEY_MASK ((uint32_t)0x05FA0000)
/**
* @}
*/
/** @defgroup MISC_Private_Macros
* @{
*/
/**
* @}
*/
/** @defgroup MISC_Private_Variables
* @{
*/
/**
* @}
*/
/** @defgroup MISC_Private_FunctionPrototypes
* @{
*/
/**
* @}
*/
/** @defgroup MISC_Private_Functions
* @{
*/
/**
* @brief Configures the priority grouping: pre-emption priority and subpriority.
* @param NVIC_PriorityGroup: specifies the priority grouping bits length.
* This parameter can be one of the following values:
* @arg NVIC_PriorityGroup_0: 0 bits for pre-emption priority
* 4 bits for subpriority
* @arg NVIC_PriorityGroup_1: 1 bits for pre-emption priority
* 3 bits for subpriority
* @arg NVIC_PriorityGroup_2: 2 bits for pre-emption priority
* 2 bits for subpriority
* @arg NVIC_PriorityGroup_3: 3 bits for pre-emption priority
* 1 bits for subpriority
* @arg NVIC_PriorityGroup_4: 4 bits for pre-emption priority
* 0 bits for subpriority
* @retval None
*/
void NVIC_PriorityGroupConfig(uint32_t NVIC_PriorityGroup)
{
/* Check the parameters */
assert_param(IS_NVIC_PRIORITY_GROUP(NVIC_PriorityGroup));
/* Set the PRIGROUP[10:8] bits according to NVIC_PriorityGroup value */
SCB->AIRCR = AIRCR_VECTKEY_MASK | NVIC_PriorityGroup;
}
/**
* @brief Initializes the NVIC p
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2018-06-10 20:16 0led\
目录 0 2018-06-10 20:16 0led\drvier\
目录 0 2018-06-10 20:16 0led\drvier\inc\
文件 8982 2011-03-10 10:47 0led\drvier\inc\misc.h
文件 21690 2011-03-10 10:47 0led\drvier\inc\stm32f10x_adc.h
文件 7555 2011-03-10 10:47 0led\drvier\inc\stm32f10x_bkp.h
文件 27559 2011-03-10 10:47 0led\drvier\inc\stm32f10x_can.h
文件 6573 2011-03-10 10:47 0led\drvier\inc\stm32f10x_cec.h
文件 2162 2011-03-10 10:47 0led\drvier\inc\stm32f10x_crc.h
文件 15233 2011-03-10 10:47 0led\drvier\inc\stm32f10x_dac.h
文件 3818 2011-03-10 10:47 0led\drvier\inc\stm32f10x_dbgmcu.h
文件 20754 2011-03-10 10:47 0led\drvier\inc\stm32f10x_dma.h
文件 6824 2011-03-10 10:47 0led\drvier\inc\stm32f10x_exti.h
文件 25445 2011-03-10 10:47 0led\drvier\inc\stm32f10x_flash.h
文件 27016 2011-03-10 10:47 0led\drvier\inc\stm32f10x_fsmc.h
文件 20175 2011-03-10 10:47 0led\drvier\inc\stm32f10x_gpio.h
文件 30029 2011-03-10 10:47 0led\drvier\inc\stm32f10x_i2c.h
文件 3828 2011-03-10 10:47 0led\drvier\inc\stm32f10x_iwdg.h
文件 4383 2011-03-10 10:47 0led\drvier\inc\stm32f10x_pwr.h
文件 30452 2011-03-10 10:47 0led\drvier\inc\stm32f10x_rcc.h
文件 3857 2011-03-10 10:47 0led\drvier\inc\stm32f10x_rtc.h
文件 21863 2011-03-10 10:47 0led\drvier\inc\stm32f10x_sdio.h
文件 17725 2011-03-10 10:47 0led\drvier\inc\stm32f10x_spi.h
文件 52427 2011-03-10 10:47 0led\drvier\inc\stm32f10x_tim.h
文件 16548 2011-03-10 10:47 0led\drvier\inc\stm32f10x_usart.h
文件 2966 2011-03-10 10:47 0led\drvier\inc\stm32f10x_wwdg.h
目录 0 2018-06-10 20:16 0led\drvier\src\
文件 7046 2011-03-10 10:47 0led\drvier\src\misc.c
文件 47201 2011-03-10 10:47 0led\drvier\src\stm32f10x_adc.c
文件 8463 2011-03-10 10:47 0led\drvier\src\stm32f10x_bkp.c
文件 45103 2011-03-10 10:47 0led\drvier\src\stm32f10x_can.c
............此处省略118个文件信息
- 上一篇:编译原理陈火旺第三版课本及其答案
- 下一篇:计算机视觉(贾云德)
相关资源
- STM32F103RCT6单片机在串口屏上打印正弦
- 基于proteus 的 STM32 采集DHT11 仿真 +
- Protues仿真8051-PWM控制LED的亮度仿真程
- STM32接入OneNET代码
- 毕业设计智能小车的制作蓝牙控制,
- 基于正点原子stm32mini开发板的触摸屏
- 0.96OLED实现数字、汉字、字符串、图片
- STM32F4之dacdma输出正弦波加adcdma多通道
- stm32F429多通道ADC+串口30
- stm32-超声波避障程序案例
- stm32 mpu6050 DMP 成功
- ADS1256-MDK5-STM32F103C8.rar
- STM32F407ZG接入ONENET平台代码
- STM32F427 + LAN8710 STM32CubeMX4.25.0工程配置
- 利用三个定时器驱动三个步进电机的
- 基于STM32F103控制16PWM路舵机驱动板PC
- 自动泊车系统.zip
- STM32F030使用HAL库做低功耗
- STM32语音模块播报
- 正点原子战舰板STM32F103双通道示波器
- STM32之间的SPI通信
- STM32所有型号中文参考手册
- 毕设:基于 stm32 微控制器的绘图机器
- 基于STM32F103ZET6示波器程序.rar
- 基于stm32的三相逆变代码
- 激光测距模块简易测量(STM32F429).
- STM32平衡车代码.rar
- 倒立摆stm32f1.rar
- 单独的VCSELpcb图和ao7800的PCB图带SOT36
- STM32F103RCT语音模块LD3320 STM32与51单片
评论
共有 条评论