提交 889b0fd2 编写于 作者: 饶先宏's avatar 饶先宏

202105241850

上级 aa8fe0f7
...@@ -32,6 +32,7 @@ ...@@ -32,6 +32,7 @@
/* /*
* digitled.c * digitled.c
202105221536: rxh, initial version 202105221536: rxh, initial version
202105241522:rxh, 增加Detector接口
*/ */
#include "stdlib.h" #include "stdlib.h"
...@@ -84,7 +85,7 @@ typedef struct _sDigitLed { ...@@ -84,7 +85,7 @@ typedef struct _sDigitLed {
unsigned int bReadAddr; /* 决定当前周期是否响应 */ unsigned int bReadAddr; /* 决定当前周期是否响应 */
int wRead_cur; int wRead_cur;
unsigned int bReadAddr_cur; unsigned int bReadAddr_cur;
/* /*
从设备的7个输入端口 从设备的7个输入端口
0.nwReset 0.nwReset
...@@ -275,7 +276,7 @@ static int digitled_hdl4se_unit_ClkTick(HOBJECT object) ...@@ -275,7 +276,7 @@ static int digitled_hdl4se_unit_ClkTick(HOBJECT object)
pobj->keypressed = keypressed; pobj->keypressed = keypressed;
for (i = 0; i < 7; i++) { for (i = 0; i < 7; i++) {
if (0 == objectCall3(pobj->fromunit[i], GetValue, 0, 32, temp)) { if (0 == objectCall3(pobj->fromunit[i], GetValue, i, 32, temp)) {
objectCall1(temp, GetInt, &pobj->portdata[i]); objectCall1(temp, GetInt, &pobj->portdata[i]);
} }
} }
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
** ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF ** ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
** THE POSSIBILITY OF SUCH DAMAGE. ** THE POSSIBILITY OF SUCH DAMAGE.
*/ */
/* /*
* hdl4se_module.c * hdl4se_module.c
修改记录: 修改记录:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册