mirror of
https://github.com/dgoodlad/rtl8710-sdk.git
synced 2024-12-04 12:00:29 +00:00
Add bindings for log_uart_init and console_init
This commit is contained in:
parent
ddc414007e
commit
317d214119
2 changed files with 4 additions and 1 deletions
3
build.rs
3
build.rs
|
@ -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")
|
||||||
|
|
|
@ -5,3 +5,5 @@
|
||||||
#include "task.h"
|
#include "task.h"
|
||||||
|
|
||||||
#include "wifi_conf.h"
|
#include "wifi_conf.h"
|
||||||
|
|
||||||
|
extern void console_init(void);
|
||||||
|
|
Loading…
Reference in a new issue