source: EcnlProtoTool/trunk/mrbgems/mruby-arduino/src/arduino.c@ 270

Last change on this file since 270 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//バージョンのセット
22volatile char ProgVer[] = {WRBB_VERSION};
23
24char RubyFilename[64];
25
26void 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
52void mrb_mruby_arduino_gem_final(mrb_state *mrb)
53{
54
55}
Note: See TracBrowser for help on using the repository browser.