Skip to content

Commit 5d1132a

Browse files
committed
This is RUI3 SDK inside RUI_3.6.0b_183 release.
1 parent 7fa1eb6 commit 5d1132a

5,222 files changed

Lines changed: 7747031 additions & 2 deletions

File tree

Some content is hidden

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

LICENSE.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Copyright 2022 Shenzhen RAKwireless Technology Co., Ltd.
2+
3+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
4+
5+
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
6+
7+
2. 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.
8+
9+
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
10+
11+
4. This software, with or without modification, must only be used with a RAKwireless product.
12+
13+
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 DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 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.

README.md

Lines changed: 0 additions & 2 deletions
This file was deleted.

boards.txt

Lines changed: 72 additions & 0 deletions
Large diffs are not rendered by default.

cores/apollo3/app/app_glue.cpp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
extern void setup();
2+
extern void loop();
3+
4+
extern "C" void rui_setup()
5+
{
6+
setup();
7+
}
8+
9+
extern "C" void rui_loop()
10+
{
11+
loop();
12+
}
Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
2+
/******************************************************************************
3+
*
4+
* flash.ld - Linker script for applications using startup_gcc.c
5+
*
6+
*****************************************************************************/
7+
ENTRY(Reset_Handler)
8+
BOOT_VERSION = 0x000F6000;
9+
10+
MEMORY
11+
{
12+
ROMEM (rx) : ORIGIN = 0x00010000, LENGTH = 976K
13+
RWMEM (rwx) : ORIGIN = 0x10000000, LENGTH = 384K
14+
}
15+
16+
SECTIONS
17+
{
18+
.text :
19+
{
20+
. = ALIGN(4);
21+
KEEP(*(.isr_vector))
22+
KEEP(*(.patch))
23+
*(.text)
24+
*(.text*)
25+
26+
. = ALIGN(4);
27+
__init_array_start = .;
28+
KEEP(*(.init_array)) /* C++ constructors */
29+
KEEP(*(.ctors)) /* and vtable init */
30+
__init_array_end = .;
31+
32+
*(.rodata)
33+
*(.rodata*)
34+
. = ALIGN(4);
35+
_etext = .;
36+
} > ROMEM
37+
38+
/* User stack section initialized by startup code. */
39+
.stack (NOLOAD):
40+
{
41+
. = ALIGN(8);
42+
*(.stack)
43+
*(.stack*)
44+
. = ALIGN(8);
45+
} > RWMEM
46+
47+
.atcmd_queue :
48+
{
49+
PROVIDE(__start_atcmd_queue = .);
50+
KEEP(*(.atcmd_queue))
51+
PROVIDE(__stop_atcmd_queue = .);
52+
} > RWMEM
53+
54+
.data :
55+
{
56+
. = ALIGN(4);
57+
_sdata = .;
58+
*(.data)
59+
*(.data*)
60+
. = ALIGN(4);
61+
_edata = .;
62+
} > RWMEM AT>ROMEM
63+
64+
/* used by startup to initialize data */
65+
_init_data = LOADADDR(.data);
66+
67+
.bss :
68+
{
69+
. = ALIGN(4);
70+
_sbss = .;
71+
*(.bss)
72+
*(.bss*)
73+
*(COMMON)
74+
. = ALIGN(4);
75+
_ebss = .;
76+
} > RWMEM
77+
78+
.heap (COPY):
79+
{
80+
__end__ = .;
81+
PROVIDE(end = .);
82+
*(.heap*)
83+
__HeapLimit = .;
84+
} > RWMEM
85+
86+
.ARM.extab : { *(.ARM.extab* .gnu.linkonce.armextab.*) } > RWMEM
87+
.ARM : {
88+
__exidx_start = .;
89+
*(.ARM.exidx*)
90+
__exidx_end = .;
91+
} > RWMEM
92+
93+
/* remove the debugging information from the standard libraries */
94+
/DISCARD/ :
95+
{
96+
libc.a ( * )
97+
libm.a ( * )
98+
libgcc.a ( * )
99+
}
100+
101+
.ARM.attributes 0 : { *(.ARM.attributes) }
102+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#ifndef __MCU_BASIC_H__
2+
#define __MCU_BASIC_H__
3+
4+
#define MCU_SYS_CONFIG_NVM_ADDR 0x000FA000
5+
#define MCU_USER_DATA_NVM_ADDR 0x000FC000
6+
#define MCU_FACTORY_DEFAULT_NVM_ADDR 0x000FE000
7+
8+
#endif

0 commit comments

Comments
 (0)