formatted
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* headless.h
|
* headless.h
|
||||||
*
|
*
|
||||||
* Created on: 2021Äê6ÔÂ8ÈÕ
|
* Created on: 2021��6��8��
|
||||||
* Author: Josh
|
* Author: Josh
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -30,7 +30,8 @@
|
|||||||
/**************************** Type Definitions *******************************/
|
/**************************** Type Definitions *******************************/
|
||||||
|
|
||||||
/***************** Macros (Inline Functions) Definitions *********************/
|
/***************** Macros (Inline Functions) Definitions *********************/
|
||||||
|
#define HW_PRINT(...) __asm__("nop")
|
||||||
|
// #define HW_PRINT(...) printf(__VA_ARGS__)
|
||||||
/************************** Variable Definitions *****************************/
|
/************************** Variable Definitions *****************************/
|
||||||
|
|
||||||
/************************** Function Prototypes ******************************/
|
/************************** Function Prototypes ******************************/
|
||||||
|
|||||||
@@ -51,33 +51,39 @@ void ScuTimer_IntrHandler(void *context);
|
|||||||
void Systembus_RxIntrHandler(void *context);
|
void Systembus_RxIntrHandler(void *context);
|
||||||
void Systembus_TxIntrHandler(void *context);
|
void Systembus_TxIntrHandler(void *context);
|
||||||
/************************** Constant Definitions *****************************/
|
/************************** Constant Definitions *****************************/
|
||||||
struct callback_desc phy_callback_desc = {
|
struct callback_desc phy_callback_desc =
|
||||||
|
{
|
||||||
.callback = Phy_IntrHandler,
|
.callback = Phy_IntrHandler,
|
||||||
.ctx = NULL
|
.ctx = NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
struct callback_desc periodicpull_callback_desc = {
|
struct callback_desc periodicpull_callback_desc =
|
||||||
|
{
|
||||||
.callback = PeriodicPull_Handler,
|
.callback = PeriodicPull_Handler,
|
||||||
.ctx = NULL
|
.ctx = NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
struct callback_desc sysbus_rx_callback_desc = {
|
struct callback_desc sysbus_rx_callback_desc =
|
||||||
|
{
|
||||||
.callback = Systembus_RxIntrHandler,
|
.callback = Systembus_RxIntrHandler,
|
||||||
.ctx = NULL
|
.ctx = NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
struct callback_desc sysbus_tx_callback_desc = {
|
struct callback_desc sysbus_tx_callback_desc =
|
||||||
|
{
|
||||||
.callback = Systembus_TxIntrHandler,
|
.callback = Systembus_TxIntrHandler,
|
||||||
.ctx = NULL
|
.ctx = NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
struct callback_desc scutm_callback_desc = {
|
struct callback_desc scutm_callback_desc =
|
||||||
|
{
|
||||||
.callback = ScuTimer_IntrHandler,
|
.callback = ScuTimer_IntrHandler,
|
||||||
.ctx = NULL
|
.ctx = NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
L2_CONFIG linkConfig = {
|
L2_CONFIG linkConfig =
|
||||||
|
{
|
||||||
.myType = L2_NODE_HEAD,
|
.myType = L2_NODE_HEAD,
|
||||||
.clustId = 1,
|
.clustId = 1,
|
||||||
.myId = 1,
|
.myId = 1,
|
||||||
@@ -99,16 +105,22 @@ L2_CONFIG linkConfig = {
|
|||||||
// .tmcInstPtr = NULL
|
// .tmcInstPtr = NULL
|
||||||
// };
|
// };
|
||||||
|
|
||||||
static PHY_CONFIG phyConfig = {
|
static PHY_CONFIG phyConfig =
|
||||||
|
{
|
||||||
.devId = 0,
|
.devId = 0,
|
||||||
.baseAddr = PHY_BASEADDR,
|
.baseAddr = PHY_BASEADDR,
|
||||||
.antBramId = PHY_ANTCONFIG_BRAM_DEVICE_ID,
|
.antBramId = PHY_ANTCONFIG_BRAM_DEVICE_ID,
|
||||||
.txBramId = PHY_TXBUFF_BRAM_DEVICE_ID,
|
.txBramId = PHY_TXBUFF_BRAM_DEVICE_ID,
|
||||||
.rxBramId = PHY_RXBUFF_BRAM_DEVICE_ID,
|
.rxBramId = PHY_RXBUFF_BRAM_DEVICE_ID,
|
||||||
.hwXadcId = PHY_HW_XADC_DEVICE_ID
|
.hwXadcId = PHY_HW_XADC_DEVICE_ID,
|
||||||
|
.get_clk_state = NULL,
|
||||||
|
.get_ad_lock_state = NULL,
|
||||||
|
.get_ad0_temp = NULL,
|
||||||
|
.get_ad1_temp = NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
TMC_CONFIG tmcConfig = {
|
TMC_CONFIG tmcConfig =
|
||||||
|
{
|
||||||
.baseAddr = TIME_CONTROLLER_BASEADDR,
|
.baseAddr = TIME_CONTROLLER_BASEADDR,
|
||||||
.reset = 10
|
.reset = 10
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user