Skip to content

Instantly share code, notes, and snippets.

# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
#define FIRMWARE_VERSION_MAGIC 0xCAFEBABE
#define FIRMWARE_VERSION_MAJOR 1
#define FIRMWARE_VERSION_MINOR 0
__attribute__((used, section(".info"))) uint8_t INFO[] =
{
// YY year
__DATE__[9], __DATE__[10],
// First month letter, Oct Nov Dec = '1' otherwise '0'
char CHIP_UID[24 + 1] =
{ 0 };
void covert_uid_to_ascii_serial()
{
uint32_t (*func[3])(void) =
{ LL_GetUID_Word0, LL_GetUID_Word1, LL_GetUID_Word2
};
for (uint16_t j = 0; j < 3; j++)