Skip to content

Instantly share code, notes, and snippets.

/dts-v1/;
/plugin/;
/ {
compatible = "brcm,bcm2708";
/* Enable SPI for Monarco */
fragment@1 {
target = <&spi0>;
#include <sys/types.h>
#include <unistd.h>
#include <sys/wait.h>
#include <poll.h>
void test_exec_fork()
{
pid_t pid;
int status;
int out_pipe[2];
c_can.o: file format elf32-littlearm
Disassembly of section .text:
00000000 <c_can_irq_control>:
if (priv->raminit)
priv->raminit(priv, enable);
}
@vstk
vstk / canbench.c
Last active February 6, 2016 17:28
SocketCAN cyclic RT testbench
/* SocketCAN cyclic RT testbench
compile using:
${CROSS_COMPILE}gcc -o canbench canbench.c -lrt -Wall
*/
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <stdint.h>
@vstk
vstk / gist:75ddae459613eaa9aba8
Created March 17, 2015 16:05
SOEM-EL1258-EL2258-sdo-1
SOEM (Simple Open EtherCAT Master)
Slaveinfo
Starting slaveinfo
ec_init on eth1 succeeded.
Time: 5208.391 SDO slave:2 index:1618.00 error:06020000 The object does not exist in the object directory
Time: 5208.392 SDO slave:2 index:161c.00 error:06020000 The object does not exist in the object directory
Time: 5208.399 SDO slave:3 index:1a14.00 error:06020000 The object does not exist in the object directory
Time: 5208.400 SDO slave:3 index:1a18.00 error:06020000 The object does not exist in the object directory
Time: 5208.400 SDO slave:3 index:1a1c.00 error:06020000 The object does not exist in the object directory
3 slaves found and configured.