Skip to content

Commit b61a6ad

Browse files
committed
Fix CI and clocks' range
1 parent ffd6ba7 commit b61a6ad

File tree

3 files changed

+16
-16
lines changed

3 files changed

+16
-16
lines changed

.travis.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,24 @@ language: rust
22
matrix:
33
include:
44
- rust: nightly
5-
env: FEATURES='stm32f4xx-hal/stm32f407'
5+
env: FEATURES='stm32f407'
66
- rust: nightly
7-
env: FEATURES='stm32f4xx-hal/stm32f417'
7+
env: FEATURES='stm32f417'
88
- rust: nightly
9-
env: FEATURES='stm32f4xx-hal/stm32f427'
9+
env: FEATURES='stm32f427'
1010
- rust: nightly
11-
env: FEATURES='stm32f4xx-hal/stm32f429'
11+
env: FEATURES='stm32f429'
1212
- rust: nightly
13-
env: FEATURES='stm32f4xx-hal/stm32f437'
13+
env: FEATURES='stm32f437'
1414
- rust: nightly
15-
env: FEATURES='stm32f4xx-hal/stm32f439'
15+
env: FEATURES='stm32f439'
1616
- rust: nightly
17-
env: FEATURES='stm32f4xx-hal/stm32f469'
17+
env: FEATURES='stm32f469'
1818
- rust: nightly
19-
env: FEATURES='stm32f4xx-hal/stm32f479'
19+
env: FEATURES='stm32f479'
2020
- rust: nightly
21-
env: FEATURES='stm32f4xx-hal/rt nucleo-f429zi' ARGS="--release --target=thumbv7em-none-eabihf --example=pktgen"
21+
env: FEATURES='stm32f429' ARGS="--release --target=thumbv7em-none-eabihf --example=pktgen"
2222
- rust: nightly
23-
env: FEATURES='stm32f4xx-hal/rt nucleo-f429zi smoltcp-phy' ARGS="--release --target=thumbv7em-none-eabihf --example=ip"
23+
env: FEATURES='stm32f429 smoltcp-phy smoltcp-log smoltcp-verbose' ARGS="--release --target=thumbv7em-none-eabihf --example=ip"
2424
script:
2525
- "cargo build --target=`uname -m`-unknown-linux-gnu --no-default-features --features \"$FEATURES\""

run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ if [[ "$EXAMPLE" = "" ]]; then
1313
fi
1414

1515
cargo build --target=thumbv7em-none-eabihf --release \
16-
--features="stm32f4xx-hal/rt nucleo-f429zi smoltcp-phy" \
16+
--features="stm32f429 smoltcp-phy smoltcp-log smoltcp-verbose" \
1717
--example=$EXAMPLE \
1818
|| exit 1
1919

src/lib.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ use rx::{RxPacket, RxRing, RxRingEntry};
2121
mod tx;
2222
pub use tx::{TxDescriptor, TxError};
2323
use tx::{TxRing, TxRingEntry};
24-
mod setup;
24+
pub mod setup;
2525
pub use setup::EthPins;
2626
use setup::{
2727
AlternateVeryHighSpeed, RmiiCrsDv, RmiiRefClk, RmiiRxD0, RmiiRxD1, RmiiTxD0, RmiiTxD1,
@@ -121,10 +121,10 @@ impl<'rx, 'tx> Eth<'rx, 'tx> {
121121

122122
fn init(&mut self, clocks: Clocks) -> Result<(), WrongClock> {
123123
let clock_range = match clocks.hclk().0 {
124-
60_000_000..=99_000_000 => ETH_MACMIIAR_CR_HCLK_DIV_42,
125-
100_000_000..=149_000_000 => ETH_MACMIIAR_CR_HCLK_DIV_62,
126-
25_000_000..=34_000_000 => ETH_MACMIIAR_CR_HCLK_DIV_16,
127-
35_000_000..=59_000_000 => ETH_MACMIIAR_CR_HCLK_DIV_26,
124+
60_000_000..=99_999_999 => ETH_MACMIIAR_CR_HCLK_DIV_42,
125+
100_000_000..=149_999_999 => ETH_MACMIIAR_CR_HCLK_DIV_62,
126+
25_000_000..=34_999_999 => ETH_MACMIIAR_CR_HCLK_DIV_16,
127+
35_000_000..=59_999_999 => ETH_MACMIIAR_CR_HCLK_DIV_26,
128128
150_000_000..=168_000_000 => ETH_MACMIIAR_CR_HCLK_DIV_102,
129129
_ => return Err(WrongClock),
130130
};

0 commit comments

Comments
 (0)