Hilscher netX microcontroller driver  V0.0.5.0
Documentation of the netX driver package
netx_drv_tim.c File Reference

Timer peripheral module driver. More...

#include "netx_drv.h"
Include dependency graph for netx_drv_tim.c:

Go to the source code of this file.

Macros

#define DRV_HANDLE_CHECK(handle)
 

Enumerations

enum  {
  DRV_TIM_IRQ_GPIOTIM0 = 0x00u,
  DRV_TIM_IRQ_GPIOTIM1 = 0x01u,
  DRV_TIM_IRQ_GPIOTIM2 = 0x02u,
  DRV_TIM_IRQ_TIMER0 = 0x03u,
  DRV_TIM_IRQ_TIMER1 = 0x04u,
  DRV_TIM_IRQ_TIMER2 = 0x05u,
  DRV_TIM_IRQ_SYSTIME_COMPARE = 0x06u,
  DRV_TIM_IRQ_SYSTICK = 0x07u
}
 

Functions

DRV_STATUS_E DRV_TIM_Init (DRV_TIM_HANDLE_T *const ptTim)
 
DRV_STATUS_E DRV_TIM_DeInit (DRV_TIM_HANDLE_T *const ptTim)
 
DRV_STATUS_E DRV_TIM_Start (DRV_TIM_HANDLE_T *const ptTim)
 
DRV_STATUS_E DRV_TIM_Stop (DRV_TIM_HANDLE_T *const ptTim)
 
DRV_STATUS_E DRV_TIM_Pause (DRV_TIM_HANDLE_T *const ptTim)
 
DRV_STATUS_E DRV_TIM_Wait (DRV_TIM_HANDLE_T *const ptTim, uint32_t ulTickCnt)
 
DRV_STATUS_E DRV_TIM_IRQAttach (DRV_TIM_HANDLE_T *const ptTim, DRV_CALLBACK_F pfnUserClb, void *pvUser)
 
DRV_STATUS_E DRV_TIM_GetState (DRV_TIM_HANDLE_T *const ptTim, DRV_TIM_STATE_E *const peState)
 
DRV_STATUS_E DRV_TIM_GetValue (DRV_TIM_HANDLE_T *const ptTim, uint32_t *const ptSoftwareValue, uint32_t *const ptHardwareValue)
 
DRV_STATUS_E DRV_TIM_SetPreload (DRV_TIM_HANDLE_T *const ptTim, DRV_TIM_PRELOAD_VALUE_E const tCounterValue)
 
void GPIOTIM0_IRQHandler (void)
 This function handles interrupts requests. More...
 
void DRV_TIM_GPIOTIM0_Callback (void)
 This is the callback of the GPIOTIM 0 IRQ. More...
 
void GPIOTIM1_IRQHandler (void)
 This function handles interrupts requests. More...
 
void DRV_TIM_GPIOTIM1_Callback (void)
 This is the callback of the GPIOTIM 1 IRQ. More...
 
void GPIOTIM2_IRQHandler (void)
 This function handles interrupts requests. More...
 
void DRV_TIM_GPIOTIM2_Callback (void)
 This is the callback of the GPIOTIM 2 IRQ. More...
 
void TIM0_IRQHandler (void)
 This function handles interrupts requests. More...
 
void DRV_TIM_TIMER0_Callback (void)
 This is the callback of the TIMER 0 IRQ. More...
 
void TIM1_IRQHandler (void)
 This function handles interrupts requests. More...
 
void DRV_TIM_TIMER1_Callback (void)
 This is the callback of the TIMER 1 IRQ. More...
 
void TIM2_IRQHandler (void)
 This function handles interrupts requests. More...
 
void DRV_TIM_TIMER2_Callback (void)
 This is the callback of the TIMER 2 IRQ. More...
 
void SYSTIME_IRQHandler (void)
 This function handles interrupts requests. More...
 
void DRV_TIM_SYSTIME_COMPARE_Callback (void)
 This is the callback of the SYSTIME COMPARE IRQ. More...
 
void SysTick_Handler (void)
 This function handles interrupts requests. More...
 
void DRV_TIM_ARMSYSTICK_Callback (void)
 This is the callback of the SYSTEM TICK IRQ. More...
 

Variables

static IRQn_Type const aulIRQnTable [DRV_TIM_IRQ_COUNT] = DRV_TIM_IRQ_LIST
 Table of the IRQ vector numbers. More...
 
static DRV_CALLBACK_F s_apTIMCallbackTable [DRV_TIM_IRQ_COUNT] = { 0 }
 Used for mapping the handle to an interrupt. More...
 
static void * s_apTIMCallbackHandleTable [DRV_TIM_IRQ_COUNT] = { 0 }
 
static DRV_TIM_HANDLE_Ts_apTIMCallbackDriverHandleTable [DRV_TIM_IRQ_COUNT] = { 0 }
 
static volatile uint32_t s_apTIMIrqCntr [DRV_TIM_IRQ_COUNT] = { 0 }
 

Detailed Description

Timer peripheral module driver.

This file provides firmware functions to manage the following functionalities of timer peripheral:

  • Initialization and de-initialization functions
  • Timer operation functions
    Revision
    5388
    Date
    2019-05-02 09:43:11 +0200 (Do, 02 Mai 2019)
    Note
    Exclusion of Liability for this demo software: The following software is intended for and must only be used for reference and in an evaluation laboratory environment. It is provided without charge and is subject to alterations. There is no warranty for the software, to the extent permitted by applicable law. Except when otherwise stated in writing the copyright holders and/or other parties provide the software "as is" without warranty of any kind, either expressed or implied. Please refer to the Agreement in README_DISCLAIMER.txt, provided together with this file! By installing or otherwise using the software, you accept the terms of this Agreement. If you do not agree to the terms of this Agreement, then do not install or use the Software!

Definition in file netx_drv_tim.c.