Xiang Xiao
eb4121ce38
Change all 'Nuttx' to 'NuttX'
...
Unify the naming convention
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-10-20 01:45:06 -07:00
Brennan Ashton
a7585b74b2
Kconfig: Fix syntax error in giant-board
...
Signed-off-by: Brennan Ashton <bashton@brennanashton.com>
2020-09-16 14:16:50 -06:00
Adam Feuer
6e7d966b0a
converted spaces to tabs for giant-board entries
2020-09-16 13:24:41 -06:00
Adam Feuer
1aed2f1a2a
Update boards/arm/sama5/giant-board/src/sam_i2schar.c
...
Co-authored-by: patacongo <spudarnia@yahoo.com>
2020-09-16 13:24:41 -06:00
Adam Feuer
6a31da67ff
Update boards/arm/sama5/giant-board/src/sam_sdram.c
...
Co-authored-by: patacongo <spudarnia@yahoo.com>
2020-09-16 13:24:41 -06:00
Adam Feuer
1784a3a675
Update boards/arm/sama5/giant-board/src/sam_i2schar.c
...
Co-authored-by: patacongo <spudarnia@yahoo.com>
2020-09-16 13:24:41 -06:00
Adam Feuer
cab35983d4
giant-board support (SAMA5D27C-D1G)
2020-09-16 13:24:41 -06:00
Xiang Xiao
b0797263ca
libc/stdio: Allocate file_struct dynamically
...
1.Reduce the default size of task_group_s(~512B each task)
2.Scale better between simple and complex application
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: Ia872137504fddcf64d89c48d6f0593d76d582710
2020-09-11 17:58:17 +08:00
Brennan Ashton
58e43adf08
nxstyle: Fix existing long line to match code style
...
Signed-off-by: Brennan Ashton <bashton@brennanashton.com>
2020-08-30 19:16:30 -03:00
Brennan Ashton
4cb193d530
Docs: Update links to old website and wiki
...
Signed-off-by: Brennan Ashton <bashton@brennanashton.com>
2020-08-30 19:16:30 -03:00
Xiang Xiao
a0ce81d659
sched/wdog: Don't dynamically allocate wdog_s
...
to save the preserved space(1KB) and also avoid the heap overhead
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I694073f68e1bd63960cedeea1ddec441437be025
2020-08-11 12:28:55 -06:00
Xiang Xiao
154852acb5
sched/mqueue: Reduce the initial memory consumption
...
Change the preallocated message and descriptor from 32/24 to 4.
The total size is reduce from 1892 to 532
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I79d199465daef678986868f773876289859f42fc
2020-08-10 08:07:50 +02:00
Xiang Xiao
e1d3627bb1
sched/wdog: Change the default value of MAX_WDOGPARMS from 4 to 2
...
since the maximum number of argument pass to wd_start in the whole
code base is 2 and change CONFIG_MAX_WDOGPARMS in some defconfig
from 1 to 2 oherwise pthread_condclockwait will fail
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: Ib6cb28b8c0722058849e7be916e164513431d21c
2020-08-06 10:36:22 -06:00
Xiang Xiao
b329e2377d
boards: Move toolchain related variables to Toolchain.defs
...
1.It make sense to let Toolchain.defs give the default value
2.The board can still change if the default isn't suitable
3.Avoid the same definition spread more than 200 Make.defs
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: Ic2649f1c7689bcf59c105ca8db61cad45b6e0e64
2020-07-20 17:10:37 +01:00
Adam Feuer
85811957c9
implement system reset on SAMA5D27
...
- makes nsh reboot command work
Squashed commit of the following:
commit 5193f6ae9623bfb4d3bed4ecf3d0fb9ae1bfb6e8
Author: Adam Feuer <adam@starcat.io>
Date: Thu Jul 16 16:41:54 2020 -0700
removed conflict tag that was missed
- result of an incorrectly fixed bad merge
commit 731108ea7495655e96e516448887ca8c9ab354d1
Author: Adam Feuer <adam@starcat.io>
Date: Thu Jul 16 16:12:30 2020 -0700
implement system reset to make nsh reboot work
Squashed commit of the following:
commit 245d155cc58d31af412f2b832877736b2088b896
Author: Adam Feuer <adam@starcat.io>
Date: Thu Jul 16 16:10:10 2020 -0700
add Kconfig setting for system reset
commit e7d5def8151821bf359c55c05ba1f59421b2371a
Author: Adam Feuer <adam@starcat.io>
Date: Thu Jul 16 15:51:35 2020 -0700
implement system reset to make nsh reboot work
2020-07-17 13:32:22 +01:00
Adam Feuer
65a866fbe2
support for SAMA5D27 SDMMC peripheral
...
- MMC and SD Card driver
- ported from imxrt_usdhc.c
Squashed commit of the following:
commit 46cbe18ad6a6e41ec2727d839f86f5670577878a
Author: Adam Feuer <adam@starcat.io>
Date: Wed Jul 15 10:28:02 2020 -0700
nxstyle change - Public Function Prototypes
- instead of Public Functions
commit 486b7b62e83a78ae15b114e34846900d8fef8248
Author: Adam Feuer <adam@starcat.io>
Date: Wed Jul 15 10:06:51 2020 -0700
nxstyle changes
commit 28280d585a40aac99fd0e538295828ea013739b7
Author: Adam Feuer <adam@starcat.io>
Date: Wed Jul 15 10:06:29 2020 -0700
removing unused enum value
commit 7da6ba437e7e023d348e63c497732fea985a2d1b
Author: Adam Feuer <adam@starcat.io>
Date: Tue Jul 14 21:17:49 2020 -0700
CI build error fixes
- unused vars
- incorrect method calls
commit 145a73449b9d1eaed8a6cbf47cb53fb5b7a551f6
Author: Adam Feuer <adam@starcat.io>
Date: Tue Jul 14 17:29:56 2020 -0700
adding #defines to prevent unused var warning
commit 47ed2c08235816caded26a019cf33899daed1621
Author: Adam Feuer <adam@starcat.io>
Date: Tue Jul 14 16:29:07 2020 -0700
removing obsolete config values
commit b43f129c03a8bb8dc57ae6984d124ce9e9306196
Author: Adam Feuer <adam@starcat.io>
Date: Tue Jul 14 09:58:42 2020 -0700
removed obsolete config setting
commit 23e3af846ac24cac928442c7af86c5d0ef183ad3
Merge: 8b47330fe5 6f6d61eec4
Author: Adam Feuer <adam@starcat.io>
Date: Tue Jul 14 09:53:12 2020 -0700
Merge remote-tracking branch 'upstream/master' into feature/sama5d27-sdmmc-support
commit 8b47330fe5bb49bbd1991f2f3e2c69bdfb833d2c
Author: Adam Feuer <adam@starcat.io>
Date: Tue Jul 14 09:51:56 2020 -0700
replaced license headers with Apache License 2.0
commit 865e69b9a84d077ab9e05c2056dc7a515222c6c7
Author: Adam Feuer <adam@starcat.io>
Date: Thu Jul 9 18:38:01 2020 -0700
SAMA5D2x SDMMC peripheral support (SD Card driver)
- reading and writing at 25 MHz and 50Mhz
- UHS_SDR50, UHS_DDR50, and UHS_SDR104 are supported
- ported from imxrt_usdhc.c
- only tested on SAMA5D27
Squashed commit of the following:
commit e3122baef2feaeb32bb00798ae56310b2cc5c448
Author: Adam Feuer <adam@starcat.io>
Date: Thu Jul 9 18:30:03 2020 -0700
added sdmmcnsh defconfig and basic docs
commit 12a290d7465a0a006473ba67893bf891a7bcea83
Author: Adam Feuer <adam@starcat.io>
Date: Thu Jul 9 17:50:06 2020 -0700
nxstyle changes
commit 33409c0f63c328dc200150ba883327cadf0300b2
Author: Adam Feuer <adam@starcat.io>
Date: Thu Jul 9 16:15:00 2020 -0700
add short delay to in recvshortcrc
- to allow SDMMC to respond
commit 3be7a7fb6f79900042d1fdbef72810f364ac5f62
Author: Adam Feuer <adam@adamfeuer.com>
Date: Thu Jul 9 10:54:59 2020 -0700
added SDR50 and SDR104 SDMMC bus modes
commit 2888408866548ca53e582ea1525178a7733617b4
Author: Adam Feuer <adam@adamfeuer.com>
Date: Thu Jul 9 10:54:25 2020 -0700
comment formatting cleanup
commit 06cf2c39193971155eaa6f9c89a39a88b53964a8
Author: Adam Feuer <adam@adamfeuer.com>
Date: Thu Jul 9 10:34:01 2020 -0700
removed unneeded comment
commit ac89b69231bdf19563754865fda93d4bbbb4488d
Author: Adam Feuer <adam@adamfeuer.com>
Date: Thu Jul 9 10:30:23 2020 -0700
code cleanup
- removing custinfo() logging
- remove duplicate #defines
- move var declarations to the beginning of methods
commit bcd4abec7935ee9023ab72edfb02685dbeee243c
Author: Adam Feuer <adam@adamfeuer.com>
Date: Wed Jul 8 16:34:31 2020 -0700
handle SDMA Boundary Pause interrupt (DMAINT)
- SDMMC_INT_DINT
- add to waitints
- add handler to sam_interrupt
commit e9da026c1270e999df520ee2c60487195799f58c
Author: Adam Feuer <adam@adamfeuer.com>
Date: Tue Jul 7 16:07:34 2020 -0700
Kconfig setting for SDMMC bus speed
- 25 and 50 MHz
- 50 MHz is the default
commit 9edc636b7f18f981d653f85970c3af0b80801778
Author: Adam Feuer <adam@adamfeuer.com>
Date: Mon Jul 6 21:55:51 2020 -0700
added HSEN bit change for high speed mode
- above 26 MHz
commit b8e91c95b0f7b2f8220f02b1eb42b6134e0660d0
Author: Adam Feuer <adam@adamfeuer.com>
Date: Mon Jul 6 21:28:03 2020 -0700
added calloc to fix bug
- not sure why this works.
commit 1ceaf2f8487fe39d4d6fb21adecd57e4c4992e07
Author: Adam Feuer <adam@adamfeuer.com>
Date: Mon Jul 6 21:25:47 2020 -0700
removing spurious typo characters
commit 14ba51743bcca35686b07a76f5af17bcce078a5f
Author: Adam Feuer <adam@adamfeuer.com>
Date: Sat Jul 4 18:10:46 2020 -0700
nxstyle changes
commit d8af26df47b7840117de0d3a44ec548b3a72bc2b
Author: Adam Feuer <adam@adamfeuer.com>
Date: Sat Jul 4 17:01:11 2020 -0700
nxstyle changes
commit 0ae532bd62d02c5ac36aa2192f31fa1f7f1cde99
Author: Adam Feuer <adam@adamfeuer.com>
Date: Sat Jul 4 16:37:17 2020 -0700
remove long lines in comments - nxstyle
commit 3d025a84f8e9ddb7f7a4570504118d782dd5574c
Author: Adam Feuer <adam@adamfeuer.com>
Date: Sat Jul 4 16:36:52 2020 -0700
removed custinfo logging
commit 366b5d9d241a42d693583679cb49aa7bf25615aa
Author: Adam Feuer <adam@adamfeuer.com>
Date: Sat Jul 4 16:35:08 2020 -0700
removed custinfo logging
commit c74396e4a4943873c7de5b6ffee193787c39baef
Author: Adam Feuer <adam@adamfeuer.com>
Date: Sat Jul 4 16:34:36 2020 -0700
fixed typo
commit 7f51e99d7f4c1e5e0bf71a84fd0b2467157fea59
Merge: c40f8c1039 2481b1bfd5
Author: Adam Feuer <adam@adamfeuer.com>
Date: Sat Jul 4 15:33:06 2020 -0700
Merge remote-tracking branch 'upstream/master' into feature/sama5d27-sdmmc-support
commit c40f8c10390ecefeb3a113046edd6740b07ab31b
Author: Adam Feuer <adam@adamfeuer.com>
Date: Thu Jul 2 22:08:20 2020 -0700
SDMMC support for SAMA5D27
2020-07-16 23:39:37 +01:00
Xiang Xiao
ee875b2a26
boards: Move HOSTCC/HOSTCFLAGS to tools/Config.mk
...
Make.defs under board folder can still overwrite the default as needed
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I1c300a8ace4b54d475ef8d398661ed65ca273a2e
2020-07-15 19:14:58 +01:00
Xiang Xiao
d32e9c38df
boards: Move the C/C++ search path to the common place
...
so all boards support uClibc++/libc++ automatically
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: Ibe6fafbec57f7acb26ea6188a3e9923ea82295c5
2020-07-13 15:11:12 -03:00
chao.an
d938e2cd46
CI check: fix nxstyle warning
...
nxstyle fixes to reduce the CI warnings
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-07-02 01:53:23 -05:00
Xiang Xiao
49020acfdc
boards: Remove the unused CONFIG_xxx_CXXINITIALIZE=y
...
since cxx initialization is controlled by CONFIG_HAVE_CXXINITIALIZE now
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I39438dc3006d0a0b810052ecef50cd3c92f09d83
2020-07-01 10:41:37 -06:00
Xiang Xiao
24262a4ddb
Fix nxstyle issue
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-06-07 19:28:10 +01:00
Xiang Xiao
7a18ebe459
drivers/led: Extend userled_set_t from 8bits to 32bits
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I5701b42ff930998198b1d915316cc4f2d085d4eb
2020-06-07 19:28:10 +01:00
Xiang Xiao
76965474ac
drivers/led: Let board_userled_initialize return the led number
...
so the lower half driver don't need include the specific board.h
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: Icf6638a6865bac42150b5957376e55909f041d40
2020-06-07 19:28:10 +01:00
Xiang Xiao
a61b8a13c6
Fix nxstyle issue
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-06-07 19:28:10 +01:00
Xiang Xiao
1b47aa1cb2
drivers/button: Let board_button_initialize return the button number
...
so the lower half driver don't need include the specific board.h
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I2ff5c30049a5c5e8ee90baea56e9f4cb1a8a4f87
2020-06-07 19:28:10 +01:00
Xiang Xiao
4fe35cc87c
boards: Remove OUTPUT_FORMAT and OUTPUT_ARCH from ld script
...
let toolchain decide the correct value base on the command line
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I342db6a88e4a161a322a8fea48a59e6ca7617ae6
2020-06-02 07:11:54 -06:00
Gregory Nutt
1414c55c45
boards/arm: Leverage PR 1150 to other ARM Make.defs
2020-05-30 20:09:02 +01:00
YAMAMOTO Takashi
4f1258f727
sama5: Disable CONFIG_NETUTILS_NETLIB_GENERICURLPARSER for a config
...
There is no clear reason why this option is enabled here.
This is a preparation for
https://github.com/apache/incubator-nuttx-apps/pull/278
2020-05-26 10:37:48 +08:00
Xiang Xiao
8b20b97d26
build: Remove the dummy drivers folder under boards
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-24 20:20:12 +01:00
Xiang Xiao
e83c1400b6
build: Move BOARD_DIR definition to common place
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-24 20:20:12 +01:00
Xiang Xiao
7e5b0f81e9
build: Replace -I with INCDIR
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-24 20:20:12 +01:00
Xiang Xiao
23668a4b9b
build: Remove the empty variable assignment
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-24 08:24:13 -06:00
Xiang Xiao
edb0ce2d5a
build: Don't need use $(DELIM) in include statement
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-24 08:24:13 -06:00
Xiang Xiao
1a95cce1a3
build: Move .config check to the top Makefile
...
remove the workaround to handle the inexistence of .config/Make.defs
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-20 17:57:34 +01:00
Xiang Xiao
7faf3c0254
build: replace ${TOPDIR} with $(TOPDIR) in Makefile
...
make the usage consistence
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-19 19:23:18 +01:00
Xiang Xiao
567962bd62
build: Move the extension definition to common place
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-19 19:23:18 +01:00
Xiang Xiao
8b42ee421a
build: Move MKDEP definition to common place
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-19 19:23:18 +01:00
Xiang Xiao
9ec9431706
build: Move DIRLINK/DIRUNLINK definition to common place
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-19 19:23:18 +01:00
Xiang Xiao
bd656888f2
build: Replace WINTOOL with CYGWIN_WINTOOL Kconfig
...
so the correct value can be determinated by Kconfig system automatically
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-18 15:02:55 -06:00
Nathan Hartman
8d985819b3
Fix typos
...
Comments only. No functional changes.
2020-05-14 10:49:44 -06:00
Gregory Nutt
801b9d6e5f
arch/arm: Remove support for old redundant toolchains.
...
Remove support for the Codesourcery, Atollic, DevKitArm, Raisonance, and CodeRed toolchains. Not only are these tools old and no longer used but they are all equivalent to standard ARM EABI toolchains. Retaining specific support has no effect (they are still supported, but now just as generic EABI toolchains).
2020-05-13 18:41:10 +01:00
Xiang Xiao
7ffafa3654
Remove executable bit from source code
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-13 06:32:13 -06:00
Xiang Xiao
92c721a532
boards: Fix the wrong order in some defconfig
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-11 12:24:58 -06:00
Gregory Nutt
037c9ea0a4
arch/arm: Rename all up_*.h files to arm_*.h
...
Summary
The naming standard at https://cwiki.apache.org/confluence/display/NUTTX/Naming+FAQ requires that all MCU-private files begin with the name of the architecture, not up_.
This PR addresses only these name changes for the up_*.h files. There are only three, but almost 1680 files that include them:
up_arch.h
up_internal.h
up_vfork.h
The only change to the files is from including up_arch.h to arm_arch.h (for example).
The entire job required to be compatible with that Naming Convention will also require changing the naming of the up_() functions that are used only within arch/arm and board/arm.
Impact
There should be not impact of this change (other that one step toward more consistent naming).
Testing
stm32f4discovery:netnsh
2020-05-01 03:43:44 +01:00
Gregory Nutt
a86884c615
Run all .c and .h files modifed in this PR through nxstyle.
2020-04-30 22:09:51 +01:00
Gregory Nutt
6398a64e26
Rename up_saveusercontext to arm_saveusercontext
2020-04-30 22:09:51 +01:00
Xiang Xiao
5d12735f34
sama5d3x-ek/nxwm: Fix error: 'g_adcdev' undeclared
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-04-29 14:04:14 -06:00
Xiang Xiao
1692c90d15
Revert "sama5d3x-ek/nxwm: Fix error: 'g_adcdev' undeclared"
...
This reverts commit ab2e24b42b
.
2020-04-29 14:04:14 -06:00
Xiang Xiao
ab2e24b42b
sama5d3x-ek/nxwm: Fix error: 'g_adcdev' undeclared
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-04-29 07:10:44 -06:00
Xiang Xiao
7ffccf738c
Makefile: Remove KERNEL variable which isn't really used
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-04-28 09:01:58 -06:00