Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
不穿格子衫的农民
TencentOS Tiny
提交
4390d3a5
T
TencentOS Tiny
项目概览
不穿格子衫的农民
/
TencentOS Tiny
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
TencentOS Tiny
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
4390d3a5
编写于
1月 26, 2021
作者:
whik1194
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
delete some unused files
上级
9f76f7d3
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
0 addition
and
114 deletion
+0
-114
board/Microchip_M2S010/BSP/Inc/config.h
board/Microchip_M2S010/BSP/Inc/config.h
+0
-24
board/Microchip_M2S010/BSP/Inc/mcu_init.h
board/Microchip_M2S010/BSP/Inc/mcu_init.h
+0
-4
board/Microchip_M2S010/BSP/Src/board.c
board/Microchip_M2S010/BSP/Src/board.c
+0
-86
未找到文件。
board/Microchip_M2S010/BSP/Inc/config.h
已删除
100644 → 0
浏览文件 @
9f76f7d3
/*
* Copyright (c) 2006-2020, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2020-08-06 whik first version
*/
#ifndef __CONFIG_H__
#define __CONFIG_H__
#include "mss_gpio.h"
#include "mss_uart.h"
#include <rthw.h>
#include <rtthread.h>
void
sw0_isr
(
void
*
args
);
void
sw1_isr
(
void
*
args
);
void
boardInit
(
void
);
void
sayHello
(
void
);
#endif
board/Microchip_M2S010/BSP/Inc/mcu_init.h
浏览文件 @
4390d3a5
...
...
@@ -12,8 +12,4 @@
void
board_init
(
void
);
#ifdef __cplusplus
}
#endif
#endif
/* _MCU_INIT_H_ */
board/Microchip_M2S010/BSP/Src/board.c
已删除
100644 → 0
浏览文件 @
9f76f7d3
/*
* Copyright (c) 2006-2020, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2020-08-06 whik first version
*/
#include <stdint.h>
#include <rthw.h>
#include <rtthread.h>
#define _SCB_BASE (0xE000E010UL)
#define _SYSTICK_CTRL (*(rt_uint32_t *)(_SCB_BASE + 0x0))
#define _SYSTICK_LOAD (*(rt_uint32_t *)(_SCB_BASE + 0x4))
#define _SYSTICK_VAL (*(rt_uint32_t *)(_SCB_BASE + 0x8))
#define _SYSTICK_CALIB (*(rt_uint32_t *)(_SCB_BASE + 0xC))
#define _SYSTICK_PRI (*(rt_uint8_t *)(0xE000ED23UL))
extern
void
SystemCoreClockUpdate
(
void
);
extern
uint32_t
SystemCoreClock
;
static
uint32_t
_SysTick_Config
(
rt_uint32_t
ticks
)
{
if
((
ticks
-
1
)
>
0xFFFFFF
)
{
return
1
;
}
_SYSTICK_LOAD
=
ticks
-
1
;
_SYSTICK_PRI
=
0xFF
;
_SYSTICK_VAL
=
0
;
_SYSTICK_CTRL
=
0x07
;
return
0
;
}
#if defined(RT_USING_USER_MAIN) && defined(RT_USING_HEAP)
#define RT_HEAP_SIZE 1024
static
uint32_t
rt_heap
[
RT_HEAP_SIZE
];
// heap default size: 4K(1024 * 4)
RT_WEAK
void
*
rt_heap_begin_get
(
void
)
{
return
rt_heap
;
}
RT_WEAK
void
*
rt_heap_end_get
(
void
)
{
return
rt_heap
+
RT_HEAP_SIZE
;
}
#endif
/* This function will initial your board. */
void
rt_hw_board_init
()
{
/* System Clock Update */
SystemCoreClockUpdate
();
/* System Tick Configuration */
_SysTick_Config
(
SystemCoreClock
/
RT_TICK_PER_SECOND
);
/* Call components board initial (use INIT_BOARD_EXPORT()) */
#ifdef RT_USING_COMPONENTS_INIT
rt_components_board_init
();
#endif
#ifdef RT_USING_CONSOLE
rt_console_set_device
(
RT_CONSOLE_DEVICE_NAME
);
#endif
#if defined(RT_USING_USER_MAIN) && defined(RT_USING_HEAP)
rt_system_heap_init
(
rt_heap_begin_get
(),
rt_heap_end_get
());
#endif
}
void
SysTick_Handler
(
void
)
{
/* enter interrupt */
rt_interrupt_enter
();
rt_tick_increase
();
/* leave interrupt */
rt_interrupt_leave
();
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录