资源简介

STM32 STM32F103C8T6 读取DS18B20温度数据例程 将读出的温度数据发送到调试串口 温度数据单位是0.1摄氏度

资源截图

代码片段和文件信息

/**
  ******************************************************************************
  * @file    misc.c
  * @author  MCD Application Team
  * @version V3.6.1
  * @date    05-March-2012
  * @brief   This file provides all the miscellaneous firmware functions (add-on
  *          to CMSIS functions).
  ******************************************************************************
  * @attention
  *
  * 

© COPYRIGHT 2012 STMicroelectronics


  *
  * Licensed under MCD-ST Liberty SW License Agreement V2 (the “License“);
  * You may not use this file except in compliance with the License.
  * You may obtain a copy of the License at:
  *
  *        http://www.st.com/software_license_agreement_liberty_v2
  *
  * Unless required by applicable law or agreed to in writing software 
  * distributed under the License is distributed on an “AS IS“ BASIS 
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
  *
  ******************************************************************************
  */

/* 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 accordin

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

     文件      26180  2018-11-30 15:21  Sagahds_20200304_STM32_DS18B20_V0.1\cortexm3_macro.lst

     文件      45583  2020-03-04 17:08  Sagahds_20200304_STM32_DS18B20_V0.1\output\Sagahds.hex

     文件     105865  2020-03-04 17:08  Sagahds_20200304_STM32_DS18B20_V0.1\Sagahds.map

     文件      51744  2018-07-31 17:59  Sagahds_20200304_STM32_DS18B20_V0.1\Sagahds.plg

     文件        479  2018-07-31 17:53  Sagahds_20200304_STM32_DS18B20_V0.1\Sagahds.sct

    .......     70455  2020-03-04 17:10  Sagahds_20200304_STM32_DS18B20_V0.1\Sagahds.uvgui.Administrator

     文件      71194  2018-12-03 13:51  Sagahds_20200304_STM32_DS18B20_V0.1\Sagahds.uvguix.Administrator

    .......     70459  2020-03-04 17:07  Sagahds_20200304_STM32_DS18B20_V0.1\Sagahds.uvgui_Administrator.bak

    .......     20328  2020-03-04 17:10  Sagahds_20200304_STM32_DS18B20_V0.1\Sagahds.uvopt

     文件      21881  2018-12-03 13:51  Sagahds_20200304_STM32_DS18B20_V0.1\Sagahds.uvoptx

    .......     20878  2020-03-04 15:39  Sagahds_20200304_STM32_DS18B20_V0.1\Sagahds.uvproj

     文件      22004  2018-12-03 13:48  Sagahds_20200304_STM32_DS18B20_V0.1\Sagahds.uvproj.saved_uv4

     文件      59109  2020-03-04 17:08  Sagahds_20200304_STM32_DS18B20_V0.1\Sagahds_Target 1.dep

    .......     20328  2020-03-04 17:07  Sagahds_20200304_STM32_DS18B20_V0.1\Sagahds_uvopt.bak

    .......     20701  2020-03-04 15:10  Sagahds_20200304_STM32_DS18B20_V0.1\Sagahds_uvproj.bak

     文件      40464  2020-03-04 17:07  Sagahds_20200304_STM32_DS18B20_V0.1\startup_stm32f10x_md.lst

     文件      12895  2017-05-12 23:41  Sagahds_20200304_STM32_DS18B20_V0.1\startup_stm32f10x_md.s

     文件       7181  2012-03-19 17:29  Sagahds_20200304_STM32_DS18B20_V0.1\stm32f10x\misc.c

     文件       9117  2012-03-19 17:29  Sagahds_20200304_STM32_DS18B20_V0.1\stm32f10x\misc.h

     文件      47336  2012-03-19 17:29  Sagahds_20200304_STM32_DS18B20_V0.1\stm32f10x\stm32f10x_adc.c

     文件      21825  2012-03-19 17:29  Sagahds_20200304_STM32_DS18B20_V0.1\stm32f10x\stm32f10x_adc.h

     文件       8598  2012-03-19 17:29  Sagahds_20200304_STM32_DS18B20_V0.1\stm32f10x\stm32f10x_bkp.c

     文件       7690  2012-03-19 17:29  Sagahds_20200304_STM32_DS18B20_V0.1\stm32f10x\stm32f10x_bkp.h

     文件      45238  2012-03-19 17:29  Sagahds_20200304_STM32_DS18B20_V0.1\stm32f10x\stm32f10x_can.c

     文件      27694  2012-03-19 17:29  Sagahds_20200304_STM32_DS18B20_V0.1\stm32f10x\stm32f10x_can.h

     文件      11791  2012-03-19 17:29  Sagahds_20200304_STM32_DS18B20_V0.1\stm32f10x\stm32f10x_cec.c

     文件       6708  2012-03-19 17:29  Sagahds_20200304_STM32_DS18B20_V0.1\stm32f10x\stm32f10x_cec.h

     文件       3482  2012-03-19 17:29  Sagahds_20200304_STM32_DS18B20_V0.1\stm32f10x\stm32f10x_crc.c

     文件       2297  2012-03-19 17:29  Sagahds_20200304_STM32_DS18B20_V0.1\stm32f10x\stm32f10x_crc.h

     文件      19222  2012-03-19 17:29  Sagahds_20200304_STM32_DS18B20_V0.1\stm32f10x\stm32f10x_dac.c

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

评论

共有 条评论