stm32_CAN测试代码.rar


STM32F105 为互联性单片机,其有两个 CAN 接口。再配合串 口调试助手来完成测试。分别就标准帧和扩展帧进行了测试,给出了标准帧的4种测试情况,和扩展帧的测试情况。用文档的方式记录了整个测试过程,适合初学者学习理解使用。
资源截图
代码片段和文件信息
/**
  ******************************************************************************
  * @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

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

     文件    2209232  2019-09-07 17:48  stm32_CAN测试代码STM32CAN学习测试_双CAN测试.pdf

     文件       9117  2012-03-22 15:44  stm32_CAN测试代码扩展帧测试测试1STM32_CAN500K USART_LEDFWlibincmisc.h

     文件      21825  2012-03-22 15:44  stm32_CAN测试代码扩展帧测试测试1STM32_CAN500K USART_LEDFWlibincstm32f10x_adc.h

     文件       7690  2012-03-22 15:44  stm32_CAN测试代码扩展帧测试测试1STM32_CAN500K USART_LEDFWlibincstm32f10x_bkp.h

     文件      27694  2012-03-22 15:44  stm32_CAN测试代码扩展帧测试测试1STM32_CAN500K USART_LEDFWlibincstm32f10x_can.h

     文件       6708  2012-03-22 15:44  stm32_CAN测试代码扩展帧测试测试1STM32_CAN500K USART_LEDFWlibincstm32f10x_cec.h

     文件       2297  2012-03-22 15:44  stm32_CAN测试代码扩展帧测试测试1STM32_CAN500K USART_LEDFWlibincstm32f10x_crc.h

     文件      15368  2012-03-22 15:44  stm32_CAN测试代码扩展帧测试测试1STM32_CAN500K USART_LEDFWlibincstm32f10x_dac.h

     文件       3953  2012-03-22 15:44  stm32_CAN测试代码扩展帧测试测试1STM32_CAN500K USART_LEDFWlibincstm32f10x_dbgmcu.h

     文件      20889  2012-03-22 15:44  stm32_CAN测试代码扩展帧测试测试1STM32_CAN500K USART_LEDFWlibincstm32f10x_dma.h

     文件       6962  2012-03-22 15:44  stm32_CAN测试代码扩展帧测试测试1STM32_CAN500K USART_LEDFWlibincstm32f10x_exti.h

     文件      25580  2012-03-22 15:44  stm32_CAN测试代码扩展帧测试测试1STM32_CAN500K USART_LEDFWlibincstm32f10x_flash.h

     文件      27151  2012-03-22 15:44  stm32_CAN测试代码扩展帧测试测试1STM32_CAN500K USART_LEDFWlibincstm32f10x_fsmc.h

     文件      20310  2012-03-22 15:44  stm32_CAN测试代码扩展帧测试测试1STM32_CAN500K USART_LEDFWlibincstm32f10x_gpio.h

     文件      30164  2012-03-22 15:44  stm32_CAN测试代码扩展帧测试测试1STM32_CAN500K USART_LEDFWlibincstm32f10x_i2c.h

     文件       3963  2012-03-22 15:44  stm32_CAN测试代码扩展帧测试测试1STM32_CAN500K USART_LEDFWlibincstm32f10x_iwdg.h

     文件       4518  2012-03-22 15:44  stm32_CAN测试代码扩展帧测试测试1STM32_CAN500K USART_LEDFWlibincstm32f10x_pwr.h

     文件      30587  2012-03-22 15:44  stm32_CAN测试代码扩展帧测试测试1STM32_CAN500K USART_LEDFWlibincstm32f10x_rcc.h

     文件       3992  2012-03-22 15:44  stm32_CAN测试代码扩展帧测试测试1STM32_CAN500K USART_LEDFWlibincstm32f10x_rtc.h

     文件      21998  2012-03-22 15:44  stm32_CAN测试代码扩展帧测试测试1STM32_CAN500K USART_LEDFWlibincstm32f10x_sdio.h

     文件      17860  2012-03-22 15:44  stm32_CAN测试代码扩展帧测试测试1STM32_CAN500K USART_LEDFWlibincstm32f10x_spi.h

     文件      52562  2012-03-22 15:44  stm32_CAN测试代码扩展帧测试测试1STM32_CAN500K USART_LEDFWlibincstm32f10x_tim.h

     文件      16831  2012-03-22 15:44  stm32_CAN测试代码扩展帧测试测试1STM32_CAN500K USART_LEDFWlibincstm32f10x_usart.h

     文件       3101  2012-03-22 15:44  stm32_CAN测试代码扩展帧测试测试1STM32_CAN500K USART_LEDFWlibincstm32f10x_wwdg.h

     文件       4951  2009-11-04 13:00  stm32_CAN测试代码扩展帧测试测试1STM32_CAN500K USART_LEDFWlibinc_misc.h

     文件      19585  2009-08-31 15:06  stm32_CAN测试代码扩展帧测试测试1STM32_CAN500K USART_LEDFWlibinc_stm32f10x_adc.h

     文件       7373  2009-04-06 10:30  stm32_CAN测试代码扩展帧测试测试1STM32_CAN500K USART_LEDFWlibinc_stm32f10x_bkp.h

     文件      14289  2009-04-06 10:30  stm32_CAN测试代码扩展帧测试测试1STM32_CAN500K USART_LEDFWlibinc_stm32f10x_can.h

     文件       3213  2009-04-06 10:30  stm32_CAN测试代码扩展帧测试测试1STM32_CAN500K USART_LEDFWlibinc_stm32f10x_conf.h

     文件       1980  2009-04-06 10:30  stm32_CAN测试代码扩展帧测试测试1STM32_CAN500K USART_LEDFWlibinc_stm32f10x_crc.h

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

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)