Vault 7: Projects

This publication series is about specific projects related to the Vault 7 main publication.

Description
This function gets the peripheral clock frequency in Hz.
system.h can define it to a literal value #define SYS_CLK_FrequencyPeripheralGet() 8000000 or system.h can define it to a
function #define SYS_CLK_FrequencyPeripheralGet() MyPeripheralClock()
Implement the function MyPeripheralClock in system.c and provide a prototype in in system.h.
Preconditions
None
Example
unsigned long perClockOutputHz;
perClockOutputHz = SYS_CLK_FrequencyPeripheralGet();
Function
unsigned long SYS_CLK_FrequencyPeripheralGet ( )
1.5.3.3 SYS_CLK_FrequencySystemGet Function
Gets the system clock frequency in Hz.
File
system.h
Syntax
unsigned long SYS_CLK_FrequencySystemGet();
Returns
Clock frequency in Hz.
Description
This function gets the system clock frequency in Hz.
system.h can define it to a literal value #define SYS_CLK_FrequencySystemGet() 8000000 or system.h can define it to a
function #define SYS_CLK_FrequencySystemGet() MySystemClock()
Implement the function MySystemClock in system.c and provide a prototype in in system.h.
Preconditions
None
Example
unsigned long clockOutputHz;
clockOutputHz = SYS_CLK_FrequencySystemGet();
Function
unsigned long SYS_CLK_FrequencySystemGet ( )
1.5 System Configurations MLA - Getting Started Help system.h
14
1

e-Highlighter

Click to send permalink to address bar, or right-click to copy permalink.

Un-highlight all Un-highlight selectionu Highlight selectionh