NANO103 BSP V3.01.004
The Board Support Package for Nano103 Series
Functions
timer.c File Reference

Nano 103 TIMER driver source file. More...

#include "Nano103.h"
Include dependency graph for timer.c:

Go to the source code of this file.

Functions

uint32_t TIMER_Open (TIMER_T *timer, uint32_t u32Mode, uint32_t u32Freq)
 This API is used to configure timer to operate in specified mode and frequency. If timer cannot work in target frequency, a closest frequency will be chose and returned. More...
 
void TIMER_Close (TIMER_T *timer)
 This API stops Timer counting and disable the Timer interrupt function. More...
 
int32_t TIMER_Delay (TIMER_T *timer, uint32_t u32Usec)
 This API is used to create a delay loop for u32usec micro seconds. More...
 
void TIMER_EnableCapture (TIMER_T *timer, uint32_t u32CapMode, uint32_t u32Edge)
 This API is used to enable timer capture function with specified mode and capture edge. More...
 
void TIMER_DisableCapture (TIMER_T *timer)
 This API is used to disable the Timer capture function. More...
 
void TIMER_EnableEventCounter (TIMER_T *timer, uint32_t u32Edge)
 This function is used to enable the Timer counter function with specify detection edge. More...
 
void TIMER_DisableEventCounter (TIMER_T *timer)
 This API is used to disable the Timer event counter function. More...
 
uint32_t TIMER_GetModuleClock (TIMER_T *timer)
 This API is used to get the clock frequency of Timer. More...
 
void TIMER_ResetCounter (TIMER_T *timer)
 This function is used to reset the Timer counter value. More...
 
void TIMER_EnableFreqCounter (TIMER_T *timer, uint32_t u32DropCount, uint32_t u32Timeout, uint32_t u32EnableInt)
 This function is used to enable the Timer frequency counter function. More...
 
void TIMER_DisableFreqCounter (TIMER_T *timer)
 This function is used to disable the Timer frequency counter function. More...
 
void TIMER_SetTriggerSource (TIMER_T *timer, uint32_t u32Src)
 This function is used to select the interrupt source used to trigger other modules. More...
 
void TIMER_SetTriggerTarget (TIMER_T *timer, uint32_t u32Mask)
 This function is used to set modules trigger by timer interrupt. More...
 

Detailed Description

Nano 103 TIMER driver source file.

Version
V1.00
Revision
5
Date
16/02/24 9:24a
Note
SPDX-License-Identifier: Apache-2.0 Copyright (C) 2015 Nuvoton Technology Corp. All rights reserved.

Definition in file timer.c.