Skip to content

Instantly share code, notes, and snippets.

View MrKevinWeiss's full-sized avatar

Kevin "Tristate Tom" Weiss MrKevinWeiss

  • HAW Hamburg
  • Hamburg
View GitHub Profile
Starting Test periph_i2c
==================================================================
Name: mutex test
Desc: Tests mutex aquire/release functionality
Result: PASS
Notes: Cannot test since it can still be used without mutex
Cannot test expected timeout due to no reset
Do we need double release failure check?
Does not check multiple busses acquired
['/home/kevinweiss/WorkingDirectory/RIOT/tests/periph_i2c/tests', '/usr/lib/python35.zip', '/usr/lib/python3.5', '/usr/lib/python3.5/plat-x86_64-linux-gnu', '/usr/lib/python3.5/lib-dynload', '/usr/local/lib/python3.5/dist-packages', '/usr/lib/python3/dist-packages', 'tests/tools']
Starting Test periph_i2c
==================================================================
Name: mutex test
Desc: Tests mutex aquire/release functionality
Result: PASS
Notes: Cannot test since it can still be used without mutex
Cannot test expected timeout due to no reset
Do we need double release failure check?
Does not check multiple busses acquired
Starting Test periph_i2c
==================================================================
Name: mutex test
Desc: Tests mutex aquire/release functionality
Result: PASS
Notes: Cannot test since it can still be used without mutex
Cannot test expected timeout due to no reset
Do we need double release failure check?
Does not check multiple busses acquired
Starting Test periph_i2c
==================================================================
Name: mutex test
Desc: Tests mutex aquire/release functionality
Result: PASS
Notes: Cannot test since it can still be used without mutex
Cannot test expected timeout due to no reset
Do we need double release failure check?
Does not check multiple busses acquired
/*
* Copyright (C) 2018 Sparkmeter
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
*/
/**
* @ingroup tests
#! /usr/bin/env python3
from philip_pal import Phil
from time import sleep
import csv
MY_PHILIP_PORT = "/dev/ttyACM0"
MY_LOG_FILENAME = "trace_log.csv"
MY_POLL_RATE = 1
@MrKevinWeiss
MrKevinWeiss / hil_tmux.sh
Last active August 19, 2020 15:41
Connect to all the HiL boards with ssh and tmux
#!/bin/sh
if [ -z "$1" ]
then
echo "Usage: hil_tmux.sh <ldap_username>"
echo "Once in try :setw synchronize-panes"
exit 1
fi
tmux new-session -d
for i in $(seq 0 14)
@MrKevinWeiss
MrKevinWeiss / print_pinouts.py
Created July 17, 2020 16:48
print_pinouts.py
#! /usr/bin/env python3
import argparse
from os import listdir
from os.path import join
PINMAP = {
"DUT_NSS": {"color": "BLACK1", "pin": 1},
"DUT_SCK": {"color": "WHITE1", "pin": 2},
"DUT_MISO": {"color": "GREY1", "pin": 3},
@MrKevinWeiss
MrKevinWeiss / my_test_script.sh
Created October 29, 2021 09:54
A simple test script for a PR
make tests-turo -C tests/unittests -j4
timeout 1s make term -C tests/unittests < <(echo "s")
#tput setaf 6; echo "Everything should have passed"; tput sgr0
USEMODULE=test_utils_result_output_json make tests-turo -C tests/unittests -j4
tput setaf 6; echo "Should fail with an make error as only one should be selected"; tput sgr0
USEMODULE=test_utils_result_output_fake make tests-turo -C tests/unittests -j4
@MrKevinWeiss
MrKevinWeiss / #17106.patch
Created November 3, 2021 11:02
#17106 patch
diff --git a/sys/fmt/fmt.c b/sys/fmt/fmt.c
index bc7aa54ecf..9cda0633e8 100644
--- a/sys/fmt/fmt.c
+++ b/sys/fmt/fmt.c
@@ -48,6 +48,7 @@ static const uint32_t _tenmap[] = {
1000000000LU,
};
+/** @brief Max precision of floating point numbers */
#define TENMAP_SIZE ARRAY_SIZE(_tenmap)