Skip to content

Instantly share code, notes, and snippets.

@giuliomoro
giuliomoro / _main.pd
Created July 2, 2018 22:17
a 7Mb _main.pd
This file has been truncated, but you can view the full file.
#N canvas 0 22 450 300 10;
#N canvas 0 22 450 278 (subpatch) 0;
#X array array1 1.7e+06 float 3;
#A 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
@giuliomoro
giuliomoro / gist:0b553fd15611a439c3eef6115b3e2122
Created April 26, 2017 00:09
This is the diff between the stock BBBW and the BBBW that works for me for Bela on 4.4.61 (I basically diffed BBB vs BBG and tried to disable the same things (HDMI, some McASP) in the BBBW:
diff --git a/bbbw.bak b/bbbw
index 91791c1..7e1e10e 100644
--- a/bbbw.bak
+++ b/bbbw
@@ -989,18 +989,6 @@
phandle = <0x32>;
};
- nxp_hdmi_bonelt_pins {
- pinctrl-single,pins = <0x1b0 0x3 0xa0 0x8 0xa4 0x8 0xa8 0x8 0xac 0x8 0xb0 0x8 0xb4 0x8 0xb8 0x8 0xbc 0x8 0xc0 0x8 0xc4 0x8 0xc8 0x8 0xcc 0x8 0xd0 0x8 0xd4 0x8 0xd8 0x8 0xdc 0x8 0xe0 0x0 0xe4 0x0 0xe8 0x0 0xec 0x0>;
#
# Automatically generated file; DO NOT EDIT.
# Linux/arm 3.8.13 Kernel Configuration
#
CONFIG_ARM=y
CONFIG_IPIPE_WANT_ACTIVE_MM=y
CONFIG_SYS_SUPPORTS_APM_EMULATION=y
CONFIG_GENERIC_GPIO=y
CONFIG_HAVE_PROC_CPU=y
CONFIG_STACKTRACE_SUPPORT=y
@giuliomoro
giuliomoro / gist:457c8cde1eda6190a28566b3288d38c0
Last active October 27, 2016 01:51
xenomai shared memory causes mode switches
#include <sys/mman.h>
#include <sys/stat.h> /* For mode constants */
#include <fcntl.h> /* For O_* constants */
#include <stdio.h>
#include <error.h>
#include <errno.h>
#include <native/task.h>
#define SHM_NAME "/myshared"