Skip to content

Instantly share code, notes, and snippets.

View clydebarrow's full-sized avatar

Clyde Stubbs clydebarrow

View GitHub Profile
@clydebarrow
clydebarrow / spiFlash.c
Last active January 25, 2021 23:39
SPI Flash read/write/erase functions for SiLabs EFR32 and friends.
//
// Created by Clyde Stubbs on 13/1/21.
//
#include <spiFlash.h>
#include <em_gpio.h>
#include <em_usart.h>
#include <em_ldma.h>
// Command bytes for the serial flash S25FL164K