29 #ifndef CASCODA_SECURE_H
30 #define CASCODA_SECURE_H
Declaration of platform abstraction functions.
void CHILI_GPIOInitClock()
Initialise GPIO peripheral clock.
Definition: cascoda_chili_secure.c:149
void CHILI_EnableTRNGClk(void)
Enable the TRNG Module Clock.
Definition: cascoda_chili_secure.c:1212
void CHILI_SetLDROMBoot(void)
Configure the chili to boot from LDROM next time.
Definition: cascoda_dataflash_m2351_secure.c:210
void CHILI_SetUseExternalClock(u8_t use_ext_clock)
Set Use_external_clock flag.
Definition: cascoda_bsp_secure.c:53
u8_t CHILI_GetGPIOInt()
Has gpio interrupt occured during power-down sequence?
Definition: cascoda_chili_secure.c:1169
void CHILI_SetPowerDown(u8_t new_powerdown)
Set power-down flag.
Definition: cascoda_chili_secure.c:1174
u8_t CHILI_GetAsleep()
Is chili currently asleep?
Definition: cascoda_chili_secure.c:1159
u8_t CHILI_GetWakeup()
Should the Chili wake up?
Definition: cascoda_chili_secure.c:1149
void CHILI_InitADC(u32_t reference)
Initialise ADC peripheral.
Definition: cascoda_chili_secure.c:125
void CHILI_DisableTRNGClk(void)
Disable the TRNG Module Clock.
Definition: cascoda_chili_secure.c:1219
void CHILI_PowerDownSelectClock(u8_t use_timer0)
Configure clock for power down.
Definition: cascoda_chili_secure.c:968
u8_t CHILI_GetPowerDown()
Get power-down flag (device is powering down) ?
Definition: cascoda_chili_secure.c:1179
void CHILI_EnableSpiModuleClock()
Enable SPI Clock.
Definition: cascoda_bsp_secure.c:101
void CHILI_ReInitSetTimerPriority()
Initialise Timer IRQ priorities.
Definition: cascoda_chili_secure.c:708
void CHILI_GetUID(uint32_t *uid_out)
Get the 96-bit hardware unique ID.
Definition: cascoda_bsp_secure.c:83
fsys_mhz CHILI_GetSystemFrequency(void)
Get current system frequency.
Definition: cascoda_bsp_secure.c:78
u8_t CHILI_GetEnableCommsInterface(void)
Get enable_comms_interface flag, used by CHILI_SystemReinit.
Definition: cascoda_bsp_secure.c:68
void CHILI_SetGPIOInt(u8_t new_gpioint)
Set gpio interrrupt occured during power-down sequence flag.
Definition: cascoda_chili_secure.c:1164
void CHILI_SetWakeup(u8_t new_wakeup)
Set wake up state.
Definition: cascoda_chili_secure.c:1144
void CHILI_SPIDMAIRQHandler(void)
Interrupt Handler for SPI DMA.
Definition: cascoda_spi_secure.c:160
void CHILI_SetEnableCommsInterface(u8_t enable_coms_interface)
Set enable_comms_interface flag, used by CHILI_SystemReinit.
Definition: cascoda_bsp_secure.c:63
u32_t CHILI_PowerDownSecure(u32_t sleeptime_ms, u8_t use_timer0, dpd_flag dpd)
Process all of the secure-only power down routines.
Definition: cascoda_chili_secure.c:986
void CHILI_RegisterSPIComplete(void(*callback)(void))
Register the SPIComplete callback on trustzone (Compiles to nothing on non-tz)
Definition: cascoda_spi_secure.c:209
u8_t CHILI_GetUseExternalClock(void)
Get Use_external_clock flag.
Definition: cascoda_bsp_secure.c:58
void CHILI_SetAPROMBoot(void)
Configure the chili to boot from APROM next time.
Definition: cascoda_dataflash_m2351_secure.c:220
void CHILI_DisableTemperatureSensor()
Disable internal temperature sensor.
Definition: cascoda_chili_secure.c:961
void CHILI_WaitForSystemStable()
Wait until system is stable after potential usb plug-in.
Definition: cascoda_chili_secure.c:1185
void CHILI_SetSystemFrequency(fsys_mhz system_frequency)
Set current system frequency.
Definition: cascoda_bsp_secure.c:73
void CHILI_DeinitADC()
Deinitialise ADC peripheral.
Definition: cascoda_chili_secure.c:144
void CHILI_EnableTemperatureSensor()
Enable internal temperature sensor.
Definition: cascoda_chili_secure.c:954
void CHILI_SetAsleep(u8_t new_asleep)
Set asleep state.
Definition: cascoda_chili_secure.c:1154
unsigned long u32_t
Definition: cascoda_types.h:50
unsigned char u8_t
Definition: cascoda_types.h:46
fsys_mhz
Definition: cascoda_interface.h:62
dpd_flag
Definition: cascoda_interface.h:95