# 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
…
- 12
- 13
- 14
- 15
- 16
…
- 21
- 22

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

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