This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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++) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ~/.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 |