38 #ifndef CASCODA_CHILI_H
39 #define CASCODA_CHILI_H
49 #define MAX_CLOCK_SWITCH_DELAY 100000
51 #define FCLK_SPI 2000000
53 #define USE_WATCHDOG_POWEROFF 0
63 #define NUM_DEVICES (1)
74 void CHILI_UARTInit(
void);
81 void CHILI_UARTDeinit(
void);
Declaration of platform abstraction functions.
Type definitions used by Cascoda baremetal drivers.
unsigned long u32_t
Definition: cascoda_types.h:50
unsigned char u8_t
Definition: cascoda_types.h:46
ca_error
Cascoda error type.
Definition: ca821x_error.h:51
volatile u8_t WDTimeout
Definition: cascoda_bsp_chili.c:67
void CHILI_FastForward(u32_t ticks)
FastForward time by the given amount.
Definition: cascoda_time.c:30
void CHILI_FlashInit(void)
Definition: cascoda_dataflash_nano120.c:108
void CHILI_1msTick(void)
1 ms Tick for TMR0_IRQHandler ISR
Definition: cascoda_time.c:25
volatile u8_t USBPresent
Definition: cascoda_bsp_chili.c:68
void CHILI_CompleteClockInit(void)
Completes Clock (Re-)Initialisation.
Definition: cascoda_chili.c:393
void CHILI_GPIOInit(void)
Initialise Essential GPIOs for various Functions.
Definition: cascoda_chili.c:132
void CHILI_DisableIntOscCal(void)
Disable Internal Oscillator Calibration.
Definition: cascoda_chili.c:428
void CHILI_GPIOEnableInterrupts(void)
Enable GPIO Interrupts.
Definition: cascoda_chili.c:258
ca_error CHILI_ClockInit(void)
Select System Clocks depending on Power Source.
Definition: cascoda_chili.c:267
void CHILI_TimersInit(void)
(Re-)Initialise System Timers
Definition: cascoda_chili.c:435
#define NUM_DEVICES
Definition: cascoda_chili.h:63
void CHILI_EnableIntOscCal(void)
Enable Internal Oscillator Calibration.
Definition: cascoda_chili.c:414
struct device_link device_list[NUM_DEVICES]
Definition: cascoda_bsp_chili.c:73
volatile u8_t UseExternalClock
Definition: cascoda_bsp_chili.c:69
void CHILI_GPIOPowerUp(void)
Re-program GPIOs for active Mode after PowerDown.
Definition: cascoda_chili.c:231
u32_t CHILI_ADCConversion(u32_t channel, u32_t reference)
Perform ADC Conversion.
Definition: cascoda_chili.c:85
void CHILI_GPIOPowerDown(u8_t useGPIOforWakeup)
Re-program GPIOs for PowerDown.
Definition: cascoda_chili.c:198
void CHILI_SystemReInit(void)
System Re-Initialisation.
Definition: cascoda_chili.c:475
uint8_t channel
Channel we are sniffing on.
Definition: sniffer.c:200
CA-821x Device reference struct.
Definition: ca821x_api.h:123
Definition: cascoda_chili.h:56
uint32_t volatile * irq_gpio
Definition: cascoda_chili.h:58
uint32_t volatile * reset_gpio
Definition: cascoda_chili.h:59
uint32_t volatile * chip_select_gpio
Definition: cascoda_chili.h:57
struct ca821x_dev * dev
Definition: cascoda_chili.h:60