WISP ERT (Client)  1.0.0
The WISP Extended Runtime (WISP side)
wisp-init.c File Reference
#include "../globals.h"

Functions

void WISP_init (void)
 Called by client code as a first step after PUC. More...
 

Variables

RFIDstruct rfid
 
RWstruct RWData
 
uint8_t cmd [CMDBUFF_SIZE]
 
uint8_t dataBuf [DATABUFF_SIZE]
 
uint8_t rfidBuf [RFIDBUFF_SIZE]
 
volatile uint8_t isDoingLowPwrSleep
 

Detailed Description

Provides the initialization routines for the WISP.

Author
Aaron Parks, Justin Reina

Function Documentation

◆ WISP_init()

void WISP_init ( void  )

Called by client code as a first step after PUC.

void WISP_init (void)

Purpose

Postcondition
the RAM, clock and peripherals are initialized for use

Timing

  1. The routine is entered X cycles into the CPU's operation.
  2. The routine tries to sleep Y cycles into the CPU's operation.
  3. From a cold-boot, the CPU is configured for fCPU = Z MHz. (i.e. ...?)

Considerations

  1. If preforming a 'sleep_till_full_power' operation,

TODO: enable PIN_RX_EN only when needed in the future

Variable Documentation

◆ cmd

uint8_t cmd[CMDBUFF_SIZE]

◆ dataBuf

uint8_t dataBuf[DATABUFF_SIZE]

◆ isDoingLowPwrSleep

volatile uint8_t isDoingLowPwrSleep

◆ rfid

RFIDstruct rfid

◆ rfidBuf

uint8_t rfidBuf[RFIDBUFF_SIZE]

◆ RWData

RWstruct RWData