SPRESENSE
75b6a260e0
arch: cxd56xx: Rename to nxsem_set_protocol
...
nxsem_setprotocol function name was changed to nxsem_set_protocol.
Replace and fix hostif compile error.
2021-07-04 00:36:07 -05:00
SPRESENSE
4364a291f0
arch: cxd56xx: Use arm_arch.h instead of up_arch.h
...
Use arm_arch.h instead of up_arch.h and fix hostif compile error.
2021-07-04 00:36:07 -05:00
SPRESENSE
cb6ad9dfbd
arch: cxd56xx: Fix getting stuck by nested spinlock in serial
...
Fix an issue the serial console gets stuck in SMP caused by nested
spin_lock_irqsave.
2021-07-04 00:36:07 -05:00
Xiang Xiao
b1f711f790
mm: Move procfs_register_meminfo into common place
...
to avoid the code duplication and ensure the consistent behaviour
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-07-03 09:39:32 -07:00
Masayuki Ishikawa
6370c820ea
arch: rp2040: Introduce setintstack macro for SMP
...
Summary:
- This commit introduces setintstack macro to rp2040
which is used for SMP with interrupt stack
Impact:
- SMP with interrupt stack
Testing:
- Tested with raspberrypi-pico:smp
- NOTE: seed to set CONFIG_ARCH_INTERRUPTSTACK=2048
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2021-07-03 04:13:13 -05:00
Masayuki Ishikawa
9f206f2bb6
arch: armv6-m: Introduce setintstack macro
...
Summary:
- This commit introduces setintstack macro which can be
overridden for SMP with interrupt stack
Impact:
- SMP only
Testing:
- Tested with raspberrypi-pico:smp
- NOTE: more commits will be added later
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2021-07-03 04:13:13 -05:00
ligd
50eee2f081
arm: fix enable interrupt too earlier caused system crash
...
reason:
msr cpsr, r2 /* Set the CPSR */
// interrupt hanppend, context switch
pop {r0-r2, pc}
resolve:
use SPSR instead, and recover with ldmia ^
Change-Id: Id7cee6452997ec19919eeecf6e7616164b3a0ab3
Signed-off-by: ligd <liguiding1@xiaomi.com>
(cherry picked from commit 6fa6c1676932d7babb7ff22ef556a17bb18f1c0d)
Signed-off-by: ligd <liguiding1@xiaomi.com>
2021-07-01 22:20:36 -05:00
Fotis Panagiotopoulos
de213401a7
lpc17_40_progmem: fixed compilation issues.
2021-07-01 09:11:12 -05:00
Masanari Iida
839414987c
efm32: Fix missing closing bracket
...
This patch fixes missing closing bracket and semicolon.
Signed-off-by: Masanari Iida <standby24x7@gmail.com>
2021-07-01 06:37:17 -07:00
David Sidrane
e659ae83b0
Kinetis:Serial No DMA Poll needed
2021-07-01 01:44:46 -05:00
David Sidrane
78584b4569
kinetis:Serial use eDMA
...
kinetis:serial mark priv->rxdma after use
2021-07-01 01:44:46 -05:00
David Sidrane
e5a1b2e797
kinetis:SPI use eDMA
...
Kinetis:SPI only allocate DMA once
2021-07-01 01:44:46 -05:00
David Sidrane
78bf264af0
kinetis:Replace DMA
...
Kinetis:DMAMUX use hex in mask
2021-07-01 01:44:46 -05:00
David Sidrane
3439c40044
stm32h7:SDMMC fix reset of do_gpio
...
For the case when the watchdog is triggering a timeout we did not
correctly reset the d0 GPIO.
Without this fix, the SD card can become inaccessible.
2021-07-01 01:37:58 -05:00
Julian Oes
6d6ca8f0b6
stm32:sdio: fix wrong ifdefs
...
This was wrong but presumably did not matter.
2021-07-01 01:37:58 -05:00
Julian Oes
2a86335055
stm32:sdio: fix reset of GPIO_SDIO_D0
...
For the case when the watchdog is triggering a timeout we did not
correctly reset the GPIO_SDIO_D0.
Without this fix, the SD card can become inaccessible.
2021-07-01 01:37:58 -05:00
Julian Oes
665f847760
stm32f7: fix reset of d0_gpio
...
For the case when the watchdog is triggering a timeout we did not
correctly reset the d0 GPIO.
Without this fix, the SD card can become inaccessible.
2021-07-01 01:37:58 -05:00
Julian Oes
154795a247
stm32f7: Removed bit that is reserved for f7
2021-07-01 01:37:58 -05:00
Julian Oes
87fd8903a0
stm32f7: whitespace fix
2021-07-01 01:37:58 -05:00
Julian Oes
804445fc15
stm32f7: unify identical sdmmc.h header files
...
It turns out there is no difference in these two files as well as the
reference manual for the registers between the two parts, so it probably
makes sense to unify them
2021-07-01 01:37:58 -05:00
Michal Lenc
b36171026e
arch/arm/src/imxrt/imxrt_flexpwm.c: fix mistake in submodules address offset
...
Signed-off-by: Michal Lenc <michallenc@seznam.cz>
2021-06-28 09:03:06 -05:00
Michal Lenc
addfe182ae
arch/arm/src/imxrt: added support for FlexPWM driver
...
Signed-off-by: Michal Lenc <michallenc@seznam.cz>
2021-06-26 09:58:52 -05:00
Abdelatif Guettouche
fc9c320bd8
arch/arm/cxd56xx: Remove the up_textheap_init function since it's not
...
needed anymore.
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2021-06-26 09:52:43 -05:00
Xiang Xiao
ae9b5fd306
Replace mktime with timegm in rtc and fs driver
...
since kernel component should use UTC instead local time
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: Icf939e1ab0af8e577105f539d2553bc67b3b3d10
2021-06-23 13:43:32 -03:00
Alexander Lunev
f7c8875fd7
sdio,stm32h7: fixed an issue with not starting IDMA data transfer in case of IO_RW_EXTENDED command (CMD53);
...
corrected setting SDMMC_DCTRL.DTMODE field for block data transfers ending on block count
and for block data transfers ending with STOP_TRANSMISSION command;
stm32_sdio: added more debug messages
2021-06-21 02:47:46 -05:00
Xiang Xiao
ab974edc84
sched: Identify the stack need to free by TCB_FLAG_FREE_STACK
...
instead calling kmm_heapmember or umm_heapmember because:
1.The stack supplied by caller may allocate from heap too
2.It's hard to implement these two function in ASan case
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I196377822b7c4643ab4f29b7c1dc41dcd7c4dab1
2021-06-18 05:44:41 -07:00
Abdelatif Guettouche
af5e0c620f
Rename MODULE_TEXT to TEXT_HEAP as the latter is more generic.
...
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2021-06-18 07:14:17 -05:00
Daniel P. Carvalho
91e82d1597
Changed the STM32 Analog Comparator driver.
2021-06-18 00:50:24 -05:00
Michal Lenc
6dc3c3d1b2
arch/arm/src/imxrt: fix nxstyle warnings and errors
...
Signed-off-by: Michal Lenc <michallenc@seznam.cz>
2021-06-16 21:22:03 -05:00
Michal Lenc
7bcd50955f
arch/arm/src/imxrt: add missing clock to imxrt_xbar.c and fix usage of imxrt_enc.c while debug option is enable
...
Signed-off-by: Michal Lenc <michallenc@seznam.cz>
2021-06-16 21:22:03 -05:00
retogaeh
f109a96ad2
Update arch/arm/src/stm32h7/stm32_adc.c
...
Co-authored-by: Gustavo Henrique Nihei <38959758+gustavonihei@users.noreply.github.com>
2021-06-16 04:58:06 -07:00
GAEHWILER Reto
b9fba3edae
stm32h7 fix adc port to handle overrun and the DR's fifo, adapt adc driver
...
* port didn't know about data-register fifo
* port didn't handle overrun condition
* driver could get stuck if interrupts were skipped due to saturation
2021-06-16 04:58:06 -07:00
Daniel P. Carvalho
4b351fc447
Adds PWM example to nucleo-g431kb board.
2021-06-14 18:45:04 -03:00
Yuichi Nakamura
9b8e81ebc1
arm/rp2040: Fix warnings when UART console is not used
2021-06-14 09:05:19 -03:00
Yuichi Nakamura
b860e3c4ad
arm/rp2040:USB device controller support
...
Summary:
- Add Raspberry Pi Pico (RP2040) USB device controller support.
- Confirmed that CDC/ACM, MSC and these composite device are working.
- The current implementation have an unresolved issue and some workaround
for USB MSC SCSI driver is required.
See the comment in the patch "usbmsc: Add USBMSC_NOT_STALL_BULKEP for RP2040 workaround".
Impact:
- RP2040 only
Testing:
- Tested with Windows 10 and Ubuntu-18.04/20.04 as the USB host.
- Tested configurations:
- raspberrypi-pico:usbnsh
- raspberrypi-pico:usbmsc
- raspberrypi-pico:composite
2021-06-14 09:05:19 -03:00
Daniel P. Carvalho
361703a881
Added basic support for nucleo-g431kb board.
2021-06-11 20:51:56 -05:00
Jiuzhu Dong
2fd25d7ea7
arch/armv7-a: Colorize the idle thread stack for other cpu(SMP)
...
Keep previous modification.
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2021-06-11 01:26:50 -05:00
raiden00pl
d76f8ea04a
arch/arm/src/stm32/stm32_foc.c: add workaround for an issue found in STM32G4 family
...
From G4 erratas: "ADC channel 0 converted instead of the required ADC channel"
2021-06-10 13:58:33 -03:00
raiden00pl
7c47f32a19
arch/arm/src/stm32/hardware/stm32g4xxc_pinmap.h: rename OPAMP pins to match the manual
2021-06-10 13:58:33 -03:00
raiden00pl
76824ba2a9
stm32g4xxxx_memorymap.h: remove invalid OPAMP1-6 definitions
2021-06-10 13:58:33 -03:00
raiden00pl
af0f2b4f37
stm32g4: add OPAMP defs
2021-06-10 13:58:33 -03:00
Alexander Vasiljev
9d0da9818c
arch/arm/src/stm32h7: qspi use indirect write instead indirect read without data.
2021-06-10 10:46:34 -05:00
Fotis Panagiotopoulos
2ef90786c8
setjmp.h: Added missing include.
2021-06-10 08:58:52 -05:00
Xiang Xiao
c0fdddc5d7
arch: Remove all go_nx_start from chip specifc source
...
since the idle stack color is done in the common code now
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-06-10 06:50:41 -07:00
Xiang Xiao
fa0d123f87
arch: Colorize the idle thread stack in an unified way
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: Idae8da53e5a4799a8edc0e882f17fd515b70cb14
2021-06-10 06:50:41 -07:00
Alexander Vasiljev
45672c269d
Make: use gcc as LD
2021-06-10 03:43:18 -07:00
Peter van der Perk
3b94669b7f
FlexCAN Fix TX abort process
2021-06-09 13:34:13 -05:00
Xiang Xiao
6576306bca
arch: Rename xxx_getsp to up_getsp
...
All modern desgin support stack pointer and it's also an
important information, so let's standardize this interface.
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-06-09 10:20:02 -07:00
Juha Niskanen
939e547ca8
arch/arm/src/stm32l4: fix some printf format errors and warnings
...
Signed-off-by: Juha Niskanen <juha.niskanen@haltian.com>
2021-06-09 11:52:33 -05:00
Xiang Xiao
5b2a17b892
Include assert.h in necessary place
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-06-08 13:06:08 -07:00