Skip to content

Commit 4368ed5

Browse files
authored
Initial version. (#1)
1 parent 23b1843 commit 4368ed5

File tree

12,134 files changed

+4926791
-2
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

12,134 files changed

+4926791
-2
lines changed

.gitattributes

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
.git* export-ignore
2+
.hooks* export-ignore
3+
4+
# Custom attribute to mark sources as using our C code style.
5+
[attr]our-c-style whitespace=tab-in-indent eol=lf format.clang-format-6.0
6+
7+
# Custom attribute to mark sources as generated.
8+
# Do not perform whitespace checks. Do not format.
9+
[attr]generated whitespace=-tab-in-indent,-indent-with-non-tab -format.clang-format-6.0
10+
11+
bootstrap eol=lf
12+
configure eol=lf
13+
*.[1-9] eol=lf
14+
*.bash eol=lf
15+
*.sh eol=lf
16+
*.sh.in eol=lf
17+
18+
*.bat eol=crlf
19+
*.bat.in eol=crlf
20+
*.sln eol=crlf
21+
*.vcproj eol=crlf
22+
23+
*.pfx -text
24+
*.png -text
25+
*.png.in -text
26+
27+
*.c our-c-style
28+
*.cc our-c-style
29+
*.cpp our-c-style
30+
*.cu our-c-style
31+
*.cxx our-c-style
32+
*.h our-c-style
33+
*.hh our-c-style
34+
*.hpp our-c-style
35+
*.hxx our-c-style
36+
*.notcu our-c-style
37+
38+
*.cmake whitespace=tab-in-indent
39+
*.rst whitespace=tab-in-indent conflict-marker-size=79
40+
*.txt whitespace=tab-in-indent

.gitignore

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
.vscode/
2+
.settings/
3+
.metadata/
4+
_deps/
5+
build/
6+
Debug/
7+
CMakeFiles/
8+
CMakeScripts/
9+
CMakeLists.txt.user
10+
CMakeCache.txt
11+
Testing
12+
Makefile
13+
cmake_install.cmake
14+
install_manifest.txt
15+
compile_commands.json
16+
CTestTestfile.cmake
17+
*.dep
18+
*.o
19+
*.axf
20+
*.map
21+
#*.a
22+
*.htm
23+

.gitmodules

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[submodule "shared/lib/threadx"]
2+
path = shared/lib/threadx
3+
url = https://github.com/eclipse-threadx/threadx.git
4+
[submodule "shared/lib/netxduo"]
5+
path = shared/lib/netxduo
6+
url = https://github.com/eclipse-threadx/netxduo.git

CONTRIBUTING.md

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
# Contributing to Eclipse ThreadX
2+
3+
Thanks for your interest in this project.
4+
5+
## Project description
6+
7+
Eclipse ThreadX provides a vendor-neutral, open source, safety certified OS for
8+
real-time applications published on under a permissive license. The Eclipse
9+
ThreadX suite encompasses:
10+
* ThreadX - advanced real-time operating system (RTOS) designed specifically for deeply embedded applications
11+
* NetX Duo - advanced, industrial-grade TCP/IP network stack designed specifically for deeply embedded real-time and IoT applications
12+
* FileX - high-performance, FAT-compatible file system that’s fully integrated with ThreadX kernel
13+
* GUIX - provides a complete, embedded graphical user interface (GUI) library
14+
* USBX - high-performance USB host, device, and on-the-go (OTG) embedded stack, that is fully integrated with ThreadX kernel
15+
* LevelX - Flash Wear Leveling for FileX and stand-alone purposes
16+
* GuiX Studio - design environment, facilitating the creation and maintenance of all graphical elements for GUIX
17+
* TraceX - analysis tool that provides a graphical view of real-time system events to better understand the behavior of real-time systems
18+
19+
Project site: https://projects.eclipse.org/projects/iot.threadx
20+
21+
## Repository description
22+
23+
This repository contains sample code aimed at developers working with the MXChip IoT DevKit (AZ3166).
24+
25+
## Terms of Use
26+
27+
This repository is subject to the Terms of Use of the Eclipse Foundation
28+
https://www.eclipse.org/legal/termsofuse.php
29+
30+
## Developer resources
31+
32+
Information regarding source code management, builds, coding standards, and more.
33+
https://projects.eclipse.org/projects/iot.threadx/developer
34+
35+
The project maintains the following source code repositories
36+
37+
* https://github.com/eclipse-threadx/.github
38+
* https://github.com/eclipse-threadx/cmsis-packs
39+
* https://github.com/eclipse-threadx/filex
40+
* https://github.com/eclipse-threadx/getting-started
41+
* https://github.com/eclipse-threadx/guix
42+
* https://github.com/eclipse-threadx/levelx
43+
* https://github.com/eclipse-threadx/netxduo
44+
* https://github.com/eclipse-threadx/rtos-docs
45+
* https://github.com/eclipse-threadx/samples
46+
* https://github.com/eclipse-threadx/threadx
47+
* https://github.com/eclipse-threadx/threadx-learn-samples
48+
* https://github.com/eclipse-threadx/tracex
49+
* https://github.com/eclipse-threadx/usbx
50+
51+
## Eclipse Development Process
52+
53+
This Eclipse Foundation open project is governed by the Eclipse Foundation
54+
Development Process and operates under the terms of the Eclipse IP Policy.
55+
56+
* https://eclipse.org/projects/dev_process
57+
* https://www.eclipse.org/org/documents/Eclipse_IP_Policy.pdf
58+
59+
## Eclipse Contributor Agreement
60+
61+
In order to be able to contribute to Eclipse Foundation projects you must electronically sign the Eclipse Contributor Agreement (ECA).
62+
https://www.eclipse.org/legal/ECA.php
63+
64+
The ECA provides the Eclipse Foundation with a permanent record that you agree
65+
that each of your contributions will comply with the commitments documented in
66+
the Developer Certificate of Origin (DCO). Having an ECA on file associated with
67+
the email address matching the "Author" field of your contribution's Git commits
68+
fulfills the DCO's requirement that you sign-off on your contributions.
69+
70+
For more information, please see the Eclipse Committer Handbook:
71+
https://www.eclipse.org/projects/handbook/#resources-commit
72+
73+
## Contact
74+
75+
Contact the project developers via the project's "dev" list.
76+
https://accounts.eclipse.org/mailing-list/threadx-dev

LICENSE

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
MIT License
2+
3+
Copyright (c) Microsoft
4+
Copyright (c) 2024 Eclipse Foundation
5+
6+
Permission is hereby granted, free of charge, to any person obtaining a copy
7+
of this software and associated documentation files (the "Software"), to deal
8+
in the Software without restriction, including without limitation the rights
9+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
copies of the Software, and to permit persons to whom the Software is
11+
furnished to do so, subject to the following conditions:
12+
13+
The above copyright notice and this permission notice shall be included in all
14+
copies or substantial portions of the Software.
15+
16+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22+
SOFTWARE.

MXChip/AZ3166/CMakeLists.txt

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Copyright (c) Microsoft
2+
# Copyright (c) 2024 Eclipse Foundation
3+
#
4+
# This program and the accompanying materials are made available
5+
# under the terms of the MIT license which is available at
6+
# https://opensource.org/license/mit.
7+
#
8+
# SPDX-License-Identifier: MIT
9+
#
10+
# Contributors:
11+
# Microsoft - Initial version
12+
# Frédéric Desbiens - 2024 version.
13+
14+
cmake_minimum_required(VERSION 3.5 FATAL_ERROR)
15+
set(CMAKE_C_STANDARD 99)
16+
17+
set(GSG_BASE_DIR ${CMAKE_SOURCE_DIR}/../..)
18+
set(SHARED_SRC_DIR ${GSG_BASE_DIR}/shared/src)
19+
set(SHARED_LIB_DIR ${GSG_BASE_DIR}/shared/lib)
20+
21+
# Set the toolchain if not defined
22+
if(NOT CMAKE_TOOLCHAIN_FILE)
23+
set(CMAKE_TOOLCHAIN_FILE "${GSG_BASE_DIR}/cmake/arm-gcc-cortex-m4.cmake")
24+
endif()
25+
26+
list(APPEND CMAKE_MODULE_PATH ${GSG_BASE_DIR}/cmake)
27+
list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)
28+
29+
include(utilities)
30+
31+
# Define the Project
32+
# CXX enables IntelliSense only. Sources are still compiled as C.
33+
project(mxchip_threadx C CXX ASM)
34+
35+
add_subdirectory(${SHARED_SRC_DIR} shared_src)
36+
add_subdirectory(lib)
37+
add_subdirectory(app)
38+

MXChip/AZ3166/CMakePresets.json

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"version": 2,
3+
"configurePresets": [
4+
{
5+
"name": "arm-gcc-cortex-m4",
6+
"generator": "Ninja",
7+
"binaryDir": "${sourceDir}/build",
8+
"cacheVariables": {
9+
"CMAKE_BUILD_TYPE": "Debug",
10+
"CMAKE_INSTALL_PREFIX": "${sourceDir}/install",
11+
"CMAKE_TOOLCHAIN_FILE": {
12+
"type": "FILEPATH",
13+
"value": "${sourceDir}/../../cmake/arm-gcc-cortex-m4.cmake"
14+
}
15+
},
16+
"architecture": {
17+
"value": "unspecified",
18+
"strategy": "external"
19+
},
20+
"vendor": {
21+
"microsoft.com/VisualStudioSettings/CMake/1.0": {
22+
"intelliSenseMode": "linux-gcc-arm"
23+
}
24+
}
25+
}
26+
],
27+
"buildPresets": [
28+
{
29+
"name": "arm-gcc-cortex-m4",
30+
"configurePreset": "arm-gcc-cortex-m4"
31+
}
32+
]
33+
}

0 commit comments

Comments
 (0)