Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extern System functions for SILS runtime #37

Merged
merged 2 commits into from
Aug 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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