Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
wwsmg1
rt-thread
提交
8849d163
R
rt-thread
项目概览
wwsmg1
/
rt-thread
与 Fork 源项目一致
Fork自
RT-Thread / rt-thread
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
rt-thread
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
8849d163
编写于
6月 19, 2021
作者:
Thomas_Fly
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[bsp/nrf5x] rebuild nrf52840 gpio
上级
56815eb6
变更
12
展开全部
隐藏空白更改
内联
并排
Showing
12 changed file
with
461 addition
and
559 deletion
+461
-559
bsp/nrf5x/nrf52840/.config
bsp/nrf5x/nrf52840/.config
+10
-26
bsp/nrf5x/nrf52840/board/SConscript
bsp/nrf5x/nrf52840/board/SConscript
+1
-2
bsp/nrf5x/nrf52840/board/app_config.h
bsp/nrf5x/nrf52840/board/app_config.h
+0
-4
bsp/nrf5x/nrf52840/board/board.h
bsp/nrf5x/nrf52840/board/board.h
+10
-0
bsp/nrf5x/nrf52840/board/linker_scripts/link.lds
bsp/nrf5x/nrf52840/board/linker_scripts/link.lds
+0
-1
bsp/nrf5x/nrf52840/board/sdk_config.h
bsp/nrf5x/nrf52840/board/sdk_config.h
+0
-3
bsp/nrf5x/nrf52840/project.uvoptx
bsp/nrf5x/nrf52840/project.uvoptx
+251
-307
bsp/nrf5x/nrf52840/project.uvprojx
bsp/nrf5x/nrf52840/project.uvprojx
+172
-196
bsp/nrf5x/nrf52840/rtconfig.h
bsp/nrf5x/nrf52840/rtconfig.h
+8
-12
bsp/nrf5x/nrf52840/rtconfig.py
bsp/nrf5x/nrf52840/rtconfig.py
+1
-1
bsp/nrf5x/nrf52840/template.uvoptx
bsp/nrf5x/nrf52840/template.uvoptx
+1
-1
bsp/nrf5x/nrf52840/template.uvprojx
bsp/nrf5x/nrf52840/template.uvprojx
+7
-6
未找到文件。
bsp/nrf5x/nrf52840/.config
浏览文件 @
8849d163
...
...
@@ -437,9 +437,9 @@ CONFIG_RT_USING_PIN=y
# CONFIG_PKG_USING_NRF5X_SDK is not set
CONFIG_PKG_USING_NRFX
=
y
CONFIG_PKG_NRFX_PATH
=
"/packages/peripherals/nrfx"
CONFIG_PKG_USING_NRFX_V210
=
y
# CONFIG_PKG_USING_NRFX_LATEST_VERSION is not set
CONFIG_PKG_NRFX_VER
=
"
v2.1.0
"
# CONFIG_PKG_USING_NRFX_V210 is not set
CONFIG_PKG_USING_NRFX_LATEST_VERSION
=
y
CONFIG_PKG_NRFX_VER
=
"
latest
"
# CONFIG_PKG_USING_WM_LIBRARIES is not set
# CONFIG_PKG_USING_KENDRYTE_SDK is not set
# CONFIG_PKG_USING_INFRARED is not set
...
...
@@ -557,35 +557,18 @@ CONFIG_PKG_NRFX_VER="v2.1.0"
# Hardware Drivers Config
#
CONFIG_SOC_NRF52840
=
y
CONFIG_NRFX_CLOCK_ENABLED
=
1
CONFIG_NRFX_CLOCK_DEFAULT_CONFIG_IRQ_PRIORITY
=
7
CONFIG_NRFX_CLOCK_CONFIG_LF_SRC
=
1
CONFIG_SOC_NORDIC
=
y
#
# Onboard Peripheral Drivers
#
CONFIG_BSP_USING_JLINK_TO_USART
=
y
# CONFIG_BSP_USING_QSPI_FLASH is not set
CONFIG_BSP_BOARD_PCA_10056
=
y
#
# On-chip Peripheral Drivers
#
CONFIG_BSP_USING_GPIO
=
y
CONFIG_NRFX_GPIOTE_ENABLED
=
1
# CONFIG_BSP_USING_SAADC is not set
# CONFIG_BSP_USING_PWM is not set
CONFIG_BSP_USING_UART
=
y
CONFIG_NRFX_USING_UART
=
y
# CONFIG_NRFX_USING_UARTE is not set
CONFIG_NRFX_UART_ENABLED
=
1
CONFIG_BSP_USING_UART0
=
y
CONFIG_NRFX_UART0_ENABLED
=
1
CONFIG_BSP_UART0_RX_PIN
=
8
CONFIG_BSP_UART0_TX_PIN
=
6
# CONFIG_BSP_USING_I2C is not set
# CONFIG_BSP_USING_SPI is not set
# CONFIG_BSP_USING_ON_CHIP_FLASH is not set
#
# On-chip flash config
...
...
@@ -595,8 +578,9 @@ CONFIG_MCU_FLASH_SIZE_KB=1024
CONFIG_MCU_SRAM_START_ADDRESS
=
0
x20000000
CONFIG_MCU_SRAM_SIZE_KB
=
256
CONFIG_MCU_FLASH_PAGE_SIZE
=
0
x1000
# CONFIG_BSP_USING_WDT is not set
# CONFIG_BSP_USING_ONCHIP_RTC is not set
CONFIG_BLE_STACK_USING_NULL
=
y
# CONFIG_BSP_USING_SOFTDEVICE is not set
# CONFIG_BSP_USING_NIMBLE is not set
CONFIG_NRFX_CLOCK_ENABLED
=
1
CONFIG_NRFX_CLOCK_DEFAULT_CONFIG_IRQ_PRIORITY
=
7
CONFIG_NRFX_CLOCK_CONFIG_LF_SRC
=
1
CONFIG_NRFX_USING_UART
=
y
CONFIG_NRFX_UART_ENABLED
=
1
CONFIG_NRFX_UART0_ENABLED
=
1
bsp/nrf5x/nrf52840/board/SConscript
浏览文件 @
8849d163
...
...
@@ -5,7 +5,6 @@ from building import *
cwd
=
GetCurrentDir
()
src
=
Glob
(
'*.c'
)
CPPPATH
=
[
cwd
]
define
=
[
'USE_APP_CONFIG'
]
group
=
DefineGroup
(
'Drivers'
,
src
,
depend
=
[
''
],
CPPPATH
=
CPPPATH
,
CPPDEFINES
=
define
)
group
=
DefineGroup
(
'Drivers'
,
src
,
depend
=
[
''
],
CPPPATH
=
CPPPATH
)
Return
(
'group'
)
bsp/nrf5x/nrf52840/board/app_config.h
已删除
100644 → 0
浏览文件 @
56815eb6
#ifndef APP_CONFIG_H
#define APP_CONFIG_H
#endif //APP_CONFIG_H
bsp/nrf5x/nrf52840/board/board.h
浏览文件 @
8849d163
/*
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2020-06-19 supperthomas first version
*
*/
#ifndef _BOARD_H_
#define _BOARD_H_
...
...
bsp/nrf5x/nrf52840/board/linker_scripts/link.lds
浏览文件 @
8849d163
...
...
@@ -7,7 +7,6 @@ MEMORY
{
FLASH (rx) : ORIGIN = 0x0, LENGTH = 0x100000
RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 0x40000
CODE_RAM (rwx) : ORIGIN = 0x800000, LENGTH = 0x10000
}
INCLUDE "packages/nrfx-v2.1.0/mdk/nrf_common.ld"
...
...
bsp/nrf5x/nrf52840/board/sdk_config.h
浏览文件 @
8849d163
...
...
@@ -43,9 +43,6 @@
#ifndef SDK_CONFIG_H
#define SDK_CONFIG_H
// <<< Use Configuration Wizard in Context Menu >>>\n
#ifdef USE_APP_CONFIG
#include "app_config.h"
#endif
// <h> nRF_BLE
#include <rtconfig.h>
...
...
bsp/nrf5x/nrf52840/project.uvoptx
浏览文件 @
8849d163
此差异已折叠。
点击以展开。
bsp/nrf5x/nrf52840/project.uvprojx
浏览文件 @
8849d163
此差异已折叠。
点击以展开。
bsp/nrf5x/nrf52840/rtconfig.h
浏览文件 @
8849d163
...
...
@@ -151,7 +151,7 @@
/* peripheral libraries and drivers */
#define PKG_USING_NRFX
#define PKG_USING_NRFX_
V210
#define PKG_USING_NRFX_
LATEST_VERSION
/* AI packages */
...
...
@@ -168,24 +168,15 @@
/* Hardware Drivers Config */
#define SOC_NRF52840
#define NRFX_CLOCK_ENABLED 1
#define NRFX_CLOCK_DEFAULT_CONFIG_IRQ_PRIORITY 7
#define NRFX_CLOCK_CONFIG_LF_SRC 1
#define SOC_NORDIC
/* Onboard Peripheral Drivers */
#define BSP_USING_JLINK_TO_USART
#define BSP_BOARD_PCA_10056
/* On-chip Peripheral Drivers */
#define BSP_USING_GPIO
#define NRFX_GPIOTE_ENABLED 1
#define BSP_USING_UART
#define NRFX_USING_UART
#define NRFX_UART_ENABLED 1
#define BSP_USING_UART0
#define NRFX_UART0_ENABLED 1
#define BSP_UART0_RX_PIN 8
#define BSP_UART0_TX_PIN 6
...
...
@@ -196,6 +187,11 @@
#define MCU_SRAM_START_ADDRESS 0x20000000
#define MCU_SRAM_SIZE_KB 256
#define MCU_FLASH_PAGE_SIZE 0x1000
#define BLE_STACK_USING_NULL
#define NRFX_CLOCK_ENABLED 1
#define NRFX_CLOCK_DEFAULT_CONFIG_IRQ_PRIORITY 7
#define NRFX_CLOCK_CONFIG_LF_SRC 1
#define NRFX_USING_UART
#define NRFX_UART_ENABLED 1
#define NRFX_UART0_ENABLED 1
#endif
bsp/nrf5x/nrf52840/rtconfig.py
浏览文件 @
8849d163
...
...
@@ -40,7 +40,7 @@ if PLATFORM == 'gcc':
OBJDUMP
=
PREFIX
+
'objdump'
OBJCPY
=
PREFIX
+
'objcopy'
DEVICE
=
' -mcpu=
cortex-m4
-mthumb -ffunction-sections -fdata-sections'
DEVICE
=
' -mcpu=
'
+
CPU
+
'
-mthumb -ffunction-sections -fdata-sections'
CFLAGS
=
DEVICE
AFLAGS
=
' -c'
+
DEVICE
+
' -x assembler-with-cpp'
LFLAGS
=
DEVICE
+
' -Wl,--gc-sections,-Map=rtthread.map,-cref,-u,Reset_Handler -T board/linker_scripts/link.lds'
...
...
bsp/nrf5x/nrf52840/template.uvoptx
浏览文件 @
8849d163
...
...
@@ -10,7 +10,7 @@
<aExt>
*.s*; *.src; *.a*
</aExt>
<oExt>
*.obj; *.o
</oExt>
<lExt>
*.lib
</lExt>
<tExt>
*.txt; *.h; *.inc
</tExt>
<tExt>
*.txt; *.h; *.inc
; *.md
</tExt>
<pExt>
*.plm
</pExt>
<CppX>
*.cpp
</CppX>
<nMigrate>
0
</nMigrate>
...
...
bsp/nrf5x/nrf52840/template.uvprojx
浏览文件 @
8849d163
...
...
@@ -16,7 +16,7 @@
<TargetCommonOption>
<Device>
nRF52840_xxAA
</Device>
<Vendor>
Nordic Semiconductor
</Vendor>
<PackID>
NordicSemiconductor.nRF_DeviceFamilyPack.8.3
2.1
</PackID>
<PackID>
NordicSemiconductor.nRF_DeviceFamilyPack.8.3
8.0
</PackID>
<PackURL>
http://developer.nordicsemi.com/nRF5_SDK/pieces/nRF_DeviceFamilyPack/
</PackURL>
<Cpu>
IRAM(0x20000000,0x40000) IROM(0x00000000,0x100000) CPUTYPE("Cortex-M4") FPU2 CLOCK(12000000) ELITTLE
</Cpu>
<FlashUtilSpec></FlashUtilSpec>
...
...
@@ -185,6 +185,7 @@
<uocXRam>
0
</uocXRam>
<RvdsVP>
2
</RvdsVP>
<RvdsMve>
0
</RvdsMve>
<RvdsCdeCp>
0
</RvdsCdeCp>
<hadIRAM2>
0
</hadIRAM2>
<hadIROM2>
0
</hadIROM2>
<StupSel>
8
</StupSel>
...
...
@@ -336,7 +337,7 @@
<v6Rtti>
0
</v6Rtti>
<VariousControls>
<MiscControls>
--reduce_paths
</MiscControls>
<Define>
BLE_STACK_SUPPORT_REQD NRF_SD_BLE_API_VERSION=4 S140 SOFTDEVICE_PRESENT SWI_DISABLE0 CONFIG_GPIO_AS_PINRESET NRF52 NRF52832_XXAA NRF52_PAN_12 NRF52_PAN_15 NRF52_PAN_20 NRF52_PAN_31 NRF52_PAN_36 NRF52_PAN_51 NRF52_PAN_54 NRF52_PAN_55 NRF52_PAN_58 NRF52_PAN_64 NRF52_PAN_74
</Define>
<Define></Define>
<Undefine></Undefine>
<IncludePath></IncludePath>
</VariousControls>
...
...
@@ -351,16 +352,16 @@
<NoWarn>
0
</NoWarn>
<uSurpInc>
0
</uSurpInc>
<useXO>
0
</useXO>
<
uClangAs>
0
</uClangAs
>
<
ClangAsOpt>
4
</ClangAsOpt
>
<VariousControls>
<MiscControls>
--cpreproc_opts=-DBLE_STACK_SUPPORT_REQD,-DNRF_SD_BLE_API_VERSION=4,-DS132,-DSOFTDEVICE_PRESENT,-DSWI_DISABLE0,-DCONFIG_GPIO_AS_PINRESET,-DNRF52,-DNRF52832_XXAA,-DNRF52_PAN_12,-DNRF52_PAN_15,-DNRF52_PAN_20,-DNRF52_PAN_31,-DNRF52_PAN_36,-DNRF52_PAN_51,-DNRF52_PAN_54,-DNRF52_PAN_55,-DNRF52_PAN_58,-DNRF52_PAN_64,-DNRF52_PAN_74
</MiscControls>
<MiscControls></MiscControls>
<Define></Define>
<Undefine></Undefine>
<IncludePath></IncludePath>
</VariousControls>
</Aads>
<LDads>
<umfTarg>
1
</umfTarg>
<umfTarg>
0
</umfTarg>
<Ropi>
0
</Ropi>
<Rwpi>
0
</Rwpi>
<noStLib>
0
</noStLib>
...
...
@@ -369,7 +370,7 @@
<TextAddressRange>
0x00000000
</TextAddressRange>
<DataAddressRange>
0x20000000
</DataAddressRange>
<pXoBase></pXoBase>
<ScatterFile></ScatterFile>
<ScatterFile>
.\board\linker_scripts\link.sct
</ScatterFile>
<IncludeLibs></IncludeLibs>
<IncludeLibsPath></IncludeLibsPath>
<Misc>
--diag_suppress 6330
</Misc>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录