rt-thread/bsp/synwit/swm341/libraries/SWM341_StdPeriph_Driver/SWM341_div.c

41 lines
1.8 KiB
C
Raw Normal View History

/******************************************************************************************************************************************
* : SWM341_div.c
* : SWM341单片机的DIV硬件除法功能驱动库
* : http://www.synwit.com.cn/e/tool/gbook/?bid=1
* :
* : V1.0.0 2016130
* :
*
*
*******************************************************************************************************************************************
* @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, SYNWIT 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 CONN-
* -ECTION WITH THEIR PRODUCTS.
*
* COPYRIGHT 2012 Synwit Technology
*******************************************************************************************************************************************/
#include "SWM341.h"
#include "SWM341_div.h"
/******************************************************************************************************************************************
* : DIV_Init()
* :
* : DIV_TypeDef * DIVx DIV
* :
* :
******************************************************************************************************************************************/
void DIV_Init(DIV_TypeDef * DIVx)
{
switch((uint32_t)DIVx)
{
case ((uint32_t)DIV):
SYS->CLKEN0 |= (0x01u<< SYS_CLKEN0_DIV_Pos);
break;
}
}