-
大小: 4.81MB文件类型: .rar金币: 1下载: 0 次发布日期: 2023-11-08
- 语言: 其他
- 标签: CMT2300A_+_S
资源简介
CMT2300A_+_STM32F103RBT6编译通过,未实物验证 ,采用STM32F103RBT6 单片机写的 CMT2300A 收发一体芯片测程序 编译通过,未实物验证!!!!!! timer 和 GPIO引脚需要改 编译通过!未实物验证!!
代码片段和文件信息
/**
******************************************************************************
* @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 peripheral according to the specified
* parameters in the NVIC_InitStruct.
* @param NVIC_Init
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
....... 66 2018-09-04 17:39 CMT2300A_DemoEasy-master\.gitattributes
....... 430 2018-09-04 17:39 CMT2300A_DemoEasy-master\.gitignore
....... 321 2018-09-04 17:39 CMT2300A_DemoEasy-master\clear.bat
....... 8762 2018-09-04 17:39 CMT2300A_DemoEasy-master\Libraries\STM32F10x_StdPeriph_DriverFWLib3.5\INC\misc.h
....... 21207 2018-09-04 17:39 CMT2300A_DemoEasy-master\Libraries\STM32F10x_StdPeriph_DriverFWLib3.5\INC\stm32f10x_adc.h
....... 7360 2018-09-04 17:39 CMT2300A_DemoEasy-master\Libraries\STM32F10x_StdPeriph_DriverFWLib3.5\INC\stm32f10x_bkp.h
....... 26862 2018-09-04 17:39 CMT2300A_DemoEasy-master\Libraries\STM32F10x_StdPeriph_DriverFWLib3.5\INC\stm32f10x_can.h
....... 6363 2018-09-04 17:39 CMT2300A_DemoEasy-master\Libraries\STM32F10x_StdPeriph_DriverFWLib3.5\INC\stm32f10x_cec.h
....... 2068 2018-09-04 17:39 CMT2300A_DemoEasy-master\Libraries\STM32F10x_StdPeriph_DriverFWLib3.5\INC\stm32f10x_crc.h
....... 14916 2018-09-04 17:39 CMT2300A_DemoEasy-master\Libraries\STM32F10x_StdPeriph_DriverFWLib3.5\INC\stm32f10x_dac.h
....... 3699 2018-09-04 17:39 CMT2300A_DemoEasy-master\Libraries\STM32F10x_StdPeriph_DriverFWLib3.5\INC\stm32f10x_dbgmcu.h
....... 20315 2018-09-04 17:39 CMT2300A_DemoEasy-master\Libraries\STM32F10x_StdPeriph_DriverFWLib3.5\INC\stm32f10x_dma.h
....... 6640 2018-09-04 17:39 CMT2300A_DemoEasy-master\Libraries\STM32F10x_StdPeriph_DriverFWLib3.5\INC\stm32f10x_exti.h
....... 25019 2018-09-04 17:39 CMT2300A_DemoEasy-master\Libraries\STM32F10x_StdPeriph_DriverFWLib3.5\INC\stm32f10x_flash.h
....... 26283 2018-09-04 17:39 CMT2300A_DemoEasy-master\Libraries\STM32F10x_StdPeriph_DriverFWLib3.5\INC\stm32f10x_fsmc.h
....... 19790 2018-09-04 17:39 CMT2300A_DemoEasy-master\Libraries\STM32F10x_StdPeriph_DriverFWLib3.5\INC\stm32f10x_gpio.h
....... 29345 2018-09-04 17:39 CMT2300A_DemoEasy-master\Libraries\STM32F10x_StdPeriph_DriverFWLib3.5\INC\stm32f10x_i2c.h
....... 3688 2018-09-04 17:39 CMT2300A_DemoEasy-master\Libraries\STM32F10x_StdPeriph_DriverFWLib3.5\INC\stm32f10x_iwdg.h
....... 4227 2018-09-04 17:39 CMT2300A_DemoEasy-master\Libraries\STM32F10x_StdPeriph_DriverFWLib3.5\INC\stm32f10x_pwr.h
....... 29725 2018-09-04 17:39 CMT2300A_DemoEasy-master\Libraries\STM32F10x_StdPeriph_DriverFWLib3.5\INC\stm32f10x_rcc.h
....... 3722 2018-09-04 17:39 CMT2300A_DemoEasy-master\Libraries\STM32F10x_StdPeriph_DriverFWLib3.5\INC\stm32f10x_rtc.h
....... 21332 2018-09-04 17:39 CMT2300A_DemoEasy-master\Libraries\STM32F10x_StdPeriph_DriverFWLib3.5\INC\stm32f10x_sdio.h
....... 17238 2018-09-04 17:39 CMT2300A_DemoEasy-master\Libraries\STM32F10x_StdPeriph_DriverFWLib3.5\INC\stm32f10x_spi.h
....... 51263 2018-09-04 17:39 CMT2300A_DemoEasy-master\Libraries\STM32F10x_StdPeriph_DriverFWLib3.5\INC\stm32f10x_tim.h
....... 16136 2018-09-04 17:39 CMT2300A_DemoEasy-master\Libraries\STM32F10x_StdPeriph_DriverFWLib3.5\INC\stm32f10x_usart.h
....... 2851 2018-09-04 17:39 CMT2300A_DemoEasy-master\Libraries\STM32F10x_StdPeriph_DriverFWLib3.5\INC\stm32f10x_wwdg.h
....... 6821 2018-09-04 17:39 CMT2300A_DemoEasy-master\Libraries\STM32F10x_StdPeriph_DriverFWLib3.5\LIB\misc.c
....... 45894 2018-09-04 17:39 CMT2300A_DemoEasy-master\Libraries\STM32F10x_StdPeriph_DriverFWLib3.5\LIB\stm32f10x_adc.c
....... 8155 2018-09-04 17:39 CMT2300A_DemoEasy-master\Libraries\STM32F10x_StdPeriph_DriverFWLib3.5\LIB\stm32f10x_bkp.c
....... 43688 2018-09-04 17:39 CMT2300A_DemoEasy-master\Libraries\STM32F10x_StdPeriph_DriverFWLib3.5\LIB\stm32f10x_can.c
............此处省略246个文件信息
- 上一篇:车联网大数据平台应用架构设计.zip
- 下一篇:FPGA AD9226模块代码
评论
共有 条评论