Skip to content

Instantly share code, notes, and snippets.

# SPDX-License-Identifier: Apache-2.0
cmake_minimum_required(VERSION 3.20.0)
# find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
find_package(Zephyr COMPONENTS FindZephyr-sdk zephyr_default yaml pre_dt dts REQUIRED HINTS $ENV{ZEPHYR_BASE})
project(hello_world)
#!/bin/bash
# Configuration
#GOOD_COMMIT="v4.0.0"
GOOD_COMMIT="v4.0.0"
# Tests to exclude (space-separated list of test names)
# Example: EXCLUDED_TESTS="drivers.adc kernel.common"
EXCLUDED_TESTS=""
@kartben
kartben / gist:7d7001cbf75e0e7ffda8e73120b13a86
Last active January 29, 2025 07:52
PRs with failed compliance check
gh pr list --state open --json number,title,url,statusCheckRollup --limit 50 -S "status:failure" \
| jq -r '
.[] |
. as $pr |
[ $pr.statusCheckRollup[]? |
select(
.__typename == "CheckRun" and
(.name | contains("Run compliance checks")) and
.conclusion == "FAILURE"
)
#!/usr/bin/env python3
import subprocess
import csv
from collections import defaultdict
from datetime import datetime
def get_contributor_commits():
try:
# Get all commits with commit date and author, sorted by oldest first
/dts-v1/;
/* node defined in ../../dts/common/skeleton.dtsi:9 */
/ {
#address-cells = < 0x1 >; /* in ../../dts/common/skeleton.dtsi:10 */
#size-cells = < 0x1 >; /* in ../../dts/common/skeleton.dtsi:11 */
model = "reel board"; /* in ../../dts/common/skeleton.dtsi:14 */
compatible = "phytec,reel_board"; /* in ../../dts/common/skeleton.dtsi:15 */
@kartben
kartben / ble_tiny_click.webp
Last active July 29, 2024 09:30
ble_tiny_click
ble_tiny_click.webp
bogus ReSructuredText bullet/ordered lists
^[^-][A-Za-z].*\n\*.*\n\*.*\n
^[^-][A-Za-z].*\n-.*\n\*.*\n
^[^-][A-Za-z].*\n\#.*\n\*.*\n
cwebp ~/Downloads/nrf54l15dk_nrf54l15.jpg -o out.webp -q 65
@kartben
kartben / gist:c59e9e0b4e89f784b3ecd3cde92c21ae
Last active November 30, 2023 12:23
Zephyr latency_measures
M5Stack AtomS3 @240MHz
*** Booting Zephyr OS build zephyr-v3.5.0-2395-gc8f4455ef8f9 ***
Preemptive threads ctx switch via k_yield (K -> K) : 579 cycles , 2412 ns :
Cooperative threads ctx switch via k_yield (K -> K) : 568 cycles , 2370 ns :
Switch from ISR back to interrupted thread : 148 cycles , 620 ns :
Switch from ISR to another thread (kernel) : 304 cycles , 1270 ns :
Create kernel thread from kernel thread : 215 cycles , 896 ns :
Start kernel thread from kernel thread : 573 cycles , 2391 ns :
Suspend kernel thread from kernel thread : 681 cycles , 2841 ns :