teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

2

ソースコード修正

2016/03/07 10:30

投稿

G.S.
G.S.

スコア15

title CHANGED
File without changes
body CHANGED
@@ -75,8 +75,6 @@
75
75
  ```C
76
76
  TASK tsk_mbx1_send_test( VP_INT stacd )
77
77
  {
78
- T_MSGEX mbx_msgex;
79
-
80
78
  while(TRUE) //無限ループ
81
79
  {
82
80
  /**** 中 略 *****/

1

文法修正

2016/03/07 10:30

投稿

G.S.
G.S.

スコア15

title CHANGED
File without changes
body CHANGED
@@ -54,12 +54,14 @@
54
54
  {
55
55
  //メッセージ送信後も、タスクが終了しない場合、
56
56
  //送信メッセージポインタはメモリに保持される
57
- while(TRUE) //無限ループ
57
+
58
- {
59
58
  T_MSGEX mbx_msgex;
59
+
60
+ while(TRUE) //無限ループ
61
+ {
60
62
  /**** 中 略 *****/
61
- result = snd_msg(MBX1_NO,(T_MSG *)&mbx_msgex);
63
+ result = snd_msg(MBX1_NO,(T_MSG *)&mbx_msgex);
62
- }
64
+ }
63
65
  }
64
66
  ```
65
67
 
@@ -73,12 +75,13 @@
73
75
  ```C
74
76
  TASK tsk_mbx1_send_test( VP_INT stacd )
75
77
  {
76
- while(TRUE) //無限ループ
77
- {
78
78
  T_MSGEX mbx_msgex;
79
+
80
+ while(TRUE) //無限ループ
81
+ {
79
82
  /**** 中 略 *****/
80
- result = f_mbx1_send_test(); //メッセージ送信を別関数化
83
+ result = f_mbx1_send_test(); //メッセージ送信を別関数化
81
- }
84
+ }
82
85
  }
83
86
 
84
87
  static ER f_mbx1_send_test(void)