Hilscher netX microcontroller driver  V0.0.5.0
Documentation of the netX driver package
system_netx.c File Reference
#include <stdint.h>
#include <string.h>
#include "cmsis_gcc.h"
#include "system_netx.h"
#include "netx90_app.h"
Include dependency graph for system_netx.c:

Go to the source code of this file.

Macros

#define SYSTEM_CLOCK   (100000000UL)
 
#define intflash2   ((uint32_t*)0x00200000)
 

Enumerations

enum  DRV_FLASHER_JOB_E {
  DRV_FLASHER_JOB_ERASE,
  DRV_FLASHER_JOB_COPY,
  DRV_FLASHER_JOB_ERASE_COPY
}
 

Functions

void SystemCoreClockUpdate (void)
 Update SystemCoreClock variable. More...
 
void SystemInitFault (void)
 
void SystemTemperatureByADCValue (uint32_t ulADCValue, int *TempValue)
 
void PageReader (void)
 
void callPageReader ()
 
void PageFlasher (DRV_FLASHER_JOB_E eJob, void *pvDestination, void *pvSource, size_t size)
 
static void callConstructors (void)
 
void SystemInit (void)
 Setup the microcontroller system. More...
 

Variables

uint32_t SystemCoreClock = SYSTEM_CLOCK
 
NETX_TEMP_CALIBRATION_T g_atTemperatureCalibrationData [2]
 
int g_TemperatureGradient = (int) 0xfffa6048ul
 
int g_TemperatureIntercept = 2455
 
volatile uint32_t ulRead = 0
 
void * g_avpfHVTOR [16]
 
void(*const pPageReader )(void) = PageReader
 
void(*const pPageFlasher )(DRV_FLASHER_JOB_E, void *, void *, size_t) = PageFlasher
 

Macro Definition Documentation

#define intflash2   ((uint32_t*)0x00200000)

Definition at line 184 of file system_netx.c.

#define SYSTEM_CLOCK   (100000000UL)

Define for system clock speed

Definition at line 35 of file system_netx.c.

Enumeration Type Documentation

Enumerator
DRV_FLASHER_JOB_ERASE 
DRV_FLASHER_JOB_COPY 
DRV_FLASHER_JOB_ERASE_COPY 

Definition at line 177 of file system_netx.c.

Function Documentation

static void callConstructors ( void  )
static

Function concerned with the calling of all C++ default constructors in the init array.

Returns
void

Definition at line 227 of file system_netx.c.

Here is the caller graph for this function:

void callPageReader ( )

Function executing the info page reading.

Returns
void

Definition at line 158 of file system_netx.c.

Here is the call graph for this function:

void PageFlasher ( DRV_FLASHER_JOB_E  eJob,
void *  pvDestination,
void *  pvSource,
size_t  size 
)

Function stub for programming data into the flash.

Definition at line 189 of file system_netx.c.

Here is the call graph for this function:

void PageReader ( void  )

Function for extracting the calibration data from the info page

Definition at line 124 of file system_netx.c.

Here is the call graph for this function:

void SystemCoreClockUpdate ( void  )

Update SystemCoreClock variable.

Function for setting the system core clock variable to default

Definition at line 49 of file system_netx.c.

Here is the caller graph for this function:

void SystemInit ( void  )

Setup the microcontroller system.


System initialization function

Definition at line 247 of file system_netx.c.

Here is the call graph for this function:

void SystemInitFault ( void  )

Fault handler for system init reset vector

Definition at line 57 of file system_netx.c.

void SystemTemperatureByADCValue ( uint32_t  ulADCValue,
int *  TempValue 
)

Global function that calculates the temperature value by the given ADCValue. The reference voltage of the ADCValue has to met the one of the calibration values.

Definition at line 90 of file system_netx.c.

Here is the caller graph for this function:

Variable Documentation

NETX_TEMP_CALIBRATION_T g_atTemperatureCalibrationData[2]

Global array where the extracted calibration data is written to.

Definition at line 73 of file system_netx.c.

int g_TemperatureGradient = (int) 0xfffa6048ul

Global integer value in which the steepness of the temperature curve is stored.

Definition at line 79 of file system_netx.c.

int g_TemperatureIntercept = 2455

Global integer value in which the y-intercept of the temperature curve is stored.

Definition at line 84 of file system_netx.c.

void(* const pPageFlasher) (DRV_FLASHER_JOB_E, void *, void *, size_t) = PageFlasher

Pointer to the Page flasher function for linker purposes.

Definition at line 220 of file system_netx.c.

void(* const pPageReader) (void) = PageReader

Pointer to the Page extraction function for linker purposes.

Definition at line 215 of file system_netx.c.

uint32_t SystemCoreClock = SYSTEM_CLOCK

System Core Clock Variable

Definition at line 40 of file system_netx.c.

volatile uint32_t ulRead = 0

Globals for the trampoline structure of the intflash access functions.

Definition at line 119 of file system_netx.c.