⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 math.h

📁 BLDC_SENSORLESS controller using freeescale mcu aw60
💻 H
字号:
/*******************************************************************************
*
* Freescale Semiconductor Inc.
* (c) Copyright 2004-2006 Freescale Semiconductor, Inc.
* (c) Copyright 2001-2004 Motorola, Inc.
* ALL RIGHTS RESERVED.
*
********************************************************************************
*
* $File Name: math.h$
*
* $Date:      Jan-19-2007$
*
* $Version:   0.0.2.0$
*
* Description:
*   File contains basic mathematical functions
*
* Functions Included from math.c: 
*   unsigned int umul_16x8 (unsigned int x, unsigned char y)
*
* Functions Included from math.asm: 
*   signed int add        (signed int x, signed int y)
*   signed int neg        (signed int x)
*   signed int sub        (signed int x, signed int y)
*   unsigned int uinv_16  (unsigned int x);
*****************************************************************************/


/*****************************************************************************
    Intrinsic functions definition
*****************************************************************************/
signed int add(signed int x, signed int y);        /* source math.asm */
signed int neg(signed int x);                   /* source math.asm */
signed int sub(signed int x, signed int y);        /* source math.asm */

unsigned int umul_16x8 (unsigned int x, unsigned char y);   /* source math.c */
unsigned int uinv_16(unsigned int x);                       /* source math.asm */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -