资源简介
STM32F103 C8T6最小系统板+惠斯通电桥(120欧)+HX711称重模块;读取压力传感器输进来的值,利用串口送到PC显示
代码片段和文件信息
/**
******************************************************************************
* @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
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 10308 2008-09-21 13:21 HX711_STM32\ASM\cortexm3_macro.s
文件 15761 2010-04-23 10:40 HX711_STM32\ASM\startup_stm32f10x_cl.s
文件 15503 2011-03-10 10:52 HX711_STM32\ASM\startup_stm32f10x_hd.s
文件 12376 2011-03-10 10:52 HX711_STM32\ASM\startup_stm32f10x_ld.s
文件 13651 2010-04-23 10:40 HX711_STM32\ASM\startup_stm32f10x_ld_vl.s
文件 12765 2011-03-10 10:52 HX711_STM32\ASM\startup_stm32f10x_md.s
文件 14068 2010-04-23 10:40 HX711_STM32\ASM\startup_stm32f10x_md_vl.s
文件 15950 2010-04-23 10:40 HX711_STM32\ASM\startup_stm32f10x_xl.s
文件 9630 2009-11-21 17:22 HX711_STM32\ASM\stm32f10x_startup.s
文件 87889 2018-04-27 09:18 HX711_STM32\HX711_ma\HX711_STM32.map
文件 2105 2018-04-27 09:20 HX711_STM32\HX711_ma\HX711_STM32.Opt
文件 192 2018-04-26 11:24 HX711_STM32\HX711_ma\HX711_STM32.plg
文件 3212 2018-04-26 16:46 HX711_STM32\HX711_ma\HX711_STM32.Uv2
文件 9597 2018-04-27 09:18 HX711_STM32\HX711_ma\HX711_STM32_HX711_STM32.dep
....... 2105 2018-04-27 09:19 HX711_STM32\HX711_ma\HX711_STM32_Opt.Bak
文件 78 2018-04-26 11:24 HX711_STM32\HX711_ma\HX711_STM32_Target 1.dep
文件 3252 2018-04-26 13:50 HX711_STM32\HX711_ma\HX711_STM32_Uv2.Bak
文件 50651 2018-04-27 09:18 HX711_STM32\HX711_ma\startup_stm32f10x_hd.lst
文件 8982 2011-03-10 10:47 HX711_STM32\Lib\inc\misc.h
文件 21690 2011-03-10 10:47 HX711_STM32\Lib\inc\stm32f10x_adc.h
文件 7555 2011-03-10 10:47 HX711_STM32\Lib\inc\stm32f10x_bkp.h
文件 27559 2011-03-10 10:47 HX711_STM32\Lib\inc\stm32f10x_can.h
文件 6573 2011-03-10 10:47 HX711_STM32\Lib\inc\stm32f10x_cec.h
文件 3213 2009-04-06 10:30 HX711_STM32\Lib\inc\stm32f10x_conf.h
文件 2162 2011-03-10 10:47 HX711_STM32\Lib\inc\stm32f10x_crc.h
文件 15233 2011-03-10 10:47 HX711_STM32\Lib\inc\stm32f10x_dac.h
文件 3818 2011-03-10 10:47 HX711_STM32\Lib\inc\stm32f10x_dbgmcu.h
文件 20754 2011-03-10 10:47 HX711_STM32\Lib\inc\stm32f10x_dma.h
文件 6824 2011-03-10 10:47 HX711_STM32\Lib\inc\stm32f10x_exti.h
文件 25445 2011-03-10 10:47 HX711_STM32\Lib\inc\stm32f10x_flash.h
............此处省略109个文件信息
相关资源
- STM32f103+SIM900A-GSM模块通讯程序
- STM32F429 485实验源码(hal库)
- stm32简易计算器
- STM32F103单片机基于RS485总线的MODBUS通讯
- 基于stm32的环境监测系统
- 将STM32内部Flash虚拟成U盘通过复制bi
- STM32采集风向
- STM32采集风速调试成功
- STM32F103ZET6--MPU6050DMP
- STM32F103输入捕获
- STM32 OLED多级菜单显示
- 多摩川编码器读取程序,STM32
- STM32的温湿度采集报警系统,DHT11,
- STM32 USB通信上、下位机
- 基于STM32的光照传感器
- STM32F4xx_Clock_Configuration_V1.1.0
- STM32使用MCP3204串行AD
- 用STM32测3个DS18B20用12864显示
- 基于STM32的WS2812全彩led屏幕
- RAW_UDP实验
- STM320.96寸OLED显示屏IIC
- STM320.96寸OLED显示屏
- 基于STM32的MQ-3酒精浓度检测源码
- STM32UART串口程序
- STM32红外遥控
- STM32 擦玻璃程序
- STM32HC-SR04程序
- STM32BMP180程序
- STM32四路PWM
- STM32点3.2寸TFT屏
评论
共有 条评论