Commit Graph

642 Commits

Author SHA1 Message Date
zhangyuan21 4033a4a2a4 boards: remove unnecessary FAR
Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
2023-06-13 09:37:45 -03:00
zhangyuan21 6c38c44af2 assert: add regs parameter to board_crashdump function
Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
2023-06-13 09:42:27 +08:00
Petro Karashchenko dcd26ac6b2 sdcard: update sdcard detection to avoid 0xff assignment to bool type
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2023-06-11 12:55:29 +08:00
Xiang Xiao 7990f90915 Indent the define statement by two spaces
follow the code style convention

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-05-21 09:52:08 -03:00
Xiang Xiao 7a8cf7ff70 Indent the include statement by two spaces
follow the coding style

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-05-16 12:34:32 -03:00
simbit18 ce990081b6 boards/arm/stm32/stm32f411-minimum/Kconfig: Fix Kconfig style
Remove spaces from Kconfig files
Add TABs
2023-05-10 22:51:11 +08:00
raiden00pl f29e802ca8 stm32f4discovery: add composite device configuration 2023-05-09 00:59:54 +08:00
raiden00pl 023c0d7034 stm32f4discovery/stm32_usbmsc.c: fix SD card initialization 2023-05-09 00:59:54 +08:00
raiden00pl 09b2e9df7a stm32f4discovery/stm32_mmcsd.c: remove redundant SCK pin configuration, it's already selected in board.h 2023-05-09 00:59:54 +08:00
Xiang Xiao 6f6fce95a2 Replace all sprintf with snprintf
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-05-08 09:57:01 +02:00
Alan Carvalho de Assis bac304afc0 boards: Fix CONFIG_[START_DATE,START_MONTH] cannot start with 0
Run:
$ ./tools/refresh.sh --silent --defaults all

It will report that CONFIG_START_DATE and/or CONFIG_START_MONTH
are using invalid value starting with 0, so 03 should be 3, and so
on.
2023-05-04 10:11:36 +08:00
zouboan e7df243a4a boards/nucleo-f429zi: update CONFIG name to keep up with the CONFIG in arch/stm32 2023-05-03 15:05:25 -03:00
chao an 5945f080b9 boars/spawn_proxy: remove all CONFIG_POSIX_SPAWN_PROXY_STACKSIZE
Signed-off-by: chao an <anchao@xiaomi.com>
2023-04-27 17:35:58 +08:00
Peter van der Perk 33d6c1bb72 Update config for nuttx-apps#1558 2023-04-25 18:24:50 +08:00
Xiang Xiao 51dc67ad5f fs: Add g_ prefix for all global file_operations instances
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-04-24 16:13:29 +02:00
Denis Tolstov ec3355a518 boards/stm32f411-minimum: Add support for USB mass storage (gadget)
* Bind smartfs0 to LUN 0 instead of mmcsd0
* Use USB composite code from similar boards
* Pull in CDC/ACM code as well

boards/stm32f411-minimum: composite: style refactor

* Unalign `int strbase = ` text, use single spaces
* Rename `int n` to `int dev_idx` like in newer `_composite.c` board code
* Add composite defconfig with CDC/ACM and MSC for build-testing
2023-04-22 01:45:19 +08:00
Denis Tolstov da53c294b6 boards/stm32f411-minimum: Add optional onboard flash support
* Enable W25Q64 on SPI1 and use SMARTFS (using code from similar boards)
* Set defconfig dates to something more recent
2023-04-22 01:45:19 +08:00
Denis Tolstov f09f167592 boards/stm32f411-minimum: Add README.txt 2023-04-22 01:45:19 +08:00
Denis Tolstov b62db2b095 boards/stm32f411-minimum: Unmap USBHOST GPIOs
* OTG_FS_VBUS, OTG_FS_ID conflict with USART1. These are not
  connected to USB-C in any WeAct Studio MiniF4 board revisions.
* PC9 PWRON & PD5 OVER do not exist on UFQFPN48.
2023-04-22 01:45:19 +08:00
David Sidrane 54fbb911f2 board olimexino-stm32:Rework board.h not use CONFIG_STM32_USE_LEGACY_PINMAP 2023-04-19 09:58:11 +02:00
Lucas Saavedra Vaz 10f294c026 boards: Fix broken defconfigs 2023-03-28 11:11:46 -03:00
Xiang Xiao 9b4ea90f5c boards: Remove signal number from README.txt
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-03-26 08:31:36 -06:00
raiden00pl 2ddc96ff66 arch/stm32/stm32.h: do not include stm32_usbdev.h if not supported 2023-03-25 23:41:32 -07:00
chao an bafef6b3d3 stm32/photon: Use D0 Busy to detect Write Complete
1. Enable CONFIG_MMCSD_SDIOWAIT_WRCOMPLETE to use D0 Busy to detect Write Complete
2. Increase bcmf frame pool to 16
3. Increase NET_ETH_PKTSIZE to 1518 to compatible with net MTU

Signed-off-by: chao an <anchao@xiaomi.com>
2023-03-22 17:26:52 -03:00
chao an 2005076345 photon/wlan: enable more configs to make debuging more friendly
Signed-off-by: chao an <anchao@xiaomi.com>
2023-03-21 14:40:44 -03:00
Christian Rauch f57814999a fix typo cyles -> cycles 2023-03-21 00:18:13 +01:00
Masayuki Ishikawa 1917870cca boards: stm32f4discovery: Update kostest/defconfig to avoid crash
Summary:
- I noticed that recent mm_heap changes causes a crash with
  stm32f4discovery:kostest
- This is a tentative solution to avoid the crash

Impact:
- None

Testing:
- Tested with stm32f4discovery board

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2023-03-06 11:28:36 +01:00
Xiang Xiao 66c5f86018 sched: Disable stdio api by default when DEFAULT_SMALL equals y
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-03-03 00:18:03 +02:00
zhanghongyu 16ea80e53b rndis: support iob offload
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2023-03-02 02:50:59 +08:00
Xiang Xiao 2c5f653bfd Remove the tail spaces from all files except Documentation
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-02-26 13:24:24 -08:00
Xiang Xiao 8b4ecac6c2 libc: Move math library from libs/libc/math to libs/libm/libm
to prepare the support of other implementation e.g.:
https://github.com/JuliaMath/openlibm
https://gitlab.com/gtd-gmbh/libmcs

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-02-23 10:40:07 +02:00
Fotis Panagiotopoulos 9b4d784307 Improvements in sockets allocation. 2023-02-20 09:06:46 +08:00
Fotis Panagiotopoulos f207072121 Improvements in usrsock connections allocation. 2023-02-20 09:06:46 +08:00
Fotis Panagiotopoulos 7f3591b9cc Improvements in UDP connections allocation. 2023-02-20 09:06:46 +08:00
Fotis Panagiotopoulos 8f9dfe0be1 Improvements in TCP connections allocation. 2023-02-20 09:06:46 +08:00
Fotis Panagiotopoulos 85ceb7920e Typo fixes. 2023-02-17 11:17:11 -03:00
chao an e942a7c55e build/Kconfig: fix warnings detected by kconfiglib
Signed-off-by: chao an <anchao@xiaomi.com>
2023-02-09 20:07:46 +08:00
chao an 3a0fdb019d nuttx: replace all ARRAY_SIZE()/ARRAYSIZE() to nitems()
Signed-off-by: chao an <anchao@xiaomi.com>
2023-02-09 20:05:44 +08:00
raiden00pl 18cf2c4297 boards/stm32f4discovery: add nxscope CDCACM example 2023-02-08 10:06:59 +08:00
raiden00pl ca95d592d3 boards/stm32f4disco: add timer driver support 2023-02-08 02:43:13 +08:00
Xiang Xiao df102d1f06 Remove OK macro from the code base
let's use OK from sys/types.h instead

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-02-02 13:58:16 +01:00
Gustavo Henrique Nihei e6b204f438 nuttx: Use MIN/MAX definitions from "sys/param.h"
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2023-02-01 23:47:44 +08:00
duduita 2fc1192019 Add initial support to Meadow F7Micro board 2023-01-26 18:05:21 +08:00
Xiang Xiao 99e89809d7 board: Pass the assertion expression to board_crashdump too
continue the follow work:
commit 43e7b13697
Author: Xiang Xiao <xiaoxiang@xiaomi.com>
Date:   Sun Jan 22 19:31:32 2023 +0800

    assert: Log the assertion expression in case of fail

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-01-25 16:00:48 -03:00
Alan Carvalho de Assis f0289577bf boards: Update all boards config after updating NSH_CMDPARMS 2023-01-23 03:04:51 +08:00
raiden00pl d7e7990548 boards/b-g431b-esc1: support for BEMF sensing 2023-01-22 12:58:04 -03:00
Alan Carvalho de Assis 1c6dd7030f stm32f4disco: Add support to mount /tmp 2023-01-22 22:54:45 +08:00
yinshengkai 8c9e90882d boards/stm32: remove up_perf_init from boardinitialize
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2023-01-06 13:32:12 +08:00
Xiang Xiao b0a0ba3ad7 fs: Move mmap callback before truncate in [file|mountpt]_operations
since mmap may exist in block_operations, but truncate may not,
moving mmap beforee truncate could make three struct more compatible

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-01-04 17:43:59 +02:00
Xiang Xiao 779a610ca3 Remove the unnecessary NULL fields in global instance definition of file_operations
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-01-04 00:32:13 +02:00