The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.
Dependents: hello SerialTestv11 SerialTestv12 Sierpinski ... more
mbed 2
This is the mbed 2 library. If you'd like to learn about Mbed OS please see the mbed-os docs.
TARGET_WIZWIKI_W7500ECO/TOOLCHAIN_ARM_STD/W7500x_dualtimer.h
- Committer:
- AnnaBridge
- Date:
- 2019-02-20
- Revision:
- 172:65be27845400
- Parent:
- 171:3a7713b1edbc
File content as of revision 172:65be27845400:
/** ****************************************************************************** * @file W7500x_stdPeriph_Driver/inc/W7500x_dualtimer.h * @author IOP Team * @version V1.0.0 * @date 01-May-2015 * @brief This file contains all the functions prototypes for the dualtimer * firmware library. ****************************************************************************** * ****************************************************************************** */ /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef __W7500X_DUALTIMER_H #define __W7500X_DUALTIMER_H #ifdef __cplusplus extern "C" { #endif /* Includes ------------------------------------------------------------------*/ #include "W7500x.h" /**********************************************************************************************/ /**********************************************************************************************/ // This structure and define must be in W7500x.h /**********************************************************************************************/ /**********************************************************************************************/ typedef struct { uint32_t TimerLoad; uint32_t TimerControl_Mode; uint32_t TimerControl_Pre; uint32_t TimerControl_Size; uint32_t TimerControl_OneShot; }DUALTIMER_InitTypDef; #define IS_DUALTIMER_TimerMode(MODE) (MODE <= 1) #define IS_DUALTIMER_TimerPre(PREE) (PRE <= 2) #define IS_DUALTIMER_TimerSize(SIZE) (SIZE <= 1) #define IS_DUALTIMER_OneShot(ONESHOT) (ONESHOT <= 1) #define DUALTIMER_Int_Clear 0x1ul #define DUALTIMER_Clock_Enable 0x1ul #define DUALTIMER_Clock_Disable ~DUALTIMER_Clock_Enable #define IS_DUALTIMER_ALL_CH(CH) ((CH == DUALTIMER0_0) || \ (CH == DUALTIMER0_1) || \ (CH == DUALTIMER1_0) || \ (CH == DUALTIMER1_1)) void DUALTIMER_ClockEnable(DUALTIMER_TypeDef* DUALTIMERn); void DUALTIMER_ClockDisable(DUALTIMER_TypeDef* DUALTIMERn); void DUALTIMER_DeInit(DUALTIMER_TypeDef* DUALTIMERn); void DUALTIMER_Init(DUALTIMER_TypeDef* DUALTIMERn, DUALTIMER_InitTypDef* DUALTIMER_InitStruct); void DUALTIMER_IntConfig(DUALTIMER_TypeDef* DUALTIMERn, FunctionalState state); void DUALTIMER_IntClear(DUALTIMER_TypeDef* DUALTIMERn); ITStatus DUALTIMER_GetIntStatus(DUALTIMER_TypeDef* DUALTIMERn); FlagStatus DUALTIMER_GetIntEnableStatus(DUALTIMER_TypeDef* DUALTIMERn); void DUALTIMER_Start(DUALTIMER_TypeDef* DUALTIMERn); void DUALTIMER_Stop(DUALTIMER_TypeDef* DUALTIMERn); uint32_t DUALTIMER_GetTimerLoad(DUALTIMER_TypeDef* DUALTIMERn); void DUALTIMER_SetTimerLoad(DUALTIMER_TypeDef* DUALTIMERn, uint32_t TimerLoad); uint32_t DUALTIMER_GetTimerValue(DUALTIMER_TypeDef* DUALTIMERn); uint32_t DUALTIMER_GetTimerControl(DUALTIMER_TypeDef* DUALTIMERn); void DUALTIMER_SetTimerControl(DUALTIMER_TypeDef* DUALTIMERn, uint32_t TimerControl); uint32_t DUALTIMER_GetTimerRIS(DUALTIMER_TypeDef* DUALTIMERn); uint32_t DUALTIMER_GetTimerMIS(DUALTIMER_TypeDef* DUALTIMERn); uint32_t DUALTIMER_GetTimerBGLoad(DUALTIMER_TypeDef* DUALTIMERn); void DUALTIMER_SetTimerBGLoad(DUALTIMER_TypeDef* DUALTIMERn, uint32_t TimerBGLoad); //======================= Interrupt handler ============================== //void DUALTIMER0_Handler(); //void DUALTIMER1_Handler(); #ifdef __cplusplus } #endif #endif //__W7500X_DUALTIMER_H