Skip to content

Commit

Permalink
Merge pull request #37 from arkedge/feature/extern-system-funcs-for-r…
Browse files Browse the repository at this point in the history
…untime

Extern System functions for SILS runtime
  • Loading branch information
sksat authored Aug 2, 2023
2 parents aba705a + c25415f commit 2d17029
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
19 changes: 19 additions & 0 deletions System/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#[doc = "FIXME: watchdog_timer.h が単体で bindgen 不可能だったので自前定義したもの"]
pub mod WatchdogTimer {
extern "C" {
pub fn WDT_init();

pub fn WDT_clear_wdt();
}
}

#[doc = "FIXME: time_manager.h が単体で bindgen 不可能だったので自前定義したもの"]
pub mod TimeManager {
extern "C" {
pub fn TMGR_init();

pub fn TMGR_clear();

pub fn TMGR_count_up_master_clock();
}
}
1 change: 1 addition & 0 deletions c2a_core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
use core::*;
include!(concat!(env!("OUT_DIR"), "/c2a_core_main.rs"));

pub mod System;
pub mod hal;

#[cfg(feature = "export-src")]
Expand Down

0 comments on commit 2d17029

Please sign in to comment.