Last change
on this file since 288 was 270, checked in by coas-nagasima, 7 years ago |
mruby版ECNLプロトタイピング・ツールを追加
|
-
Property svn:eol-style
set to
native
-
Property svn:keywords
set to
Id
-
Property svn:mime-type
set to
text/x-csrc
|
File size:
1.3 KB
|
Line | |
---|
1 | #include <arduino.h>
|
---|
2 | #include <string.h>
|
---|
3 |
|
---|
4 | #include <mruby.h>
|
---|
5 | #include <mruby/irep.h>
|
---|
6 | #include <mruby/string.h>
|
---|
7 | #include <mruby/variable.h>
|
---|
8 | #include <mruby/error.h>
|
---|
9 | #include <mruby/array.h>
|
---|
10 |
|
---|
11 | #include "../llbruby.h"
|
---|
12 | #include "sKernel.h"
|
---|
13 | #include "sSys.h"
|
---|
14 | #include "sSerial.h"
|
---|
15 | #include "sMem.h"
|
---|
16 | #include "sI2c.h"
|
---|
17 | #include "sServo.h"
|
---|
18 | #include "sSdCard.h"
|
---|
19 | #include "sRtc.h"
|
---|
20 |
|
---|
21 | //ãã¼ã¸ã§ã³ã®ã»ãã
|
---|
22 | volatile char ProgVer[] = {WRBB_VERSION};
|
---|
23 |
|
---|
24 | char RubyFilename[64];
|
---|
25 |
|
---|
26 | void mrb_mruby_arduino_gem_init(mrb_state *mrb)
|
---|
27 | {
|
---|
28 | kernel_Init(mrb); /* ã«ã¼ãã«é¢é£ã¡ã½ããã®è¨å® */
|
---|
29 | sys_Init(mrb); /* ã·ã¹ãã é¢é£ã¡ã½ããã®è¨å® */
|
---|
30 | serial_Init(mrb); /* ã·ãªã¢ã«éä¿¡é¢é£ã¡ã½ããã®è¨å® */
|
---|
31 | mem_Init(mrb); /* ãã¡ã¤ã«é¢é£ã¡ã½ããã®è¨å® */
|
---|
32 | i2c_Init(mrb); /* I2Cé¢é£ã¡ã½ããã®è¨å® */
|
---|
33 | servo_Init(mrb); /* ãµã¼ãé¢é£ã¡ã½ããã®è¨å® */
|
---|
34 |
|
---|
35 | #if REALTIMECLOCK
|
---|
36 | rtc_Init(mrb); /* RTCé¢é£ã¡ã½ããã®è¨å® */
|
---|
37 | #endif
|
---|
38 |
|
---|
39 | #if FIRMWARE == JAM
|
---|
40 | pancake_Init(mrb); /* PanCakeé¢é£ã¡ã½ããã®è¨å® */
|
---|
41 | #endif
|
---|
42 |
|
---|
43 | #if BOARD == BOARD_GR || FIRMWARE == SDBT || FIRMWARE == SDWF
|
---|
44 | sdcard_Init(mrb); /* SDã«ã¼ãé¢é£ã¡ã½ããã®è¨å® */
|
---|
45 | #endif
|
---|
46 |
|
---|
47 | #if FIRMWARE == SDWF
|
---|
48 | esp8266_Init(mrb); /* WiFié¢é£ã¡ã½ããã®è¨å® */
|
---|
49 | #endif
|
---|
50 | }
|
---|
51 |
|
---|
52 | void mrb_mruby_arduino_gem_final(mrb_state *mrb)
|
---|
53 | {
|
---|
54 |
|
---|
55 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.