Cascoda SDK
Cascoda SDK for building software to run with CA-821x transceivers
|
#include <stdio.h>
#include <string.h>
#include "M2351.h"
#include "ca821x_endian.h"
#include "ldrom_hid.h"
Macros | |
#define | TRIM_INIT (SYS_BASE + 0x10C) |
Functions | |
void | ProcessHardFault (void) |
void | SH_Return (void) |
uint32_t | CLK_GetPLLClockFreq (void) |
uint32_t | CLK_GetCPUFreq (void) |
void | SYS_Init (void) |
void | ParseReboot (void) |
void | ParseErase (void) |
void | ParseWrite (void) |
void | ParseCheck (void) |
void | ParseBootMode (void) |
void | ParseCmd (void) |
void | ParseEvbmeGet (void) |
int32_t | main (void) |
void | USBD_IRQHandler (void) |
Variables | |
volatile ISP_INFO_T | g_ISPInfo = {0} |
volatile BL_USBD_INFO_T | g_USBDInfo = {0} |
#define TRIM_INIT (SYS_BASE + 0x10C) |
uint32_t CLK_GetCPUFreq | ( | void | ) |
uint32_t CLK_GetPLLClockFreq | ( | 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 ParseEvbmeGet | ( | void | ) |
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 USBD_IRQHandler | ( | void | ) |
volatile ISP_INFO_T g_ISPInfo = {0} |
volatile BL_USBD_INFO_T g_USBDInfo = {0} |