summaryrefslogtreecommitdiff
path: root/bsp/tae32f5300/application
diff options
context:
space:
mode:
authorxiaoqin <[email protected]>2021-09-08 04:04:39 -0500
committerGitHub <[email protected]>2021-09-08 17:04:39 +0800
commit7fa1c819ee852937705d948a58f0218c422ea6b1 (patch)
tree854b62f847090020b03aaa1bf0a47ac79c04b231 /bsp/tae32f5300/application
parent42c0144319167036f83b5c53dd3c4c940b8ba967 (diff)
add bsp of tae32f5300 (#5015)
* add bsp of tae32f5300 * [tae32f5300]Modify the format of the bsp of tae32f5300 * [tae32f5300]Remove the compilation scripts of gcc and iar * [tae32f5300]Resolve conflicts of action.yml secondly
Diffstat (limited to 'bsp/tae32f5300/application')
-rw-r--r--bsp/tae32f5300/application/SConscript12
-rw-r--r--bsp/tae32f5300/application/main.c29
-rw-r--r--bsp/tae32f5300/application/main.h73
3 files changed, 114 insertions, 0 deletions
diff --git a/bsp/tae32f5300/application/SConscript b/bsp/tae32f5300/application/SConscript
new file mode 100644
index 0000000000..6f66f7ab73
--- /dev/null
+++ b/bsp/tae32f5300/application/SConscript
@@ -0,0 +1,12 @@
+import rtconfig
+from building import *
+
+cwd = GetCurrentDir()
+CPPPATH = [cwd, str(Dir('#'))]
+src = Split("""
+main.c
+""")
+
+group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH)
+
+Return('group')
diff --git a/bsp/tae32f5300/application/main.c b/bsp/tae32f5300/application/main.c
new file mode 100644
index 0000000000..f86f07e29b
--- /dev/null
+++ b/bsp/tae32f5300/application/main.c
@@ -0,0 +1,29 @@
+/*
+ * Copyright (c) 2006-2019, RT-Thread Development Team
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ *
+ * Change Logs:
+ * Date Author Notes
+ * 2021-09-05 qinweizhong add support for tae32
+ */
+#include "rtthread.h"
+#include "board.h"
+
+#define LED_PIN 42
+
+int main(void)
+{
+ int count = 1;
+ rt_pin_mode(LED_PIN, PIN_MODE_OUTPUT);
+
+ while (count++)
+ {
+ rt_pin_write(LED_PIN, PIN_HIGH);
+ rt_thread_mdelay(500);
+ rt_pin_write(LED_PIN, PIN_LOW);
+ rt_thread_mdelay(500);
+
+ rt_kprintf("count %d\r\n", count);
+ }
+}
diff --git a/bsp/tae32f5300/application/main.h b/bsp/tae32f5300/application/main.h
new file mode 100644
index 0000000000..059031647f
--- /dev/null
+++ b/bsp/tae32f5300/application/main.h
@@ -0,0 +1,73 @@
+/**
+ ******************************************************************************
+ * @file main.h
+ * @author MCD Application Team
+ * @brief Header for main.c module
+ *
+ ******************************************************************************
+ * @attention
+ *
+ * <h2><center>&copy; Copyright (c) 2020 Tai-Action.
+ * All rights reserved.</center></h2>
+ *
+ * This software is licensed by Tai-Action under BSD 3-Clause license,
+ * the "License"; You may not use this file except in compliance with the
+ * License. You may obtain a copy of the License at:
+ * opensource.org/licenses/BSD-3-Clause
+ *
+ ******************************************************************************
+ */
+
+/* Define to prevent recursive inclusion -------------------------------------*/
+#ifndef _MAIN_H_
+#define _MAIN_H_
+
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
+/* Includes ------------------------------------------------------------------*/
+#include "tae32f53xx_ll.h"
+//#include "dbg/user_debug.h"
+#include <stdio.h>
+
+
+/** @addtogroup TAE32F53xx_Examples
+ * @{
+ */
+
+/** @addtogroup TAE32F53xx_Template
+ * @{
+ */
+
+
+/* Exported constants --------------------------------------------------------*/
+/* Exported macro ------------------------------------------------------------*/
+/* Exported types ------------------------------------------------------------*/
+/* Exported functions --------------------------------------------------------*/
+/* Private variables ---------------------------------------------------------*/
+/* Private constants ---------------------------------------------------------*/
+/* Private macros ------------------------------------------------------------*/
+/* Private types -------------------------------------------------------------*/
+/* Private functions ---------------------------------------------------------*/
+
+
+/**
+ * @}
+ */
+
+/**
+ * @}
+ */
+
+
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
+
+#endif /* _MAIN_H_ */
+
+
+/************************* (C) COPYRIGHT Tai-Action *****END OF FILE***********/
+