-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update the firware binary to work with latest cc3200-rs (#39)
* Update the firware binary to work with latest cc3200-rs
- Loading branch information
1 parent
ec2880a
commit 112c0d1
Showing
7 changed files
with
280 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ target | |
openocd.log | ||
firmware.map | ||
Cargo.lock | ||
src/config.rs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,17 @@ | ||
#!/bin/sh | ||
|
||
arm-none-eabi-gcc --version | ||
|
||
curl https://sh.rustup.rs -sSf -o rustup.sh | ||
chmod +x ./rustup.sh | ||
./rustup.sh -y | ||
export PATH=/home/travis/.cargo/bin:$PATH | ||
rustup default nightly | ||
rustup override set nightly-2016-11-06 | ||
rustup component add rust-src | ||
cargo install xargo | ||
cargo --version | ||
xargo --version | ||
rustc --version | ||
arm-none-eabi-gcc --version | ||
|
||
cp src/config.rs.sample src/config.rs | ||
./build.sh | ||
./build.sh --release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// This Source Code Form is subject to the terms of the Mozilla Public | ||
// License, v. 2.0. If a copy of the MPL was not distributed with this file, | ||
// You can obtain one at http://mozilla.org/MPL/2.0/. | ||
|
||
use cc3200::simplelink::SlSecParams; | ||
|
||
// The default SSID you want to connect to. | ||
pub const SSID: &'static str = "OpenWireless.org"; | ||
|
||
pub fn security_params() -> Option<SlSecParams> { | ||
// If using an open access point, just return None | ||
Some(SlSecParams::wpa2("YOUR-PASSWORD-HERE")) | ||
//None | ||
} | ||
|
||
pub const SENSOR_READING_COUNT: u32 = 10; | ||
pub const SERVER_URL: &'static str = "http://10.252.33.211:8000/endpoint"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.