Cascoda SDK
Cascoda SDK for building software to run with CA-821x transceivers
|
#include <stdio.h>
#include <string.h>
#include "M2351.h"
#include "cascoda-util/cascoda_hash.h"
#include "ca821x_endian.h"
#include "cascoda_chili_config.h"
#include "ldrom_uart.h"
Functions | |
void | ProcessHardFault (void) |
void | SH_Return (void) |
void | UART_SetClockSource (void) |
void | UART_SetMFP (void) |
void | SYS_Init (void) |
void | ParseReboot (void) |
void | ParseErase (void) |
void | ParseWrite (void) |
void | ParseCheck (void) |
void | ParseBootMode (void) |
void | ParseCmd (void) |
uint64_t | HASH_fnv1a_64 (const void *data_in, size_t num_bytes) |
Calculate the 64-bit fnv1a non-crypto hash of a block of data. More... | |
void | GetUID (uint32_t *uid_out) |
uint64_t | GetUniqueId (void) |
void | ParseEvbmeSerialNo (void) |
void | ParseEvbmeString (const char *str) |
void | ParseEvbmeAppString (void) |
void | ParseEvbmePlatString (void) |
void | ParseEvbmeGet (void) |
int32_t | main (void) |
void GetUID | ( | uint32_t * | uid_out | ) |
uint64_t GetUniqueId | ( | void | ) |
int32_t main | ( | void | ) |
void ParseBootMode | ( | void | ) |
Here we set bit 7 (BS) of CONFIG0 to set the default boot source of the chip. CONFIG0 is nonvolatile, but BS can be overridden by FMC_ISPCTL_BS when software reboot takes place.
void ParseCheck | ( | void | ) |
void ParseCmd | ( | void | ) |
void ParseErase | ( | void | ) |
void ParseEvbmeAppString | ( | void | ) |
void ParseEvbmeGet | ( | void | ) |
void ParseEvbmePlatString | ( | void | ) |
void ParseEvbmeSerialNo | ( | void | ) |
void ParseEvbmeString | ( | const char * | str | ) |
void ParseReboot | ( | void | ) |
Here we set the vector mapping, so that upon the software triggered System Reset, the system boots into either LDROM or APROM depending on the setting. This setting is volatile, unlike CONFIG0 BS.
void ParseWrite | ( | void | ) |
void ProcessHardFault | ( | void | ) |
void SH_Return | ( | void | ) |
void SYS_Init | ( | void | ) |
void UART_SetClockSource | ( | void | ) |
void UART_SetMFP | ( | void | ) |