This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@REM wsl --shutdown docker-desktop | |
@REM wsl --shutdown docker-desktop-data | |
select vdisk file="C:\Users\..\AppData\Local\Docker\wsl\data\ext4.vhdx" | |
attach vdisk readonly | |
compact vdisk | |
detach vdisk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rootfs: | |
docker run -it --rm -v rootfs:/mnt -v .:/home alpine tar -C /mnt -xf /home/rootfs.tar | |
rootfs-%: | |
docker run -it --rm -v rootfs:/mnt --privileged --platform linux/arm arm32v7/alpine $* | |
ash: rootfs-ash | |
# /etc/init.d/rcK | |
# /etc/init.d/rcS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
config BR2_PACKAGE_SWIPL_FFI | |
bool "SWI-Prolog FFI" | |
depends on BR2_PACKAGE_SWIPL | |
depends on BR2_PACKAGE_LIBFFI | |
help | |
Dynamic calling C from Prolog. | |
This package deals with calling C functions from shared objects from Prolog without writing wrappers. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# swipl supports arch for which libc fenv.h provides all four macros: | |
# FE_DOWNWARD, FE_TONEAREST, FE_TOWARDZERO, FE_UPWARD | |
# See for example in glibc https://sourceware.org/git/glibc.git | |
# git grep -E '^[[:space:]]*#[[:space:]]*define[[:space:]]+FE_(TONEAREST|UPWARD|DOWNWARD|TOWARDZERO)' sysdeps/ | |
config BR2_PACKAGE_SWIPL_ARCH_SUPPORTS | |
bool | |
default y if BR2_aarch64 || BR2_aarch64_be | |
default y if BR2_arceb || BR2_arcle | |
default y if BR2_arm || BR2_armeb | |
default y if BR2_i386 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DISPLAY=${DISPLAY} | |
WAYLAND_DISPLAY=${WAYLAND_DISPLAY} | |
XDG_RUNTIME_DIR=${XDG_RUNTIME_DIR} | |
PULSE_SERVER=${PULSE_SERVER} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
config BR2_PACKAGE_PYTHON_PYMAVLINK | |
bool "python-pymavlink" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
for (uint8_t address = 0; address < 0x80; address++) | |
{ | |
HAL_StatusTypeDef status = HAL_I2C_IsDeviceReady(&hi2c1, address << 1, 3, 1000); | |
if (status == HAL_OK) | |
{ | |
ITM_SendChar(0); | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
############################################################################ | |
# | |
# Copyright (c) 2023 PX4 Development Team. All rights reserved. | |
# | |
# Redistribution and use in source and binary forms, with or without | |
# modification, are permitted provided that the following conditions are met: | |
# | |
# 1. Redistributions of source code must retain the above copyright notice, this | |
# list of conditions and the following disclaimer. | |
# 2. Redistributions in binary form must reproduce the above copyright notice, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"configurations": [ | |
{ | |
"name": "Linux", | |
"includePath": [ | |
"${workspaceFolder}/**", | |
"/opt/ros/rolling/include/*" | |
], | |
"defines": [], | |
"compilerPath": "/usr/bin/gcc", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"configurations": [ | |
{ | |
"name": "mingw", | |
"includePath": [ | |
"${workspaceFolder}/**" | |
], | |
"defines": [], | |
// VS Code complains about the compiler path if not a full path. | |
// Without the path, if finds gcc in the search paths anyway. |