Skip to content

Commit

Permalink
This is RUI3 SDK inside RUI_3.6.0b_183 release.
Browse files Browse the repository at this point in the history
  • Loading branch information
ianlo-rak committed Oct 4, 2022
1 parent 7fa1eb6 commit 5d1132a
Show file tree
Hide file tree
Showing 5,222 changed files with 7,747,031 additions and 2 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
13 changes: 13 additions & 0 deletions LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Copyright 2022 Shenzhen RAKwireless Technology Co., Ltd.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

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.

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.

4. This software, with or without modification, must only be used with a RAKwireless product.

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.
2 changes: 0 additions & 2 deletions README.md

This file was deleted.

72 changes: 72 additions & 0 deletions boards.txt

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions cores/apollo3/app/app_glue.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
extern void setup();
extern void loop();

extern "C" void rui_setup()
{
setup();
}

extern "C" void rui_loop()
{
loop();
}
102 changes: 102 additions & 0 deletions cores/apollo3/component/core/mcu/apollo3/flash_apollo3.ld
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@

/******************************************************************************
*
* flash.ld - Linker script for applications using startup_gcc.c
*
*****************************************************************************/
ENTRY(Reset_Handler)
BOOT_VERSION = 0x000F6000;

MEMORY
{
ROMEM (rx) : ORIGIN = 0x00010000, LENGTH = 976K
RWMEM (rwx) : ORIGIN = 0x10000000, LENGTH = 384K
}

SECTIONS
{
.text :
{
. = ALIGN(4);
KEEP(*(.isr_vector))
KEEP(*(.patch))
*(.text)
*(.text*)

. = ALIGN(4);
__init_array_start = .;
KEEP(*(.init_array)) /* C++ constructors */
KEEP(*(.ctors)) /* and vtable init */
__init_array_end = .;

*(.rodata)
*(.rodata*)
. = ALIGN(4);
_etext = .;
} > ROMEM

/* User stack section initialized by startup code. */
.stack (NOLOAD):
{
. = ALIGN(8);
*(.stack)
*(.stack*)
. = ALIGN(8);
} > RWMEM

.atcmd_queue :
{
PROVIDE(__start_atcmd_queue = .);
KEEP(*(.atcmd_queue))
PROVIDE(__stop_atcmd_queue = .);
} > RWMEM

.data :
{
. = ALIGN(4);
_sdata = .;
*(.data)
*(.data*)
. = ALIGN(4);
_edata = .;
} > RWMEM AT>ROMEM

/* used by startup to initialize data */
_init_data = LOADADDR(.data);

.bss :
{
. = ALIGN(4);
_sbss = .;
*(.bss)
*(.bss*)
*(COMMON)
. = ALIGN(4);
_ebss = .;
} > RWMEM

.heap (COPY):
{
__end__ = .;
PROVIDE(end = .);
*(.heap*)
__HeapLimit = .;
} > RWMEM

.ARM.extab : { *(.ARM.extab* .gnu.linkonce.armextab.*) } > RWMEM
.ARM : {
__exidx_start = .;
*(.ARM.exidx*)
__exidx_end = .;
} > RWMEM

/* remove the debugging information from the standard libraries */
/DISCARD/ :
{
libc.a ( * )
libm.a ( * )
libgcc.a ( * )
}

.ARM.attributes 0 : { *(.ARM.attributes) }
}
8 changes: 8 additions & 0 deletions cores/apollo3/component/core/mcu/apollo3/mcu_basic.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#ifndef __MCU_BASIC_H__
#define __MCU_BASIC_H__

#define MCU_SYS_CONFIG_NVM_ADDR 0x000FA000
#define MCU_USER_DATA_NVM_ADDR 0x000FC000
#define MCU_FACTORY_DEFAULT_NVM_ADDR 0x000FE000

#endif
Loading

0 comments on commit 5d1132a

Please sign in to comment.