# Vault 7: Projects

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

### Protego

# MLA -- Drivers

20 December, 2013

- 1
- 2
…
- 45
- 46
- 47
- 48
- 49
…
- 82
- 83

Syntax
void DRV_UART1_TasksTX();
Returns
None.
Description
This routine is used to maintain the driver's internal transmitter state machine.This routine is called when the state of the
transmitter needs to be maintained in a polled manner.
Preconditions
DRV_UART1_InitializerDefault function should have been called before calling this function in a polled loop.
Example
Refer to DRV_UART1_InitializerDefault() for an example
Function
void DRV_UART1_TasksTX ( void );
1.2.3.3.5 DRV_UART2_InitializerDefault Function
Initializes the UART instance : 2
File
drv_uart2.h
Syntax
void DRV_UART2_InitializerDefault();
Returns
None.
Description
This routine initializes the UART driver instance for : 2 index, making it ready for clients to open and use it.
Remarks
This routine must be called before any other UART routine is called.
Preconditions
None.
Example
const uint8_t writeBuffer[35] = "1234567890ABCDEFGHIJKLMNOPn" ;
unsigned int numBytes = 0;
int writebufferLen = strlen((char *)writeBuffer);
DRV_UART2_InitializerDefault();
while(numBytes < writebufferLen)
{
int bytesToWrite = DRV_UART2_TXBufferSizeGet();
numBytes = DRV_UART2_Write ( writeBuffer+numBytes, bytesToWrite) ;
DRV_UART2_TasksTX ( );
if (!DRV_UART2_TXBufferisFull())
{
//continue other operation
}
}
Function
void DRV_UART2_InitializerDefault(void)
1.2 UART Driver MLA - Drivers Help Driver Interface
47

- 1
- 2
…
- 45
- 46
- 47
- 48
- 49
…
- 82
- 83