From 317d21411975554509c8292ba9fe44729971822c Mon Sep 17 00:00:00 2001 From: David Goodlad Date: Wed, 24 Apr 2019 22:31:25 +1000 Subject: [PATCH] Add bindings for log_uart_init and console_init --- build.rs | 3 ++- include/wrapper.h | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/build.rs b/build.rs index 00887fd..96ec6d3 100644 --- a/build.rs +++ b/build.rs @@ -6,7 +6,6 @@ extern crate llvm_tools; use glob::glob; use llvm_tools::LlvmTools; use std::env; -use std::fmt; use std::fs; use std::path::PathBuf; use std::process::Command; @@ -333,6 +332,8 @@ fn main() { let bindings = bindgen::Builder::default() .header("include/wrapper.h") + .whitelist_function("log_uart_init") + .whitelist_function("console_init") .whitelist_function("wifi_manager_init") .whitelist_function("wifi_off") .whitelist_function("wifi_on") diff --git a/include/wrapper.h b/include/wrapper.h index fc2d1a4..28083c8 100644 --- a/include/wrapper.h +++ b/include/wrapper.h @@ -5,3 +5,5 @@ #include "task.h" #include "wifi_conf.h" + +extern void console_init(void);