# Vault 7: Projects

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

### Protego

# MLA -- Getting Started

20 December, 2013

- 1
- 2
…
- 11
- 12
- 13
- 14
- 15
…
- 21
- 22

Functions
Name Description
SYS_CLK_FrequencyInstructionGet Gets the system clock frequency in Hz.
SYS_CLK_FrequencyPeripheralGet Gets the peripheral clock frequency in Hz.
SYS_CLK_FrequencySystemGet Gets the system clock frequency in Hz.
Description
If the library wants to access a system level prototypes, it will need to include system.h. The file system.h can include system
specific implementation definitions. system.h is optional and may not exist if the libraries do not need to include these.
Clock definitions will be present in system.h to allow build configurations to define the specific clock values. The framework
modules and\or application examples can use clock definitions as listed in this section.
1.5.3.1 SYS_CLK_FrequencyInstructionGet Function
Gets the system clock frequency in Hz.
File
system.h
Syntax
unsigned long SYS_CLK_FrequencyInstructionGet();
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_FrequencyInstructionGet() 8000000 or system.h can define it to a
function #define SYS_CLK_FrequencyInstructionGet() MyInstructionClock()
Implement the function MyInstructionClock in system.c and provide a prototype in in system.h.
Preconditions
None
Example
unsigned long clockOutputHz;
clockOutputHz = SYS_CLK_FrequencyInstructionGet();
Function
unsigned long SYS_CLK_FrequencyInstructionGet( )
1.5.3.2 SYS_CLK_FrequencyPeripheralGet Function
Gets the peripheral clock frequency in Hz.
File
system.h
Syntax
unsigned long SYS_CLK_FrequencyPeripheralGet();
Returns
Clock frequency in Hz.
1.5 System Configurations MLA - Getting Started Help system.h
13
1

- 1
- 2
…
- 11
- 12
- 13
- 14
- 15
…
- 21
- 22