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
spi@ff040000 { | |
compatible = "cdns,spi-r1p6"; | |
status = "okay"; | |
interrupt-parent = <0x4>; | |
interrupts = <0x0 0x13 0x4>; | |
reg = <0x0 0xff040000 0x0 0x1000>; | |
clock-names = "ref_clk", "pclk"; | |
#address-cells = <0x1>; | |
#size-cells = <0x0>; | |
power-domains = <0x1f>; |
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
/** | |
@brief Read binary file, get hex values and write in another file like plain text. | |
Can be formatted by user (set Big/Little endian, value dimension). | |
*/ | |
use std::env; | |
use std::fs; | |
use std::io; | |
use std::io::Write; |
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
# compiled by | |
# gcc -m32 -gstabs+ -o exLaunch ex.S | |
# Для просмотра (в GDB) содержимого массива, можно воспользоваться командой: | |
# p/x (long[4])d | |
# Для просмотра (в GDB) содержимого стека, можно воспользоваться командой: | |
# x/4x $esp, где 4 - кол-во выводимых элементов в стеке | |
.data | |
d: .long 1, 2, 3, 4 # массив из 4х элементов |
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
package main | |
import ( | |
"net" | |
) | |
func main() { | |
println("UDP TEST ARM v0.3") | |
defer func() { |
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
#!/bin/bash | |
# Check size of free and used memory and clear cache if it needed | |
FREE_SIZE=`free | grep Mem | awk '{print $4}'` | |
USED_SIZE=`free | grep Mem | awk '{print $3}'` | |
#CLEAR_CACHE=`sync; echo 1 > /proc/sys/vm/drop_caches` | |
free_value=${FREE_SIZE} | |
used_value=${USED_SIZE} |
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
#!/bin/bash | |
# Change port of application | |
########################################################### | |
FILE_PORT=/opt/base_sw/.udp_port.txt | |
PATH_TO_PORT=/opt/base_sw | |
MARDUK_START=/opt/base_sw/sbin/app_launch.sh | |
echo | |
echo "Attention! After execution this script, application of Marduk will be relaunch" |
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
obj-m := main.o | |
main-y := ../src/main.o | |
KDIR := <path_to_kernel_src> | |
TOOL := <path_to_toolchain>/arm-xilinx-linux-gnueabi- | |
all: | |
make -C $(KDIR) CC=$(TOOL)gcc LD=$(TOOL)ld M=$(PWD) modules | |
clean: | |
make -C $(KDIR) M=$(PWD) clean |
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
// src: https://electronix.ru/forum/lofiversion/index.php/t111967.html | |
module divider ( | |
input clk50, | |
output reg clk2 | |
); | |
reg [4:0] counter; | |
reg a,b; | |
always @(posedge clk50) |
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
#include <iostream> | |
#include <vector> | |
#include <map> | |
#include <omp.h> | |
#include <ctime> | |
using namespace std; | |
int main(int argc, char *argv[]) { | |
unsigned int thread_count; | |
cout << "Threads: "; |
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
/* | |
* Project for TMS320C6678 | |
* */ | |
#include <stdio.h> | |
#include <stdint.h> | |
#define DEVSTAT 0x02620020 | |
#define JTAGID 0x02620018 | |
#define MM_REVID 0x01812000 | |
#define PWRSTATECTL 0x02620150 |
NewerOlder