Commit Graph

466 Commits

Author SHA1 Message Date
Xiang Xiao
7047ba1b79 boards: Remove the unnecessary customize Make.defs
since the general Make.defs in scripts folder is enough

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-02-20 15:48:24 +01:00
Alan Rosenthal
8defb843aa Remove duplicate linker script definitions
## Summary
A lot of linker scripts were listed twice, once for unix, once for windows.

This PR cleans up the logic so they're only listed once.

 ## Impact
Any opportunity to use a single source of truth and reduce lines of code is a win!

 ## Testing
CI will test all build
2022-02-17 02:55:25 +08:00
Petro Karashchenko
41c95da594 register_driver: fix driver modes accross the code
State of problem:
 - Some drivers that do not support write operations (does not
   have write handler or ioctl do not perform any write actions)
   are registered with write permissions
 - Some drivers that do not support read operation (does not
   have read handler or ioctl do not perform any read actions)
   are registered with read permissions
 - Some drivers are registered with execute permissions

Solution:
 - Iterate code where register_driver() is used and change 'mode'
   parameter to reflect the actual read/write operations executed
   by a driver
 - Remove execute permissions from 'mode' parameter

Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-02-16 16:15:29 +08:00
Huang Qi
c0a0de97ce Revert "libc: Call pthread_exit in user-space by up_pthread_exit"
This reverts commit f4a0b7aedd.

Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2022-02-09 21:21:43 +08:00
John Bonham
f731763211 board: nucleo-l152re: Added registering logic I2C on /dev.
board: nucleo-l152re: Added registering logic I2C on /dev.

squash 5 commits

board: nucleo-l152re: Add missing I2C1 GPIO definition
I2C1 not worked due to it's GPIO pin definition has been missing on board.h.
Fix it through include two pin macros on stm32l15xxx_pinmap.h(arch/arm/src/stm32/hardware) to board.h
GPIO_I2C1_SCL => PB8 (CN5 pin 10, D15)
GPIO_I2C1_SDA => PB9 (CN5 pin 9, D14)

Added board_late_initialize() function for init I2C.

board: nucleo-l152re: Added registering logic I2C on /dev.
I2C1 hasn't been registered on /dev. Fix it.

board: nucleo-l152re: Fix code style.

Update board.h

board: nucleo-l152re: Fix code style.

Variables starting with symbol '"g_*" means it is a global variable, I think this is not the case here.

Fix code style
2022-02-09 12:26:01 +08:00
Xiang Xiao
0499979908 sched: Disable pthread by default when DEFAULT_SMALL is enabled
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-02-07 12:04:03 +08:00
raiden00pl
fdc74dd05f boards/nucleo-g431rb: add SocketCAN example 2022-02-06 20:06:06 +08:00
raiden00pl
ce1c5b814e boards/b-g431b-esc1: add SocketCAN example 2022-02-06 20:06:06 +08:00
raiden00pl
bc178344a9 net/can: add an option to control CAN EXTID support 2022-02-06 17:09:11 +08:00
raiden00pl
4f7ab47443 boards/arm/stm32g4: normalize CAN configs 2022-02-06 17:09:11 +08:00
Xiang Xiao
a9d7a776c4 sched: Remove SDCLONE_DISABLE option and config
since the related code was removed by:
commit 4d5a964f29
Author: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
Date:   Tue Feb 23 18:04:13 2021 +0800

    net: unify socket into file descriptor

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-01-31 19:03:20 +01:00
Xiang Xiao
ecccc614bd arch: Add up_perf_getfreq function
it's important to know the perf count frequency

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-01-25 21:02:14 -03:00
Xiang Xiao
a24ae559c2 arch: Decouple up_critmon_[gettime|convert] from critmon
and rename to up_perf_[gettime|convert] since it's useful in other case

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-01-25 14:43:34 +08:00
Alan C. Assis
31b1fd5c89 stm32f4discovery: Add support to MS5611 2022-01-24 10:23:45 +08:00
Xu Xingliang
021363f1db driver/mmcsd: add option to limit block count in multiple-block transfer mode.
Signed-off-by: Xu Xingliang <xuxingliang@xiaomi.com>
2022-01-22 14:59:26 +08:00
Xiang Xiao
8bcdefafc9 board: Remove -fno-strength-reduce
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-01-19 00:14:03 +01:00
ligd
cb502a869c clock: update clock_synchronize() to support with time
Signed-off-by: ligd <liguiding1@xiaomi.com>
2022-01-18 22:48:15 +08:00
raiden00pl
4e1df81fa8 boards/nucleo-g431rb: add CAN example 2022-01-18 18:19:10 +08:00
raiden00pl
499c7ce4f5 boards/b-g431b-esc1: add CAN example 2022-01-18 18:19:10 +08:00
raiden00pl
d3841eb753 boards/nucleo-g431rb: add option to select HSI or HSE ass PLL source 2022-01-18 18:19:10 +08:00
raiden00pl
72ce934f73 boards/b-g431b-esc1: add option to select HSI or HSE as PLL source 2022-01-18 18:19:10 +08:00
Petro Karashchenko
8d3bf05fd2 include: fix double include pre-processor guards
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-01-16 11:11:14 -03:00
raiden00pl
2aede9168b boards/nucleo-f446re: add SocketCAN example 2022-01-15 12:51:55 -03:00
raiden00pl
3b1de327cd boards/nucleo-f302r8: add CAN and SocketCAN examples 2022-01-15 12:51:55 -03:00
Petro Karashchenko
2447b7bd9a pthread: restore pthread mutex default protocol POSIX compatibility
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-01-11 01:55:12 +08:00
raiden00pl
a983cd2377 boards/stm32: register CAN character device if configured 2022-01-05 06:16:41 -08:00
Alan Rosenthal
f4d74b52d8 Rename tools/Makefile.* to have the .mk extension
This PR renames `tools/Makefile.*` to have the `.mk` extension. This PR also updates `README.md` and other files that references the other files.
Note: Skipped Makefile.host for this PR since it caused failures in CI for the sim build

By using a standard extension for Makefiles (https://www.file-extension.info/format/mk), editors will auto-format files.
This change will also improve developer ergonomics when searching for specific files

Verified locally that build still works, CI will verify more!
2022-01-05 18:33:16 +08:00
raiden00pl
474205e1be boards/nucleo-f446re: add procfs support 2022-01-05 18:31:44 +08:00
Petro Karashchenko
6c2b40f98a typos: fix typos in many files
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-01-03 22:10:07 +08:00
Petro Karashchenko
d23ad9b9b0 userspace: fix typos in comments
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-01-02 20:50:30 +01:00
Alexander Lunev
780cf0f23f boards/photon: added configuration to measure wlan performance 2021-12-31 11:39:47 +08:00
chao.an
cbd82f1c1b compile/flags: remove redundant -fomit-frame-pointer from board flags
Signed-off-by: chao.an <anchao@xiaomi.com>
2021-12-27 22:31:27 -06:00
Petro Karashchenko
3ccb657dc2 nuttx: remove space befone newline in logs
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2021-12-27 21:01:19 -06:00
ligd
412d030149 boards: move USERMAIN_XX out of INIT_ENTRYPOINT
Signed-off-by: ligd <liguiding1@xiaomi.com>
2021-12-24 08:23:30 -06:00
Juha Niskanen
422ceec99b Fix typos in comments and Kconfig files
Signed-off-by: Juha Niskanen <juha.niskanen@haltian.com>
2021-12-21 03:26:16 -06:00
Ryan Abel
fd9ef2f6a2 fix: Correct issues with userled support on the Nucleo F4x1RE.
Remove space following left parenthesis.

Add space after comment.

Update stm32_bringup.c
2021-12-18 09:11:44 -06:00
Alexander Lunev
12c128ae43 boards/emw3162: enabled internal pull-up resistors on SDIO bus
in STM32F205 chip as there are not external pull-up resistors on SDIO bus on EMW3162 module.
2021-12-16 07:16:49 -06:00
Petro Karashchenko
51a2db6ffc Kconfig: improve uniformity
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2021-12-14 07:32:48 -06:00
Huang Qi
58e0781e2e arch/arm: Implement TLS support
Signed-off-by: Huang Qi <no1wudi@qq.com>
2021-12-07 23:31:41 -06:00
raiden00pl
59786bf208 boards/nucleo-f302r8: add 3ph Hall sensor support 2021-12-04 08:51:25 -06:00
Xiang Xiao
0aeb132d15 board: Run ./tools/refresh.sh --silent all
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-11-10 09:16:35 +01:00
Xiang Xiao
1f371581c8 board: Run ./tools/refresh.sh --silent all
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-11-09 13:09:40 +01:00
Xiang Xiao
3847539f3d board: Run ./tools/refresh.sh --silent all
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-11-07 13:19:15 +01:00
raiden00pl
f2405ccc57 boards/b-g431b-esc1: register Qenco index pin 2021-11-07 03:52:48 -06:00
YAMAMOTO Takashi
37141bb5e8 Refresh configs after the removal of NET_TCP_SPLIT 2021-11-04 13:32:57 -05:00
raiden00pl
2d125d33d3 boards/nucleo-f302r8: disable NSH commands for FOC configs to save FLASH 2021-11-04 13:05:31 -05:00
raiden00pl
1c28126670 boards/b-g431b-esc1: add Hall and Qenco support 2021-11-02 11:54:08 -05:00
raiden00pl
99b7ae5207 boards/stm32: Normalize FOC related project 2021-10-31 08:22:49 -05:00
Xiang Xiao
a7a7ba50ac boards/stm32: Normalize FOC related project
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-10-31 12:54:19 +01:00
raiden00pl
d862cbd7c8 boards: rename CONFIG_EXAMPLES_FOC_VEL_ADC to CONFIG_EXAMPLES_FOC_SETPOINT_ADC for all example/foc configurations 2021-10-30 13:50:40 -05:00