<commit_before>/**
  * @file       tim.c
  * @brief      Ӳʱ
  * @author     redoc <<EMAIL>>
  * @version    v1.0
  * @date       2017-08-08
  *
  * @note
  * [2017-08-08] <redoc> v1.0
  * ʼ汾
  *
  * @remark
  */

/* Includes ------------------------------------------------------------------*/
#include "includes.h"
#include "tim.h"
#include "ioout.h"


/* typedef -----------------------------------------------------------*/
/* define ------------------------------------------------------------*/
/* macro -------------------------------------------------------------*/
/* variables ---------------------------------------------------------*/
TIM_HandleTypeDef htim3;


/* function prototypes -----------------------------------------------*/
/* functions ---------------------------------------------------------*/


/**
  * @brief	TIM3 init function
  * @param	void
  *
  * @return	void
  * @remark ʱ
  */
void MX_TIM3_Init(void)
{
    TIM_ClockConfigTypeDef sClockSourceConfig;
    TIM_MasterConfigTypeDef sMasterConfig;

    //10ms
    htim3.Instance = TIM3;
    htim3.Init.Prescaler = 71;
    htim3.Init.CounterMode = TIM_COUNTERMODE_UP;
    htim3.Init.Period = 10000-1;
    htim3.Init.ClockDivision = TIM_CLOCKDIVISION_DIV1;
    HAL_TIM_Base_Init(&htim3);

    sClockSourceConfig.ClockSource = TIM_CLOCKSOURCE_INTERNAL;
    HAL_TIM_ConfigClockSource(&htim3, &sClockSourceConfig);

    sMasterConfig.MasterOutputTrigger = TIM_TRGO_RESET;
    sMasterConfig.MasterSlaveMode = TIM_MASTERSLAVEMODE_DISABLE;
    HAL_TIMEx_MasterConfigSynchronization(&htim3, &sMasterConfig);

    HAL_TIM_Base_Start_IT(&htim3);<commit_msg>tim.c空格处理<commit_after>/**
  * @file       tim.c
  * @brief      Ӳʱ
  * @author     redoc <<EMAIL>>
  * @version    v1.0
  * @date       2017-08-08
  *
  * @note
  * [2017-08-08] <redoc> v1.0
  * ʼ汾
  *
  * @remark
  */

/* Includes ------------------------------------------------------------------*/
#include "includes.h"
#include "tim.h"
#include "ioout.h"


/* typedef -----------------------------------------------------------*/
/* define ------------------------------------------------------------*/
/* macro -------------------------------------------------------------*/
/* variables ---------------------------------------------------------*/
TIM_HandleTypeDef htim3;


/* function prototypes -----------------------------------------------*/
/* functions ---------------------------------------------------------*/


/**
  * @brief  TIM3 init function
  * @param  void
  *
  * @return void
  * @remark ʱ
  */
void MX_TIM3_Init(void)
{
    TIM_ClockConfigTypeDef sClockSourceConfig;
    TIM_MasterConfigTypeDef sMasterConfig;

    //10ms
    htim3.Instance = TIM3;
    htim3.Init.Prescaler = 71;
    htim3.Init.CounterMode = TIM_COUNTERMODE_UP;
    htim3.Init.Period = 10000-1;
    htim3.Init.ClockDivision = TIM_CLOCKDIVISION_DIV1;
    HAL_TIM_Base_Init(&htim3);

    sClockSourceConfig.ClockSource = TIM_CLOCKSOURCE_INTERNAL;
    HAL_TIM_ConfigClockSource(&htim3, &sClockSourceConfig);

    sMasterConfig.MasterOutputTrigger = TIM_TRGO_RESET;
    sMasterConfig.MasterSlaveMode = TIM_MASTERSLAVEMODE_DISABLE;
    HAL_TIMEx_MasterConfigSynchronization(&htim3, &sMasterConfig);

    HAL_TIM_Base_Start_IT(&htim3);
{'fraction_non_alphanumeric': 0.34451970443349755, 'fraction_numerical': 0.027093596059113302, 'mean_word_length': 1.3307030129124822, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6576591', 'n_tokens_mistral': 1035, 'n_tokens_neox': 956, 'n_words': 145}