Skip to content

Instantly share code, notes, and snippets.

View grodansparadis's full-sized avatar
🤔
Thinking

Åke Hedman grodansparadis

🤔
Thinking
  • Grodans Paradis AB, Sweden
  • Los, Hälsingland, Sweden, Europe
  • 14:21 (UTC +02:00)
View GitHub Profile
@grodansparadis
grodansparadis / gs_usb-protocol.rst
Created May 5, 2026 10:12 — forked from marckleinebudde/gs_usb-protocol.rst
gs_usb protocol definition
enum gs_usb_breq {
    GS_USB_BREQ_HOST_FORMAT = 0,
    GS_USB_BREQ_BITTIMING,
    GS_USB_BREQ_MODE,
    GS_USB_BREQ_BERR,
    GS_USB_BREQ_BT_CONST,
    GS_USB_BREQ_DEVICE_CONFIG,
    GS_USB_BREQ_TIMESTAMP,
@grodansparadis
grodansparadis / esp32_aes_example.c
Created March 27, 2026 15:58 — forked from cnlohr/esp32_aes_example.c
Example of using hardware AES 256 Crypto in CBC mode on the ESP32 using ESP-IDF
#include <string.h>
#include <stdio.h>
#include <hwcrypto/aes.h>
/*
For Encryption time: 1802.40us (9.09 MB/s) at 16kB blocks.
*/
static inline int32_t _getCycleCount(void) {
int32_t ccount;