MATLAB C2000----- 例程(一)GPIO点灯
官方链接[MATLAB 点灯]
(一)模型
前面模块为时间模块 后面为gpio口 设置了翻转模式 这个为最简单的模式
(二)烧入过程
- "CTRL+E"打开设置
- 选择一下设置之后,准备烧入板卡
- 等待一段时间会在你的工作路径下生成对应的文件当然会生成ccs代码
(三)物理现象
(四)代码分析
/*
* File: ert_main.c
*
* Code generated for Simulink model 'c28379D_cpu1_blink'.
*
* Model version : 2.0
* Simulink Coder version : 9.5 (R2021a) 14-Nov-2020
* C/C++ source code generated on : Wed Aug 4 22:46:51 2021
*
* Target selection: ert.tlc
* Embedded hardware selection: Texas Instruments->C2000
* Code generation objectives: Unspecified
* Validation result: Not run
*/
#include "c28379D_cpu1_blink.h"
#include "rtwtypes.h"
volatile int<