software_APIs  1.0.0
Functions
common.h File Reference
#include <defs.h>
#include <stub.c>
#include <uart.h>
#include <irq_vex.h>
#include <gpios.h>
#include <timer0.h>
#include <mgmt_gpio.h>
#include <irq_api.h>
#include <la.h>
#include <uart_api.h>
#include <spi_master.h>
#include <user_space.h>
Include dependency graph for common.h:

Go to the source code of this file.

Functions

void enableHkSpi (bool is_enable)
 
void dummyDelay (int num)
 

Function Documentation

◆ dummyDelay()

void dummyDelay ( int  num)

Insert delay

Parameters
numnumber of delays steps. step is increment local variable and check it's value

◆ enableHkSpi()

void enableHkSpi ( bool  is_enable)

Enable or disable the housekeeping SPI This function writes to the housekeeping disenable register inside the housekeeping

Note
When this register asserted housekeeping SPI can't be used and GPIOs[3] which is CSB can be used as any other Caravel GPIOs
Warning
By default the housekeeping SPI is enabled to use GPIOs[3] freely it should be disabled.
Parameters
is_enablewhen 1 (true) housekeeping is active, 0 (false) housekeeping is disabled