Skip to content

Instantly share code, notes, and snippets.

View khwas's full-sized avatar
🐢
turtling some hobby electronics project

VasiliyK khwas

🐢
turtling some hobby electronics project
  • Greater Boston, MA
View GitHub Profile
@kuro68k
kuro68k / MS USB extended descriptors in ASF
Last active November 5, 2021 01:30
Add Microsoft WCID descriptors to Atmel's ASF USB stack
To add MS USB extended descriptors to an ASF project:
0. Optionally disable disabling peripheral clocks in common/services/clock/xmega/sysclk.c -> sysclk_init()
1. Configure clocks and oscillators in config/conf_board.h:
// required for the ASF clock module
#define BOARD_XOSC_HZ F_CPU
#define BOARD_XOSC_STARTUP_US 1024