Skip to content

Instantly share code, notes, and snippets.

View gmarull's full-sized avatar
📵

Gerard Marull-Paretas gmarull

📵
View GitHub Profile
@gmarull
gmarull / example-tex2svg.py
Last active September 21, 2023 01:56
Render TeX to SVG in Python using matplotlib and display with PyQt
import sys
from PyQt5.QtWidgets import QApplication
from PyQt5.QtSvg import QSvgWidget
from io import BytesIO
import matplotlib.pyplot as plt
# matplotlib: force computer modern font set
plt.rc('mathtext', fontset='cm')
@gmarull
gmarull / Dockerfile
Created May 2, 2020 16:15
Zephyr CircleCI Example (out of tree application)
FROM ubuntu:20.04
ARG DEBIAN_FRONTEND=noninteractive
# install dependencies
RUN apt-get update && apt-get install -y \
# CircleCI
software-properties-common \
wget \
git \
@gmarull
gmarull / stm32_pinctrl_gen.py
Last active June 23, 2020 13:07
Utility to autogenerate Zephyr DT pinctrl files for all STM32 microcontrollers.
"""
Utility to autogenerate Zephyr DT pinctrl files for all STM32 microcontrollers.
Usage::
python3 stm32_pinctrl_gen.py -p /path/to/STM32CubeMX -o /path/to/output_dir
Copyright (c) 2020 Teslabs Engineering S.L.
SPDX-License-Identifier: Apache-2.0
-- west build: running target rom_report
[1/1] cd /home/gmarull/ws/gmarull/zephyrproject/zephyr/build/zephyr/cmake/reports && /usr/bin/python3.7 /home/gmarull/ws/gmarull/zephyrproject/zephyr/scripts/footprint/size_report -F --objdump /home/gmarull/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-objdump --objcopy /home/gmarull/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-objcopy --nm /home/gmarull/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-nm -o /home/gmarull/ws/gmarull/zephyrproject/zephyr/build/zephyr
Path Size %
==============================================================================================================
24349 42.51%
home 24349 42.51%
gmarull 243
WARNING: /home/runner/work/sdk-nrf/sdk-nrf/ncs/nrfxlib/nrf_802154/driver/include/nrf_802154_config.h:429: preprocessing issue while doing constant expression evaluation: syntax error
WARNING: /home/runner/work/sdk-nrf/sdk-nrf/ncs/nrfxlib/nrf_802154/driver/include/nrf_802154.h:105: preprocessing issue while doing constant expression evaluation: syntax error
WARNING: /home/runner/work/sdk-nrf/sdk-nrf/ncs/nrfxlib/nrf_802154/driver/include/nrf_802154.h:1450: preprocessing issue while doing constant expression evaluation: syntax error
WARNING: /home/runner/work/sdk-nrf/sdk-nrf/ncs/nrfxlib/nrf_802154/driver/include/nrf_802154.h:1604: preprocessing issue while doing constant expression evaluation: syntax error
WARNING: /home/runner/work/sdk-nrf/sdk-nrf/ncs/nrfxlib/nrf_802154/driver/include/nrf_802154.h:1757: preprocessing issue while doing constant expression evaluation: syntax error
WARNING: /home/runner/work/sdk-nrf/sdk-nrf/ncs/nrfxlib/nrf_802154/driver/include/nrf_802154.h:1821: unbalanced grouping commands
WARNI
/home/runner/work/zephyr/zephyr/doc/_build/src/boards/arm/rpi_pico/doc/index.rst:56: WARNING: 'dtcompatible' reference target not found: rpi,pico-uart
/home/runner/work/zephyr/zephyr/doc/_build/src/boards/arm/rpi_pico/doc/index.rst:59: WARNING: 'dtcompatible' reference target not found: rpi,pico-gpio
/home/runner/work/zephyr/zephyr/doc/_build/src/boards/posix/native_posix/doc/index.rst:428: WARNING: c:func reference target not found: native_rtc_adjust_clock
/home/runner/work/zephyr/zephyr/doc/_build/src/boards/posix/native_posix/doc/index.rst:491: WARNING: c:func reference target not found: native_rtc_offset
/home/runner/work/zephyr/zephyr/doc/_build/src/boards/posix/native_posix/doc/index.rst:499: WARNING: c:func reference target not found: native_rtc_gettime_us
/home/runner/work/zephyr/zephyr/doc/_build/src/boards/posix/native_posix/doc/index.rst:499: WARNING: c:func reference target not found: native_rtc_gettime
/home/runner/work/zephyr/zephyr/doc/_build/src/boards/posix/native_posix/doc/index.rst:516: WAR