VSF Documented
Main Page
Related Pages
Topics
Namespaces
Data Structures
Files
Examples
File List
Globals
source
hal
driver
RaspberryPi
RP2040
timer
timer.h
Go to the documentation of this file.
1
/*****************************************************************************
2
* Copyright(C)2009-2022 by VSF Team *
3
* *
4
* Licensed under the Apache License, Version 2.0 (the "License"); *
5
* you may not use this file except in compliance with the License. *
6
* You may obtain a copy of the License at *
7
* *
8
* http://www.apache.org/licenses/LICENSE-2.0 *
9
* *
10
* Unless required by applicable law or agreed to in writing, software *
11
* distributed under the License is distributed on an "AS IS" BASIS, *
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
13
* See the License for the specific language governing permissions and *
14
* limitations under the License. *
15
* *
16
****************************************************************************/
17
18
#ifndef __HAL_DRIVER_RASPBERRYPI_RP2040_TIMER_H__
19
#define __HAL_DRIVER_RASPBERRYPI_RP2040_TIMER_H__
20
21
/*============================ INCLUDES ======================================*/
22
23
#include "
hal/vsf_hal_cfg.h
"
24
25
#if VSF_HAL_USE_TIMER == ENABLED
26
27
#include "../__device.h"
28
29
/*============================ MACROS ========================================*/
30
31
#define VSF_TIMER_CFG_REIMPLEMENT_TYPE_IRQ_MASK ENABLED
32
#define VSF_TIMER_CFG_REIMPLEMENT_TYPE_CHANNEL_MODE ENABLED
33
34
/*============================ MACROFIED FUNCTIONS ===========================*/
35
/*============================ TYPES =========================================*/
36
37
typedef
enum
vsf_timer_irq_mask_t
{
38
VSF_TIMER_IRQ_MASK_OVERFLOW
= (0x01 << 0),
39
}
vsf_timer_irq_mask_t
;
40
41
typedef
enum
vsf_timer_channel_mode_t
{
42
VSF_TIMER_CHANNEL_MODE_BASE
= (0x00 << 0),
43
VSF_TIMER_BASE_ONESHOT
= (0x00 << 5),
44
VSF_TIMER_BASE_CONTINUES
= (0x01 << 5),
45
}
vsf_timer_channel_mode_t
;
46
47
/*============================ INCLUDES ======================================*/
48
#include "
hal/driver/common/template/vsf_template_timer.h
"
49
/*============================ PROTOTYPES ====================================*/
50
51
#endif
// VSF_HAL_USE_TIMER
52
#endif
// __HAL_DRIVER_RASPBERRYPI_RP2040_TIMER_H__
53
/* EOF */
vsf_timer_irq_mask_t
vsf_timer_irq_mask_t
Definition
timer.h:37
VSF_TIMER_IRQ_MASK_OVERFLOW
@ VSF_TIMER_IRQ_MASK_OVERFLOW
Definition
timer.h:38
vsf_timer_channel_mode_t
vsf_timer_channel_mode_t
Definition
timer.h:41
VSF_TIMER_CHANNEL_MODE_BASE
@ VSF_TIMER_CHANNEL_MODE_BASE
Definition
timer.h:42
VSF_TIMER_BASE_ONESHOT
@ VSF_TIMER_BASE_ONESHOT
Definition
timer.h:43
VSF_TIMER_BASE_CONTINUES
@ VSF_TIMER_BASE_CONTINUES
Definition
timer.h:44
vsf_hal_cfg.h
vsf_template_timer.h
vsf_timer_irq_mask_t
vsf_timer_irq_mask_t
Definition
vsf_template_timer.h:516
vsf_timer_channel_mode_t
vsf_timer_channel_mode_t
Predefined VSF Timer channel modes that can be reimplemented in specific HAL drivers.
Definition
vsf_template_timer.h:305
Generated from commit:
vsfteam/vsf@3b461d0