This file contains hidden or 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
while true; do | |
# Wait for a connection on port 8443 | |
nc -l -p 65443 <<EOF | |
HTTP/1.1 200 OK | |
Content-Type: text/plain | |
Content-Length: 13 | |
Hello, world! | |
EOF | |
done |
This file contains hidden or 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
#!/bin/bash | |
# Changable Variables | |
DEV="/dev/mmcblk1" | |
TEST_PATTERN_FILENAME="test_pattern.bin" | |
BLOCKS_PER_CHUNK=$((2** 13)) # Increase this will make the test go faster. The value should be a multiple of power of 2. Value 15 is the MAX, value >= 13 didn't have a big impact on speed. | |
# Calculate total blocks based on block size | |
TOTAL_BYTES=$(blockdev --getsize64 "$DEV") |
This file contains hidden or 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
#include "include/dt-bindings/input/input.h" | |
#include "include/dt-bindings/interrupt-controller/irq.h" | |
#include "include/dt-bindings/gpio/gpio.h" | |
#include "include/dt-bindings/pinctrl/pinctrl-zynqmp.h" | |
#include "include/dt-bindings/phy/phy.h" | |
/ { | |
chosen { | |
bootargs = "earlycon console=ttyPS0,115200 clk_ignore_unused root=/dev/mmcblk0p2 rw rootwait cma=512M"; | |
nvmem0 = &eui_eepromm; |
This file contains hidden or 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
XTerm*faceName: Monospace | |
XTerm*faceSize: 15 | |
xterm*background: black | |
xterm*foreground: white |
This file contains hidden or 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
#include "FreeRTOS.h" | |
#include "task.h" | |
#include "xil_printf.h" | |
#include "xparameters.h" | |
#define DELAY_5s 5000UL | |
#define DELAY_1s 1000UL | |
//Thread implementation |
This file contains hidden or 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
git clone git://git.yoctoproject.org/poky $1 | |
cd $1 | |
git checkout -t origin/scarthgap -b my-scarthgap | |
source ./oe-init-build-env | |
# Download required layer's files | |
git clone git://git.yoctoproject.org/meta-xilinx ../meta-xilinx -b scarthgap | |
git clone git://git.yoctoproject.org/meta-xilinx-tools ../meta-xilinx-tools -b scarthgap | |
git clone https://github.com/OpenAMP/meta-openamp.git ../meta-openamp -b scarthgap |
This file contains hidden or 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
mv ./build/xsct/Vitis/2024.1/bin/unwrapped/lnx64.o/rlwrap ./build/xsct/Vitis/2024.1/bin/unwrapped/lnx64.o/rlwrap.old; | |
ln -s /usr/bin/rlwrap ./build/xsct/Vitis/2024.1/bin/unwrapped/lnx64.o/rlwrap; |
This file contains hidden or 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
# https://stackoverflow.com/questions/58498643/no-result-or-error-when-using-gitbook-pdf | |
# Must use calibre-3.48.0, https://download.calibre-ebook.com/3.48.0/ | |
# Otherwise, no photo will be generated | |
$ ln -s /Applications/calibre.app/Contents/MacOS/ebook-convert /opt/homebrew/bin/ebook-convert | |
$ npm install @gitbook-ng/gitbook |
This file contains hidden or 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
const int INTERVAL = 10; | |
uint64_t _previous_msTimeNow=0; | |
void loop_A() | |
{ | |
uint64_t msTimeNow = std::chrono::duration_cast<std::chrono::milliseconds>(std::chrono::system_clock::now().time_since_epoch()).count(); | |
if(msTimeNow % INTERVAL == 0) | |
{ | |
doSomething(); | |
} |
NewerOlder