Hilscher netX microcontroller driver  V0.0.5.0
Documentation of the netX driver package
netx_drv_xpic.c File Reference

XPIC module driver. More...

#include "netx_drv_user_conf.h"
#include "netx_drv_xpic.h"
#include <string.h>
Include dependency graph for netx_drv_xpic.c:

Go to the source code of this file.

Macros

#define DRV_XPIC_SEGDEF_HEADER_MAGIC   0x43495058
 
#define DRV_XPIC_SEGDEF_HEADER_MSK_VERSION_MAJOR   0xffff0000
 
#define DRV_XPIC_SEGDEF_HEADER_MSK_VERSION_MINOR   0x0000ffff
 
#define DRV_XPIC_SEGDEF_HEADER_VERSION_MAJOR   0x00010000
 
#define DRV_XPIC_SEGDEF_HEADER_VERSION_MINOR   0x00000000
 
#define _HW_CONCAT(a, b)   a ## b
 
#define HW_MSK(bf)    _HW_CONCAT(MSK_NX90_, bf)
 
#define HW_SRT(bf)    _HW_CONCAT(SRT_NX90_, bf)
 
#define HW_DFLT_BF_VAL(bf)   _HW_CONCAT(DFLT_BF_VAL_NX90_, bf)
 
#define HW_DFLT_VAL(reg)    _HW_CONCAT(DFLT_VAL_NX90_, reg)
 
#define HW_REGADR(reg)    _HW_CONCAT(Adr_NX90_, reg)
 
#define HW_AREAADR(area)    _HW_CONCAT(Addr_NX90_, area)
 
#define HW_TYPE(area)    _HW_CONCAT(NX90_, area)
 

Functions

static void DRV_XPIC_LoadSegments (unsigned int uiXpicNo, const uint32_t *pulData)
 
void DRV_XPIC_Load (unsigned int uiXpicNo, const uint32_t *pulXpicPrg, void *pvUser)
 
void DRV_XPIC_Start (unsigned int uiXpicNo, void *pvUser)
 
void DRV_XPIC_Stop (unsigned int uiXpicNo, void *pvUser)
 
void DRV_XPIC_Reset (unsigned int uiXpicNo, void *pvUser)
 
uint32_t DRV_XPIC_GetLastPc (unsigned int uiXpicNo)
 
uint32_t DRV_XPIC_GetBreakStatus (unsigned int uiXpicNo)
 
uint32_t DRV_XPIC_GetBreakIrqRaw (unsigned int uiXpicNo)
 
void DRV_XPIC_ConfirmBreakIrq (unsigned int uiXpicNo, uint32_t ulIrq)
 
uint32_t DRV_XPIC_GetBreakIrq (unsigned int uiXpicNo, bool fOwn)
 
void DRV_XPIC_EnableBreakIrq (unsigned int uiXpicNo, uint32_t ulIrq, bool fOwn)
 
void DRV_XPIC_DisableBreakIrq (unsigned int uiXpicNo, uint32_t ulIrq, bool fOwn)
 
void DRV_XPIC_SetupWatchPoint (unsigned int uiXpicNo, unsigned int uWpNo, DRV_XPIC_WATCHPOINT_T *ptWp)
 
void DRV_XPIC_StartEx (unsigned int uiXpicNo, bool fSinglestep, bool fMonitor, bool fIntDis, bool fMisalignHold, void *pvUser)
 
void DRV_XPIC_SetBankSelect (unsigned int uiXpicNo, bool fSel, bool fFiqBank)
 
uint32_t DRV_XPIC_GetReg (unsigned int uiXpicNo, DRV_XPIC_REG_E eReg)
 
void DRV_XPIC_SetReg (unsigned int uiXpicNo, DRV_XPIC_REG_E eReg, uint32_t ulValue)
 
uint32_t DRV_XPIC_GetIrqStatus (unsigned int uiXpicNo)
 
uint32_t DRV_XPIC_GetIrqReturnPc (unsigned int uiXpicNo)
 
uint32_t DRV_XPIC_GetFiqReturnPc (unsigned int uiXpicNo)
 
void DRV_XPIC_WrDramDw (unsigned int uiXpicNo, unsigned int uiOffset, uint32_t ulValue)
 
uint32_t DRV_XPIC_RdDramDw (unsigned int uiXpicNo, unsigned int uiOffset)
 
void DRV_XPIC_WrPramDw (unsigned int uiXpicNo, unsigned int uiOffset, uint32_t ulValue)
 
uint32_t DRV_XPIC_RdPramDw (unsigned int uiXpicNo, unsigned int uiOffset)
 

Variables

static NX90_XPIC_AREA_T *const s_aptXpic [] = { (NX90_XPIC_AREA_T*) Addr_NX90_xpic_app_regs }
 
static NX90_XPIC_DEBUG_AREA_T *const s_aptXpicDebug [] = { (NX90_XPIC_DEBUG_AREA_T*) Addr_NX90_xpic_app_debug }
 
static uint32_t *const s_apulXpicDram [] = { (uint32_t*) Addr_NX90_xpic_app_dram }
 
static uint32_t *const s_apulXpicPram [] = { (uint32_t*) Addr_NX90_xpic_app_pram }
 

Detailed Description

XPIC module driver.

Revision
6592
Date
2019-12-17 14:14:57 +0100 (Di, 17 Dez 2019)
Note
Exclusion of Liability for this demo software: The following software is intended for and must only be used for reference and in an evaluation laboratory environment. It is provided without charge and is subject to alterations. There is no warranty for the software, to the extent permitted by applicable law. Except when otherwise stated in writing the copyright holders and/or other parties provide the software "as is" without warranty of any kind, either expressed or implied. Please refer to the Agreement in README_DISCLAIMER.txt, provided together with this file! By installing or otherwise using the software, you accept the terms of this Agreement. If you do not agree to the terms of this Agreement, then do not install or use the Software!

Definition in file netx_drv_xpic.c.