Merge pull request #5297 from chenyingchun0312/fea_nrf5x_hwtimer

[bsp/nrf5x] add hwtimer driver
This commit is contained in:
Bernard Xiong authored and GitHub committed 2021-11-24 17:38:48 +08:00
commit 3bc5ffb495
5 files changed
+387 -12

No files matched your search

Binary file not shown.

After

Width:  |  Height:  |  Size: 730 KiB

+3
View File
@@ -39,6 +39,9 @@ if GetDepend(['BSP_USING_WDT']):
if GetDepend(['BSP_USING_ONCHIP_RTC']):
src += ['drv_rtc.c']
if GetDepend(['BSP_USING_TIM']):
src += ['drv_hwtimer.c']
path = [cwd]
File diff suppressed because it is too large. Load diff
+12 -12
View File
@@ -14,7 +14,7 @@ PCA10040-nRF52832是Nordic 官方的开发板,搭载nRF52832 芯片,基于AR
开发板外观如下图所示
![](../docs/images/nrf52832.jpg)
![](../docs/images/nrf52832.png)
PCA10040-nrf52832开发板常用 **板载资源** 如下:
@@ -34,17 +34,17 @@ PCA10040-nrf52832开发板常用 **板载资源** 如下:
本 BSP 目前对外设的支持情况如下:
| **片上外设** | **支持情况** | **备注** |
| :----------- | :----------: | :------: |
| GPIO | 支持 | GPION |
| UART | 支持 | UART0 |
| PWM | 支持 | 支持 |
| SPI | 支持 | 支持 |
| RTC | 支持 | |
| ADC | 支持 | |
| | | |
| | | |
| | | |
| **片上外设** | **支持情况** | **备注** |
| :----------- | :----------: | :-----------: |
| GPIO | 支持 | GPION |
| UART | 支持 | UART0 |
| PWM | 支持 | 支持 |
| SPI | 支持 | 支持 |
| RTC | 支持 | |
| ADC | 支持 | |
| TIMER | 支持 | TIMER0~TIMER4 |
| | | |
| | | |
+51
View File
@@ -419,6 +419,57 @@ menu "On-chip Peripheral Drivers"
range 0 2
default 2
endif
config BSP_USING_TIM
bool "Enable TIMER"
select RT_USING_HWTIMER
default n
if BSP_USING_TIM
config NRFX_TIMER_ENABLED
int
default 1
config BSP_USING_TIM0
bool "Enable TIMER0"
default n
if BSP_USING_TIM0
config NRFX_TIMER0_ENABLED
int
default 1
endif
config BSP_USING_TIM1
bool "Enable TIMER1"
default n
if BSP_USING_TIM1
config NRFX_TIMER1_ENABLED
int
default 1
endif
config BSP_USING_TIM2
bool "Enable TIMER2"
default n
if BSP_USING_TIM2
config NRFX_TIMER2_ENABLED
int
default 1
endif
config BSP_USING_TIM3
bool "Enable TIMER3"
default n
if BSP_USING_TIM3
config NRFX_TIMER3_ENABLED
int
default 1
endif
config BSP_USING_TIM4
bool "Enable TIMER4"
default n
if BSP_USING_TIM4
config NRFX_TIMER4_ENABLED
int
default 1
endif
endif
endmenu
choice