/** @file het.c
* @brief HET Driver Implementation File
* @date 07-July-2017
* @version 04.07.00
*
*/
/*
* Copyright (C) 2009-2016 Texas Instruments Incorporated - www.ti.com
*
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 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.
*
* Neither the name of Texas Instruments Incorporated nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "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 DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* OWNER OR CONTRIBUTORS 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.
*
*/
#include "het.h"
#include "sys_vim.h"
/* USER CODE BEGIN (0) */
/* USER CODE END */
/*----------------------------------------------------------------------------*/
/* Global variables */
static const uint32 s_het1pwmPolarity[8U] =
{
3U,
3U,
3U,
3U,
3U,
3U,
3U,
3U,
};
static const uint32 s_het2pwmPolarity[8U] =
{
3U,
3U,
3U,
3U,
3U,
3U,
3U,
3U,
};
/*----------------------------------------------------------------------------*/
/* Default Program */
/** @var static const hetINSTRUCTION_t het1PROGRAM[58]
* @brief Default Program
*
* Het program running after initialization.
*/
static const hetINSTRUCTION_t het1PROGRAM[58U] =
{
/* CNT: Timebase
* - Instruction = 0
* - Next instruction = 1
* - Conditional next instruction = na
* - Interrupt = na
* - Pin = na
* - Reg = T
*/
{
/* Program */
0x00002C80U,
/* Control */
0x01FFFFFFU,
/* Data */
0xFFFFFF80U,
/* Reserved */
0x00000000U
},
/* PWCNT: PWM 0 -> Duty Cycle
* - Instruction = 1
* - Next instruction = 2
* - Conditional next instruction = 2
* - Interrupt = 1
* - Pin = 8
*/
{
/* Program */
0x000055C0U,
/* Control */
(0x00004006U | (uint32)((uint32)8U << 8U) | (uint32)((uint32)3U << 3U)),
/* Data */
0x00000000U,
/* Reserved */
0x00000000U
},
/* DJZ: PWM 0 -> Period
* - Instruction = 2
* - Next instruction = 3
* - Conditional next instruction = 41
* - Interrupt = 2
* - Pin = na
*/
{
/* Program */
0x00007480U,
/* Control */
0x00052006U,
/* Data */
0x00000000U,
/* Reserved */
0x00000000U
},
/* PWCNT: PWM 1 -> Duty Cycle
* - Instruction = 3
* - Next instruction = 4
* - Conditional next instruction = 4
* - Interrupt = 3
* - Pin = 10
*/
{
/* Program */
0x000095C0U,
/* Control */
(0x00008006U | (uint32)((uint32)10U << 8U) | (uint32)((uint32)3U << 3U)),
/* Data */
0x00000000U,
/* Reserved */
0x00000000U
},
/* DJZ: PWM 1 -> Period
* - Instruction = 4
* - Next instruction = 5
* - Conditional next instruction = 43
* - Interrupt = 4
* - Pin = na
*/
{
/* Program */
0x0000B480U,
/* Control */
0x00056006U,
/* Data */
0x00000000U,
/* Reserved */
0x00000000U
},
/* PWCNT: PWM 2 -> Duty Cycle
* - Instruction = 5
* - Next instruction = 6
* - Conditional next instruction = 6
* - Interrupt = 5
* - Pin = 12
*/
{
/* Program */
0x0000D5C0U,
/* Control */
(0x0000C006U | (uint32)((uint32)12U << 8U) | (uint32)((uint32)3U << 3U)),
/* Data */
0x00000000U,
/* Reserved */
0x00000000U
},
/* DJZ: PWM 2 -> Period
* - Instruction = 6
* - Next instruction = 7
* - Conditional next instruction = 45
* - Interrupt = 6
* - Pin = na
*/
{
/* Program */
0x0000F480U,
/* Control */
0x0005A006U,
/* Data */
0x00000000U,
/* Reserved */
0x00000000U
},
/* PWCNT: PWM 3 -> Duty Cycle
* - Instruction = 7
* - Next instruction = 8
* - Conditional next instruction = 8
* - Interrupt = 7
* - Pin = 14
*/
{
/* Program */
0x000115C0U,
/* Control */
(0x00010006U | (uint32)((uint32)14U << 8U) | (uint32)((uint32)3U << 3U)),
/* Data */
0x00000000U,
/* Reserved */
0x00000000U
},
/* DJZ: PWM 3 -> Period
* - Instruction = 8
* - Next instruction = 9
* - Conditional next instruction = 47
* - Interrupt = 8
* - Pin = na
*/
{
/* Program */
0x00013480U,
/* Control */
0x0005E006U,
/* Data */
0x00000000U,
/* Reserved */
0x00000000U
},
/* PWCNT: PWM 4 -> Duty Cycle
* - Instruction = 9
* - Next instruction = 10
* - Conditional next instruction = 10
* - Interrupt = 9
* - Pin = 16
*/
{
/* Program */
0x000155C0U,
/* Control */
(0x00014006U | (uint32)((uint32)16U << 8U) | (uint32)((uint32)3U << 3U)),
/* Data */
0x00000000U,
/* Reserved */
0x00000000U
},
/* DJZ: PWM 4 -> Period
* - Instruction = 10
* - Next instruction = 11
* - Conditional next instruction = 49
*
没有合适的资源?快使用搜索试试~ 我知道了~
test.rar_570的HTU_TMS570开发__gio_ti的pbist
共98个文件
h:60个
c:25个
asm:5个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 200 浏览量
2022-07-15
12:17:10
上传
评论
收藏 297KB RAR 举报
温馨提示
简单的基于TMS570芯片的样例,其中包含基本的GIO等初始化
资源推荐
资源详情
资源评论
收起资源包目录
test.rar (98个子文件)
test
main.c 49B
include
hal_stdtypes.h 5KB
reg_dcc.h 4KB
reg_sci.h 5KB
sys_selftest.h 17KB
reg_vim.h 4KB
reg_mibspi.h 10KB
sci.h 7KB
ti_fee.h 32KB
sys_pmu.h 8KB
pinmux.h 20KB
sys_mpu.h 21KB
esm.h 33KB
ti_fee_types.h 11KB
reg_htu.h 4KB
reg_can.h 9KB
reg_crc.h 6KB
htu.h 2KB
fee_interface.h 13KB
sys_pmm.h 6KB
ti_fee_cfg.h 3KB
gio.h 7KB
reg_spi.h 7KB
system.h 17KB
reg_rti.h 6KB
can.h 36KB
reg_i2c.h 6KB
spi.h 9KB
sys_common.h 4KB
rti.h 9KB
reg_stc.h 4KB
adc.h 12KB
mibspi.h 26KB
reg_gio.h 4KB
reg_flash.h 5KB
reg_adc.h 10KB
crc.h 9KB
reg_system.h 7KB
het.h 25KB
reg_efc.h 4KB
dcc.h 12KB
Device_TMS570LS31.h 5KB
reg_tcram.h 3KB
reg_pbist.h 4KB
MemMap.h 2KB
sys_dma.h 10KB
sys_pcr.h 10KB
reg_dma.h 10KB
reg_het.h 7KB
sys_vim.h 23KB
reg_esm.h 4KB
reg_pinmux.h 6KB
i2c.h 9KB
reg_pcr.h 4KB
Device_types.h 6KB
std_nhet.h 67KB
reg_lin.h 6KB
sys_core.h 12KB
reg_pmm.h 4KB
Device_header.h 3KB
lin.h 10KB
test.hcg 14KB
test.dil 454KB
.settings
org.eclipse.cdt.codan.core.prefs 62B
org.eclipse.cdt.debug.core.prefs 123B
.project 834B
.cproject 23KB
.ccsproject 518B
Debug
source
sys_core.asm 19KB
sys_pmm.c 17KB
sys_dma.c 16KB
sci.c 23KB
sys_link.cmd 4KB
sys_mpu.asm 14KB
het.c 107KB
spi.c 27KB
sys_pcr.c 23KB
sys_phantom.c 2KB
lin.c 25KB
dabort.asm 6KB
can.c 59KB
i2c.c 28KB
notification.c 9KB
sys_main.c 2KB
crc.c 18KB
sys_selftest.c 92KB
gio.c 19KB
esm.c 24KB
sys_vim.c 33KB
mibspi.c 99KB
adc.c 36KB
rti.c 25KB
dcc.c 16KB
sys_intvecs.asm 2KB
pinmux.c 10KB
sys_pmu.asm 7KB
sys_startup.c 21KB
system.c 26KB
共 98 条
- 1
资源评论
寒泊
- 粉丝: 78
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功