Cascoda SDK
Cascoda SDK for building software to run with CA-821x transceivers
ldrom_uart.c File Reference
#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"
Include dependency graph for ldrom_uart.c:

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)
 

Function Documentation

◆ GetUID()

void GetUID ( uint32_t *  uid_out)

◆ GetUniqueId()

uint64_t GetUniqueId ( void  )

◆ main()

int32_t main ( void  )

◆ ParseBootMode()

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.

◆ ParseCheck()

void ParseCheck ( void  )

◆ ParseCmd()

void ParseCmd ( void  )

◆ ParseErase()

void ParseErase ( void  )

◆ ParseEvbmeAppString()

void ParseEvbmeAppString ( void  )

◆ ParseEvbmeGet()

void ParseEvbmeGet ( void  )

◆ ParseEvbmePlatString()

void ParseEvbmePlatString ( void  )

◆ ParseEvbmeSerialNo()

void ParseEvbmeSerialNo ( void  )

◆ ParseEvbmeString()

void ParseEvbmeString ( const char *  str)

◆ ParseReboot()

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.

◆ ParseWrite()

void ParseWrite ( void  )

◆ ProcessHardFault()

void ProcessHardFault ( void  )

◆ SH_Return()

void SH_Return ( void  )

◆ SYS_Init()

void SYS_Init ( void  )

◆ UART_SetClockSource()

void UART_SetClockSource ( void  )

◆ UART_SetMFP()

void UART_SetMFP ( void  )