Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
在你之后
rt-thread
提交
76838b79
R
rt-thread
项目概览
在你之后
/
rt-thread
与 Fork 源项目一致
Fork自
RT-Thread / rt-thread
通知
2
Star
0
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,发现更多精彩内容 >>
提交
76838b79
编写于
4月 04, 2021
作者:
Thomas_Fly
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
revert the file
上级
3d72a6a1
变更
7
展开全部
隐藏空白更改
内联
并排
Showing
7 changed file
with
376 addition
and
376 deletion
+376
-376
bsp/nrf51822/Libraries/CMSIS/Include/core_cm0.h
bsp/nrf51822/Libraries/CMSIS/Include/core_cm0.h
+3
-3
bsp/nrf51822/Libraries/CMSIS/Include/core_cmInstr.h
bsp/nrf51822/Libraries/CMSIS/Include/core_cmInstr.h
+1
-1
bsp/nrf51822/Libraries/nrf51822/Include/compiler_abstraction.h
...rf51822/Libraries/nrf51822/Include/compiler_abstraction.h
+4
-4
bsp/nrf51822/Libraries/nrf51822/Include/nrf.h
bsp/nrf51822/Libraries/nrf51822/Include/nrf.h
+5
-5
bsp/nrf51822/Libraries/nrf51822/Include/nrf51.h
bsp/nrf51822/Libraries/nrf51822/Include/nrf51.h
+8
-8
bsp/nrf51822/Libraries/nrf51822/Include/nrf51_deprecated.h
bsp/nrf51822/Libraries/nrf51822/Include/nrf51_deprecated.h
+351
-351
bsp/nrf51822/Libraries/nrf51822/Include/nrf_gpio.h
bsp/nrf51822/Libraries/nrf51822/Include/nrf_gpio.h
+4
-4
未找到文件。
bsp/nrf51822/Libraries/CMSIS/Include/core_cm0.h
浏览文件 @
76838b79
...
...
@@ -138,15 +138,15 @@
#error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)"
#endif
#elif defined ( __CSMC__ )
/* Cosmic */
#if ( __CSMC__ & 0x400)
// FPU present for parser
#elif defined ( __CSMC__ )
/* Cosmic */
#if ( __CSMC__ & 0x400)
// FPU present for parser
#error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)"
#endif
#endif
#include <stdint.h>
/* standard types definitions */
#include <core_cmInstr.h>
/* Core Instruction Access */
#include <core_cmFunc.h>
/* Core Function Access */
#include <core_cmFunc.h>
/* Core Function Access */
#ifdef __cplusplus
}
...
...
bsp/nrf51822/Libraries/CMSIS/Include/core_cmInstr.h
浏览文件 @
76838b79
...
...
@@ -523,7 +523,7 @@ __attribute__( ( always_inline ) ) __STATIC_INLINE int32_t __REVSH(int32_t value
*/
__attribute__
(
(
always_inline
)
)
__STATIC_INLINE
uint32_t
__ROR
(
uint32_t
op1
,
uint32_t
op2
)
{
return
(
op1
>>
op2
)
|
(
op1
<<
(
32
-
op2
));
return
(
op1
>>
op2
)
|
(
op1
<<
(
32
-
op2
));
}
...
...
bsp/nrf51822/Libraries/nrf51822/Include/compiler_abstraction.h
浏览文件 @
76838b79
...
...
@@ -74,7 +74,7 @@ POSSIBILITY OF SUCH DAMAGE.
#define NRF_STATIC_ASSERT(cond, msg) \
;enum { NRF_STRING_CONCATENATE(static_assert_on_line_, __LINE__) = 1 / (!!(cond)) }
#endif
#elif defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)
#ifndef __ASM
...
...
@@ -148,7 +148,7 @@ POSSIBILITY OF SUCH DAMAGE.
#ifndef __UNUSED
#define __UNUSED
#endif
#define GET_SP() __get_SP()
#ifndef NRF_STATIC_ASSERT
...
...
@@ -174,7 +174,7 @@ POSSIBILITY OF SUCH DAMAGE.
#endif
#ifndef __PACKED
#define __PACKED __attribute__((packed))
#define __PACKED __attribute__((packed))
#endif
#ifndef __UNUSED
...
...
@@ -216,7 +216,7 @@ POSSIBILITY OF SUCH DAMAGE.
#ifndef __ALIGN
#define __ALIGN(n) __align(n)
#endif
/* Not defined for TASKING. */
#ifndef __PACKED
#define __PACKED
...
...
bsp/nrf51822/Libraries/nrf51822/Include/nrf.h
浏览文件 @
76838b79
...
...
@@ -34,11 +34,11 @@ POSSIBILITY OF SUCH DAMAGE.
#define NRF_H
/* MDK version */
#define MDK_MAJOR_VERSION 8
#define MDK_MINOR_VERSION 38
#define MDK_MICRO_VERSION 0
#define MDK_MAJOR_VERSION 8
#define MDK_MINOR_VERSION 38
#define MDK_MICRO_VERSION 0
/* Define coprocessor domains */
#if defined (NRF5340_XXAA_APPLICATION) || defined (NRF5340_XXAA_NETWORK)
#ifndef NRF5340_XXAA
...
...
@@ -112,7 +112,7 @@ POSSIBILITY OF SUCH DAMAGE.
/* Define NRF91_SERIES for common use in nRF91 series devices. */
#if defined (NRF9160_XXAA)
#ifndef NRF91_SERIES
#ifndef NRF91_SERIES
#define NRF91_SERIES
#endif
#endif
...
...
bsp/nrf51822/Libraries/nrf51822/Include/nrf51.h
浏览文件 @
76838b79
...
...
@@ -8,26 +8,26 @@
* @version V522
* @date 26. August 2014
*
* @note Generated with SVDConv V2.81d
* @note Generated with SVDConv V2.81d
* from CMSIS SVD File 'nRF51.xml' Version 522,
*
* @par Copyright (c) 2013, Nordic Semiconductor ASA
* All rights reserved.
*
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
*
* * Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
*
*
* * Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
*
* * Neither the name of Nordic Semiconductor ASA nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
*
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
...
...
@@ -38,7 +38,7 @@
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
*
*
*******************************************************************************************************/
...
...
@@ -1055,7 +1055,7 @@ typedef struct { /*!< FICR Structure
__I
uint32_t
PPFC
;
/*!< Pre-programmed factory code present. */
__I
uint32_t
RESERVED2
;
__I
uint32_t
NUMRAMBLOCK
;
/*!< Number of individualy controllable RAM blocks. */
union
{
__I
uint32_t
SIZERAMBLOCK
[
4
];
/*!< Deprecated array of size of RAM block in bytes. This name is
kept for backward compatinility purposes. Use SIZERAMBLOCKS
...
...
bsp/nrf51822/Libraries/nrf51822/Include/nrf51_deprecated.h
浏览文件 @
76838b79
此差异已折叠。
点击以展开。
bsp/nrf51822/Libraries/nrf51822/Include/nrf_gpio.h
浏览文件 @
76838b79
...
...
@@ -246,16 +246,16 @@ static __INLINE void nrf_gpio_pin_toggle(uint32_t pin_number)
{
const
uint32_t
pin_bit
=
1UL
<<
pin_number
;
const
uint32_t
pin_state
=
((
NRF_GPIO
->
OUT
>>
pin_number
)
&
1UL
);
if
(
pin_state
==
0
)
{
// Current state low, set high.
NRF_GPIO
->
OUTSET
=
pin_bit
;
NRF_GPIO
->
OUTSET
=
pin_bit
;
}
else
{
// Current state high, set low.
NRF_GPIO
->
OUTCLR
=
pin_bit
;
// Current state high, set low.
NRF_GPIO
->
OUTCLR
=
pin_bit
;
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录