Skip to content

Instantly share code, notes, and snippets.

View jeremyherbert's full-sized avatar
🦆
🪿

Jeremy Herbert jeremyherbert

🦆
🪿
View GitHub Profile
USBD: event SUSPEND
USBD: event RESUME
USBD: event SETUP_RECEIVED
Get Status
process_control_request 620: assert failed
Stall EP0
USBD: event BUS_RESET
USBD: event SETUP_RECEIVED
Set Address
USBD: event XFER_COMPLETE
@jeremyherbert
jeremyherbert / f360_python_debug_runner.py
Created March 16, 2020 02:04
fusion360 addin to run python scripts from json
import adsk.core
import adsk.fusion
import importlib
import inspect
import traceback
import os
import sys
import gettext
import types
import tempfile
@jeremyherbert
jeremyherbert / main.c
Last active May 6, 2020 07:50
Zephyr BLE test
#include <zephyr.h>
#include <device.h>
#include <drivers/gpio.h>
#include <bluetooth/bluetooth.h>
#define LED_PORT DT_ALIAS_LED0_GPIOS_CONTROLLER
#define LED DT_ALIAS_LED0_GPIOS_PIN
PORTB |= (1 << 2); // set pin 2
PORTB &= ~(1 << 2); // clear pin 2
Tue Nov 2 04:55:00 2021 kern.info kernel: [ 0.000000] Initmem setup node 0 [mem 0x00000000-0x07ffffff]
Tue Nov 2 04:55:00 2021 kern.debug kernel: [ 0.000000] On node 0 totalpages: 32768
Tue Nov 2 04:55:00 2021 kern.debug kernel: [ 0.000000] free_area_init_node: node 0, pgdat 8032a160, node_mem_map 81000000
Tue Nov 2 04:55:00 2021 kern.debug kernel: [ 0.000000] Normal zone: 256 pages used for memmap
Tue Nov 2 04:55:00 2021 kern.debug kernel: [ 0.000000] Normal zone: 0 pages reserved
Tue Nov 2 04:55:00 2021 kern.debug kernel: [ 0.000000] Normal zone: 32768 pages, LIFO batch:7
Tue Nov 2 04:55:00 2021 kern.warn kernel: [ 0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
Tue Nov 2 04:55:00 2021 kern.warn kernel: [ 0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
Tue Nov 2 04:55:00 2021 kern.debug kernel: [ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
Tue Nov 2 04:55:00 2021 kern.debug kernel: [ 0.000000] p