Skip to content

Instantly share code, notes, and snippets.

@garyexplains
garyexplains / gist:1bc33eb44716ec5ff6f0ce43eb44089d
Created August 16, 2022 10:33
piccolo_os.c and context_switch.s
#include "hardware/clocks.h"
#include "hardware/structs/clocks.h"
//
//
//
void piccolo_systick_config(unsigned int n) {
/* SysTick Memory Map */
#define SYSTICK_CTRL (volatile unsigned int *)0xe000e010