stm32/hil: add f2, f3, f7, l49

This commit is contained in:
Dario Nieuwenhuis
2023-10-03 01:42:46 +02:00
parent 58280048e3
commit c0a6c78a14
5 changed files with 91 additions and 7 deletions

View File

@ -30,6 +30,7 @@ pub async fn run<D: Driver>(stack: &Stack<D>, expected: Expected) {
}
const TEST_DURATION: usize = 10;
const IO_BUFFER_SIZE: usize = 1024;
const RX_BUFFER_SIZE: usize = 4096;
const TX_BUFFER_SIZE: usize = 4096;
const SERVER_ADDRESS: Ipv4Address = Ipv4Address::new(192, 168, 2, 2);
@ -52,7 +53,7 @@ async fn test_download<D: Driver>(stack: &Stack<D>) -> usize {
}
info!("connected, testing...");
let mut rx_buf = [0; 4096];
let mut rx_buf = [0; IO_BUFFER_SIZE];
let mut total: usize = 0;
with_timeout(Duration::from_secs(TEST_DURATION as _), async {
loop {
@ -92,7 +93,7 @@ async fn test_upload<D: Driver>(stack: &Stack<D>) -> usize {
}
info!("connected, testing...");
let buf = [0; 4096];
let buf = [0; IO_BUFFER_SIZE];
let mut total: usize = 0;
with_timeout(Duration::from_secs(TEST_DURATION as _), async {
loop {
@ -134,8 +135,8 @@ async fn test_upload_download<D: Driver>(stack: &Stack<D>) -> usize {
let (mut reader, mut writer) = socket.split();
let tx_buf = [0; 4096];
let mut rx_buf = [0; 4096];
let tx_buf = [0; IO_BUFFER_SIZE];
let mut rx_buf = [0; IO_BUFFER_SIZE];
let mut total: usize = 0;
let tx_fut = async {
loop {