Autodrone
Multi-Domain Vehicle
drv_tim.c File Reference

This file enables use of a timer to ensure accurate timing of the PID loop. More...

#include "board.h"

Functions

void tim9Init (void)
 Initializes the low level registers to set up timer 9. More...
 
uint32_t tim9GetCnt (void)
 Gets the counter value. More...
 
void tim9ResetCnt (void)
 Resets the counter. More...
 
void tim9Enable (void)
 Enables the timer. More...
 
void tim9Disable (void)
 Disables the timer. More...
 

Detailed Description

This file enables use of a timer to ensure accurate timing of the PID loop.

Author
Jeremy Wolfe
Date
07 MAR 2022

Function Documentation

◆ tim9Disable()

void tim9Disable ( void  )

Disables the timer.

Returns
Void.

◆ tim9Enable()

void tim9Enable ( void  )

Enables the timer.

Returns
Void.

◆ tim9GetCnt()

uint32_t tim9GetCnt ( void  )

Gets the counter value.

Returns
Void.

◆ tim9Init()

void tim9Init ( void  )

Initializes the low level registers to set up timer 9.

Returns
Void.

◆ tim9ResetCnt()

void tim9ResetCnt ( void  )

Resets the counter.

Returns
Void.