Add bindings for log_uart_init and console_init

This commit is contained in:
David Goodlad 2019-04-24 22:31:25 +10:00
parent ddc414007e
commit 317d214119
2 changed files with 4 additions and 1 deletions

View file

@ -6,7 +6,6 @@ extern crate llvm_tools;
use glob::glob; use glob::glob;
use llvm_tools::LlvmTools; use llvm_tools::LlvmTools;
use std::env; use std::env;
use std::fmt;
use std::fs; use std::fs;
use std::path::PathBuf; use std::path::PathBuf;
use std::process::Command; use std::process::Command;
@ -333,6 +332,8 @@ fn main() {
let bindings = bindgen::Builder::default() let bindings = bindgen::Builder::default()
.header("include/wrapper.h") .header("include/wrapper.h")
.whitelist_function("log_uart_init")
.whitelist_function("console_init")
.whitelist_function("wifi_manager_init") .whitelist_function("wifi_manager_init")
.whitelist_function("wifi_off") .whitelist_function("wifi_off")
.whitelist_function("wifi_on") .whitelist_function("wifi_on")

View file

@ -5,3 +5,5 @@
#include "task.h" #include "task.h"
#include "wifi_conf.h" #include "wifi_conf.h"
extern void console_init(void);