Changeset 318 for asp3_gr_sakura/trunk/tecsgen/tecs/mruby/nMruby_tMruby.c
- Timestamp:
- Aug 3, 2017, 10:46:41 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
asp3_gr_sakura/trunk/tecsgen/tecs/mruby/nMruby_tMruby.c
- Property svn:keywords deleted
-
Property svn:mime-type
changed from
text/x-csrc
totext/x-csrc; charset=UTF-8
r317 r318 1 1 /* #[<PREAMBLE>]# 2 * #[<...>]# ãã #[</...>]# ã§å²ã¾ããã³ã¡ã³ãã¯ç·¨éããªãã§ãã ãã3 * tecsmerge ã«ãããã¼ã¸ã«ä½¿ç¨ããã¾ã4 * å¼ã³å£é¢æ°#_TCPF_#2 * #[<...>]# から #[</...>]# で囲まれたコメントは編集しないでください 3 * tecsmerge によるマージに使用されます 4 * 呼び口関数 #_TCPF_# 5 5 * call port : cSerialPort signature: sSerialPort context: task 6 6 * ER cSerialPort_open( ); … … 13 13 * #[</PREAMBLE>]# */ 14 14 15 /* ãããã¿ã¤ã宣è¨ãå¤æ°ã®å®ç¾©ãããã«æ¸ãã¾ã#_PAC_# */15 /* プロトタイプ宣言や変数の定義をここに書きます #_PAC_# */ 16 16 #include "nMruby_tMruby_tecsgen.h" 17 17 #include <string.h> … … 34 34 35 35 void mrb_init_mrb(CELLCB *p_cellcb, mrb_state *mrb); 36 /* åãå£é¢æ°#_TEPF_# */36 /* 受け口関数 #_TEPF_# */ 37 37 /* #[<ENTRY_PORT>]# eMrubyBody 38 38 * entry port: eMrubyBody … … 93 93 94 94 /* #[<POSTAMBLE>]# 95 * ããããä¸ã«éåãå£é¢æ°ãæ¸ãã¾ã95 * これより下に非受け口関数を書きます 96 96 * #[</POSTAMBLE>]#*/ 97 97 … … 116 116 _sbrk(size_t incr) 117 117 { 118 // TODO: æ£ãããã¼ããµã¤ãºãæå®ããã㨠(EV3ã¯RAM 64MB)118 // TODO: 正しいヒープサイズを指定すること (EV3はRAM 64MB) 119 119 extern char __heap_start; 120 static uint32_t cs3_heap_end = &__heap_start + MEM_SIZE; // ãã¼ãã®æå¾ã¢ãã¬ã¹120 static uint32_t cs3_heap_end = &__heap_start + MEM_SIZE; // ヒープの最後アドレス 121 121 static char *heap_end = &__heap_start; 122 122 char *prev_heap_end; … … 158 158 char *cp; 159 159 cp = (char*)buf; 160 /* ã·ãªã¢ã«ãã¼ããçµåããã¦ããå ´åã®ã¿å¼ã³åºã160 /* シリアルポートが結合されている場合のみ呼び出す 161 161 if(is_cSerialPort_joined()){ 162 162 //cSerialPort_write(buf, size);
Note:
See TracChangeset
for help on using the changeset viewer.