J1939 Documentation
Version 4.16.00
Loading...
Searching...
No Matches
mc_cpu.h File Reference

Detailed Description

The functions defined in this header file provide a generic API for access to a microcontroller. This includes initialisation, reset and retrieving the current CPU clock.

+ Include dependency graph for mc_cpu.h:

Functions

void McCpuInit (void)
 
uint32_t McCpuGetBusClock (void)
 
uint32_t McCpuGetClock (void)
 
void McCpuReleaseIrq (void)
 
void McCpuReset (void)
 

Function Documentation

◆ McCpuGetBusClock()

uint32_t McCpuGetBusClock ( void )
Returns
clock frequency value in Hz

The function returns the BUS clock frequency in Hertz.

◆ McCpuGetClock()

uint32_t McCpuGetClock ( void )
Returns
clock frequency value in Hz

The function returns the CPU / MCU clock frequency in Hertz.

◆ McCpuInit()

void McCpuInit ( void )

Perform basic initialisation of the CPU / MCU. This includes:

  • IRQ vector setup
  • Stack setup
  • Clock initialisation
  • Memory interface setup

◆ McCpuReleaseIrq()

void McCpuReleaseIrq ( void )

The function disables all interrupts and also clears any pending interrupts of the CPU / MCU.

◆ McCpuReset()

void McCpuReset ( void )

The function will issue a reset of the CPU / MCU.