• 大小: 0.36M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2024-04-20
  • 语言: C/C++
  • 标签: FOC  电机  同步  控制  

资源简介


资源截图

代码片段和文件信息

/*This file is prepared for Doxygen automatic documentation generation.*/
/*! \file ******************************************************************
 *
 * \brief Management of the delays.
 *
 * This file manages the “delays“ with or without an OS.
 *
 * - Compiler:           IAR EWAVR32 and GNU GCC for AVR32
 * - Supported devices:  All AVR32 devices with a USB module can be used.
 * - AppNote:
 *
 * \author               Atmel Corporation: http://www.atmel.com \n
 *                       Support and FAQ: http://support.atmel.no/
 *
 ***************************************************************************/

/* Copyright (C) 2006-2008 Atmel Corporation All rights reserved.
 *
 * Redistribution and use in source and binary forms with or without
 * modification are permitted provided that the following conditions are met:
 *
 * 1. Redistributions of source code must retain the above copyright notice
 * this list of conditions and the following disclaimer.
 *
 * 2. Redistributions in binary form must reproduce the above copyright notice
 * this list of conditions and the following disclaimer in the documentation
 * and/or other materials provided with the distribution.
 *
 * 3. The name of ATMEL may not be used to endorse or promote products derived
 * from this software without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY ATMEL ‘‘AS IS‘‘ AND ANY EXPRESS OR IMPLIED
 * WARRANTIES INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE EXPRESSLY AND
 * SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT
 * INDIRECT INCIDENTAL SPECIAL EXEMPLARY OR CONSEQUENTIAL DAMAGES
 * (INCLUDING BUT NOT LIMITED TO PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
 * LOSS OF USE DATA OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
 * ON ANY THEORY OF LIABILITY WHETHER IN CONTRACT STRICT LIABILITY OR TORT
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
 * THIS SOFTWARE EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */


//_____  I N C L U D E S ___________________________________________________

#include “delay.h“


//_____ M A C R O S ________________________________________________________


//_____ D E F I N I T I O N S ______________________________________________

//! CPU frequency
static unsigned long s_fcpu_hz;

//_____ D E C L A R A T I O N S ____________________________________________

void delay_init(unsigned long fcpu_hz)
{
  s_fcpu_hz = fcpu_hz;

}

void delay_ms(unsigned long delay)
{
  cpu_delay_ms(delay s_fcpu_hz);
}

void delay_us(unsigned long delay)
{
  cpu_delay_us(delay s_fcpu_hz);
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2010-03-02 13:25  BLDC_FOC-1_0_0\
     文件       61284  2009-02-18 18:28  BLDC_FOC-1_0_0\.cproject
     文件        2147  2009-02-18 18:28  BLDC_FOC-1_0_0\.project
     目录           0  2010-03-02 13:25  BLDC_FOC-1_0_0\.settings\
     文件          98  2009-02-18 18:28  BLDC_FOC-1_0_0\.settings\com.atmel.avr32.debug.prefs
     文件          88  2009-02-18 18:28  BLDC_FOC-1_0_0\.settings\com.atmel.avr32.managedbuilder.prefs
     目录           0  2010-03-02 13:25  BLDC_FOC-1_0_0\src\
     目录           0  2010-03-02 13:25  BLDC_FOC-1_0_0\src\APPLICATIONS\
     目录           0  2010-03-02 13:25  BLDC_FOC-1_0_0\src\APPLICATIONS\EVK110x-MOTOR-CONTROL\
     目录           0  2010-03-02 13:25  BLDC_FOC-1_0_0\src\APPLICATIONS\EVK110x-MOTOR-CONTROL\BLDC-FOC\
     目录           0  2010-03-02 13:25  BLDC_FOC-1_0_0\src\APPLICATIONS\EVK110x-MOTOR-CONTROL\BLDC-FOC\APPLICATION\
     目录           0  2010-03-12 09:53  BLDC_FOC-1_0_0\src\APPLICATIONS\EVK110x-MOTOR-CONTROL\BLDC-FOC\APPLICATION\AT32UC3B0256_EVK1101\
     目录           0  2010-03-02 13:25  BLDC_FOC-1_0_0\src\APPLICATIONS\EVK110x-MOTOR-CONTROL\BLDC-FOC\APPLICATION\AT32UC3B0256_EVK1101\GCC\
     文件        5445  2009-02-18 18:28  BLDC_FOC-1_0_0\src\APPLICATIONS\EVK110x-MOTOR-CONTROL\BLDC-FOC\APPLICATION\AT32UC3B0256_EVK1101\GCC\config.mk
     文件          65  2009-02-18 18:28  BLDC_FOC-1_0_0\src\APPLICATIONS\EVK110x-MOTOR-CONTROL\BLDC-FOC\APPLICATION\AT32UC3B0256_EVK1101\GCC\gdb_cmdfile.txt
     文件       16579  2009-02-18 18:28  BLDC_FOC-1_0_0\src\APPLICATIONS\EVK110x-MOTOR-CONTROL\BLDC-FOC\APPLICATION\AT32UC3B0256_EVK1101\GCC\Makefile
     目录           0  2010-03-12 10:05  BLDC_FOC-1_0_0\src\APPLICATIONS\EVK110x-MOTOR-CONTROL\BLDC-FOC\APPLICATION\AT32UC3B0256_EVK1101\IAR\
     文件        8077  2010-03-12 09:54  BLDC_FOC-1_0_0\src\APPLICATIONS\EVK110x-MOTOR-CONTROL\BLDC-FOC\APPLICATION\AT32UC3B0256_EVK1101\IAR\bldc_foc.ewd
     文件       28105  2010-03-12 09:56  BLDC_FOC-1_0_0\src\APPLICATIONS\EVK110x-MOTOR-CONTROL\BLDC-FOC\APPLICATION\AT32UC3B0256_EVK1101\IAR\bldc_foc.ewp
     文件         162  2008-09-22 09:39  BLDC_FOC-1_0_0\src\APPLICATIONS\EVK110x-MOTOR-CONTROL\BLDC-FOC\APPLICATION\AT32UC3B0256_EVK1101\IAR\bldc_foc.eww
     目录           0  2010-03-02 13:25  BLDC_FOC-1_0_0\src\APPLICATIONS\EVK110x-MOTOR-CONTROL\BLDC-FOC\APPLICATION\CONF\
     文件        5113  2009-02-18 18:28  BLDC_FOC-1_0_0\src\APPLICATIONS\EVK110x-MOTOR-CONTROL\BLDC-FOC\APPLICATION\CONF\conf_foc.h
     文件        9274  2009-02-18 18:28  BLDC_FOC-1_0_0\src\APPLICATIONS\EVK110x-MOTOR-CONTROL\BLDC-FOC\APPLICATION\CONF\conf_usb.h
     文件       10410  2009-02-18 18:28  BLDC_FOC-1_0_0\src\APPLICATIONS\EVK110x-MOTOR-CONTROL\BLDC-FOC\APPLICATION\CONF\cos_sin.h
     文件        5289  2009-02-18 18:28  BLDC_FOC-1_0_0\src\APPLICATIONS\EVK110x-MOTOR-CONTROL\BLDC-FOC\APPLICATION\CONF\mc300.h
     文件        2776  2009-02-18 18:27  BLDC_FOC-1_0_0\src\APPLICATIONS\EVK110x-MOTOR-CONTROL\BLDC-FOC\APPLICATION\delay.c
     文件        8383  2009-02-18 18:27  BLDC_FOC-1_0_0\src\APPLICATIONS\EVK110x-MOTOR-CONTROL\BLDC-FOC\APPLICATION\delay.h
     文件        4896  2009-02-18 18:27  BLDC_FOC-1_0_0\src\APPLICATIONS\EVK110x-MOTOR-CONTROL\BLDC-FOC\APPLICATION\device_cdc_task.c
     文件        2965  2009-02-18 18:27  BLDC_FOC-1_0_0\src\APPLICATIONS\EVK110x-MOTOR-CONTROL\BLDC-FOC\APPLICATION\device_cdc_task.h
     目录           0  2010-03-02 13:25  BLDC_FOC-1_0_0\src\APPLICATIONS\EVK110x-MOTOR-CONTROL\BLDC-FOC\APPLICATION\ENUM\
     文件         859  2009-02-18 18:28  BLDC_FOC-1_0_0\src\APPLICATIONS\EVK110x-MOTOR-CONTROL\BLDC-FOC\APPLICATION\ENUM\frame.h
............此处省略124个文件信息

评论

共有 条评论