Commit Graph

13185 Commits

Author SHA1 Message Date
YAMAMOTO Takashi
10cb7ac0ed arch/arm/src/lpc17xx_40xx/lpc17_40_serial.c: Fix syslog formats 2020-11-25 05:11:26 -08:00
YAMAMOTO Takashi
9058792e04 arch/arm/src/arm/arm_undefinedinsn.c: Fix a syslog format 2020-11-25 05:11:26 -08:00
YAMAMOTO Takashi
59e0cf23fc arch/arm/src/arm/arm_syscall.c: Fix a syslog format 2020-11-25 05:11:26 -08:00
YAMAMOTO Takashi
0f075525af arch/arm/src/arm/arm_prefetchabort.c: Fix a syslog format 2020-11-25 05:11:26 -08:00
YAMAMOTO Takashi
197df3edf8 arch/arm/src/arm/arm_dataabort.c: Fix a syslog format 2020-11-25 05:11:26 -08:00
YAMAMOTO Takashi
e7b185f11c arch/arm/src/efm32/efm32_timer.c: Fix a syslog format 2020-11-25 05:11:26 -08:00
YAMAMOTO Takashi
2e6c1bc8ad arch/arm/src/efm32/efm32_timer.c: Appease nxstyle 2020-11-25 05:11:26 -08:00
YAMAMOTO Takashi
a70961ec9d arch/arm/src/stm32f0l0g0/stm32_adc.c: Fix syslog formats 2020-11-24 22:31:33 -08:00
YAMAMOTO Takashi
fc76157d4a arch/arm/src/stm32f0l0g0/stm32_spi.c: Fix syslog formats 2020-11-24 22:31:33 -08:00
YAMAMOTO Takashi
b299fdf1e3 arch/arm/src/stm32f7/stm32_ethernet.c: Fix syslog formats 2020-11-24 22:31:33 -08:00
YAMAMOTO Takashi
7b31315879 arch/arm/src/stm32/stm32_dma2d.c: Fix syslog formats 2020-11-24 22:31:33 -08:00
YAMAMOTO Takashi
d289fd92af arch/arm/src/stm32/stm32_dma2d.c: Appease nxstyle
The following errors are intentionally left.
(Hardware constants like DMA2D_xGPFCCR_CCM.)

arch/arm/src/stm32/stm32_dma2d.c:484:12: error: Mixed case identifier found
arch/arm/src/stm32/stm32_dma2d.c:692:13: error: Mixed case identifier found
arch/arm/src/stm32/stm32_dma2d.c:701:18: error: Mixed case identifier found
arch/arm/src/stm32/stm32_dma2d.c:706:18: error: Mixed case identifier found
arch/arm/src/stm32/stm32_dma2d.c:711:18: error: Mixed case identifier found
arch/arm/src/stm32/stm32_dma2d.c:725:14: error: Mixed case identifier found
arch/arm/src/stm32/stm32_dma2d.c:732:18: error: Mixed case identifier found
2020-11-24 22:31:33 -08:00
YAMAMOTO Takashi
4f6c99541b arch/arm/src/stm32/stm32_ltdc.c: Fix syslog formats 2020-11-24 22:31:33 -08:00
YAMAMOTO Takashi
efc09bf3e0 arch/arm/src/stm32/stm32_ltdc.c: Appease nxstyle
The following nxstyle errors are intentionally left.
They are "Lx" constants shared among multiple files.

arch/arm/src/stm32/stm32_ltdc.c:1774:10: error: Mixed case identifier found
arch/arm/src/stm32/stm32_ltdc.c:1775:10: error: Mixed case identifier found
arch/arm/src/stm32/stm32_ltdc.c:1779:11: error: Mixed case identifier found
arch/arm/src/stm32/stm32_ltdc.c:1780:11: error: Mixed case identifier found
arch/arm/src/stm32/stm32_ltdc.c:1784:11: error: Mixed case identifier found
arch/arm/src/stm32/stm32_ltdc.c:1785:11: error: Mixed case identifier found
arch/arm/src/stm32/stm32_ltdc.c:1804:10: error: Mixed case identifier found
arch/arm/src/stm32/stm32_ltdc.c:1805:10: error: Mixed case identifier found
arch/arm/src/stm32/stm32_ltdc.c:1806:10: error: Mixed case identifier found
arch/arm/src/stm32/stm32_ltdc.c:1845:16: error: Mixed case identifier found
arch/arm/src/stm32/stm32_ltdc.c:1849:17: error: Mixed case identifier found
arch/arm/src/stm32/stm32_ltdc.c:1903:11: error: Mixed case identifier found
arch/arm/src/stm32/stm32_ltdc.c:1903:34: error: Mixed case identifier found
arch/arm/src/stm32/stm32_ltdc.c:1907:12: error: Mixed case identifier found
arch/arm/src/stm32/stm32_ltdc.c:1907:35: error: Mixed case identifier found
arch/arm/src/stm32/stm32_ltdc.c:1987:16: error: Mixed case identifier found
arch/arm/src/stm32/stm32_ltdc.c:1991:17: error: Mixed case identifier found
arch/arm/src/stm32/stm32_ltdc.c:2027:16: error: Mixed case identifier found
arch/arm/src/stm32/stm32_ltdc.c:2031:17: error: Mixed case identifier found
2020-11-24 22:31:33 -08:00
YAMAMOTO Takashi
66686ab294 arch/arm/src/stm32/stm32f40xxx_i2c.c: Fix syslog formats 2020-11-24 22:31:33 -08:00
Nathan Hartman
4e460cd440 arch/stm32: Fix nxstyle errors
arch/arm/src/stm32/stm32_oneshot.c:
arch/arm/src/stm32/stm32_oneshot.h:
arch/arm/src/stm32/stm32_oneshot_lowerhalf.c:
arch/arm/src/stm32/stm32_dbgmcu.h:

    * Fix nxstyle errors.

arch/arm/src/stm32/stm32_lsi.c:

    * Fix nxstyle errors.
    * Also a minor grammar fix in a comment: add "in" to "setting the
      LSION bit in the RCC CSR register."
2020-11-24 18:12:47 -08:00
Masayuki Ishikawa
324d3a89ed Revert "arch: cxd56xx: Fix the pause handler for SMP"
This reverts commit 55c00ad3d9.
2020-11-25 00:02:37 +01:00
Masayuki Ishikawa
16436a7fb6 Revert "arch: armv7-a: Fix the pause handler for SMP"
This reverts commit 1978dcc9a9.
2020-11-25 00:02:37 +01:00
Masayuki Ishikawa
3ba840aa27 Revert "arch: lc823450: Fix the pause handler for SMP"
This reverts commit 42dea9edf9.
2020-11-25 00:02:37 +01:00
Nathan Hartman
4ce935f711 stm32/stm32_can.c: Fix nxstyle errors
arch/arm/src/stm32/stm32_can.c:

    * Fix nxstyle errors.
2020-11-23 20:09:57 +01:00
Juha Niskanen
ed7380d863 arch/arm/src/stm32/stm32_serial.c: for flowcontrol use common idiom for enabling/disabling RX interrupts
stm32f7, stm32h7, stm32l4 and stm32f0l0g0 do it this way and there is no
reason for classic stm32 to differ. Also manipulation of priv->ie was not
atomic with respect to interrupts.

Signed-off-by: Juha Niskanen <juha.niskanen@haltian.com>
2020-11-23 10:59:19 -08:00
YAMAMOTO Takashi
ec8a46b2fa arch/arm/src/stm32h7/stm32_ethernet.c: Fix syslog formats 2020-11-23 05:00:10 -08:00
YAMAMOTO Takashi
4d18ec194e arch/arm/src/stm32/stm32_adc.c: Fix syslog formats 2020-11-22 19:01:05 -08:00
YAMAMOTO Takashi
4b7557e278 arch/arm/src/stm32/stm32_otgfshost.c: Fix syslog formats 2020-11-22 19:01:05 -08:00
YAMAMOTO Takashi
fbbc455c8d arch/arm/src/stm32f7/stm32_adc.c: Fix syslog formats 2020-11-22 19:01:05 -08:00
YAMAMOTO Takashi
c51499584d arch/arm/src/stm32f7/stm32_adc.c: Appease nxstyle 2020-11-22 19:01:05 -08:00
YAMAMOTO Takashi
bebd972ab0 arch/arm/src/stm32f7/stm32_otgdev.c: Fix syslog formats 2020-11-22 19:01:05 -08:00
YAMAMOTO Takashi
c557e26d81 arch/arm/src/stm32f7/stm32_otgdev.c: Appease nxstyle 2020-11-22 19:01:05 -08:00
YAMAMOTO Takashi
505d7a5728 arch/arm/src/stm32f7/stm32_sdmmc.c: Fix syslog formats 2020-11-22 19:01:05 -08:00
YAMAMOTO Takashi
5a4a960a79 arch/arm/src/stm32f7/stm32_spi.c: Fix syslog formats 2020-11-22 19:01:05 -08:00
YAMAMOTO Takashi
dc2f4d079c arch/arm/src/stm32f7/stm32_i2c.c: Fix syslog formats 2020-11-22 19:01:05 -08:00
YAMAMOTO Takashi
c261afd38c arch/arm/src/stm32f7/stm32_i2c.c: Appease nxstyle 2020-11-22 19:01:05 -08:00
YAMAMOTO Takashi
97729ddd29 arch/arm/src/stm32f7/stm32_dma.c: Fix syslog formats 2020-11-22 19:01:05 -08:00
YAMAMOTO Takashi
41db756d78 arch/arm/src/stm32h7/stm32_otghost.c: Fix syslog formats 2020-11-22 19:01:05 -08:00
Nathan Hartman
af0dcd4a0c stm32/stm32_capture.c: Fix nxstyle errors
arch/arm/src/stm32/stm32_capture.c:

    * Fix nxstyle errors.
2020-11-22 10:29:40 -08:00
Matias N
d5b6ec450f Parallelize depend file generation 2020-11-22 09:02:59 -03:00
Brennan Ashton
2df6547d50 board: Add network configuration to nucleo-h743zi
Signed-off-by: Brennan Ashton <bashton@brennanashton.com>
2020-11-22 01:47:13 -08:00
Brennan Ashton
87d8e5dda2 board: nucleo-h743zi USB Host fixups 2020-11-22 00:28:49 -08:00
KernelGuruMeditation
1a53a2f882 Fix code style 2020-11-22 00:28:49 -08:00
KernelGuruMeditation
c9e40ede2d Fix of the OTG FS HOST for nucleo-h743zi 2020-11-22 00:28:49 -08:00
Brennan Ashton
a0112eee4f stm32h7: Bug where more than CONFIG_MM_REGIONS would be allocated 2020-11-21 19:38:05 -08:00
Matias N
10d7d8e9c3 nrf52 GPIO: fix setting of SENSE to pins; clear LATCH register on initialization 2020-11-21 18:18:25 -08:00
Masayuki Ishikawa
983117210c arch: lc823450: Fix compile errors in lc823450_usbdev.c with CONFIG_USBDEV_DMA=y
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-11-21 11:34:23 -03:00
YAMAMOTO Takashi
bea32be658 arch/arm/src/stm32f0l0g0/stm32_tim_lowerhalf.c: Fix syslog formats 2020-11-20 22:22:53 -08:00
YAMAMOTO Takashi
6326899610 arch/arm/src/stm32f0l0g0/stm32_tim.c: Fix syslog formats 2020-11-20 22:22:53 -08:00
YAMAMOTO Takashi
d044cf9c5c arch/arm/src/stm32f0l0g0/stm32_pwm.c: Fix syslog formats 2020-11-20 22:22:53 -08:00
YAMAMOTO Takashi
ccd6987c90 arch/arm/src/stm32f0l0g0/stm32_i2c.c: Fix syslog formats 2020-11-20 22:22:53 -08:00
YAMAMOTO Takashi
6955404a3d arch/arm/src/armv6-m/arm_svcall.c: Fix a syslog format 2020-11-20 22:22:53 -08:00
YAMAMOTO Takashi
648e0610c5 arch/arm/src/stm32h7/stm32_pwm.c: Fix syslog formats 2020-11-20 22:22:53 -08:00
YAMAMOTO Takashi
c2b06fe219 arch/arm/src/stm32h7/stm32_i2c.c: Fix syslog formats 2020-11-20 22:22:53 -08:00
YAMAMOTO Takashi
9d293a88f9 arch/arm/src/stm32h7/stm32_allocateheap.c: Fix a syslog format 2020-11-20 22:22:53 -08:00
YAMAMOTO Takashi
a09c038c14 arch/arm/src/stm32/stm32_i2c_alt.c: Fix syslog formats 2020-11-20 22:22:53 -08:00
YAMAMOTO Takashi
2a045fa2a3 arch/arm/src/stm32/stm32_sdio.c: Fix syslog formats 2020-11-20 22:22:53 -08:00
YAMAMOTO Takashi
bf29eaabb6 arch/arm/src/common/arm_vfork.c: Fix syslog formats 2020-11-20 22:22:53 -08:00
YAMAMOTO Takashi
4cf3b2d1aa arch/arm/src/armv7-m/arm_svcall.c: Fix a syslog format 2020-11-20 22:22:53 -08:00
YAMAMOTO Takashi
a1c7ea1dae arch/arm/src/stm32/stm32_otgfsdev.c: Fix syslog formats 2020-11-20 22:22:53 -08:00
YAMAMOTO Takashi
2893607a7e arch/arm/src/stm32/stm32_spi.c: Fix syslog formats 2020-11-20 22:22:53 -08:00
YAMAMOTO Takashi
8fc5a24710 arch/arm/src/stm32/stm32_dma_v2.c: Fix a syslog format 2020-11-20 22:22:53 -08:00
YAMAMOTO Takashi
c7bfb85584 arch/arm/src/stm32f0l0g0/stm32_tim_lowerhalf.c: Appease nxstyle 2020-11-20 22:22:53 -08:00
YAMAMOTO Takashi
66895762db arch/arm/src/stm32f0l0g0/stm32_tim.c: Appease nxstyle 2020-11-20 22:22:53 -08:00
YAMAMOTO Takashi
2ac76ea918 arch/arm/src/stm32f0l0g0/stm32_i2c.c: Appease nxstyle 2020-11-20 22:22:53 -08:00
YAMAMOTO Takashi
cefa1b28e1 arch/arm/src/stm32/stm32_otgfsdev.c: Appease nxstyle 2020-11-20 22:22:53 -08:00
Michal Lenc
8cf6cfda1a imxrt: Added support for DP83825I PHY
Signed-off-by: Michal Lenc <lencmich@fel.cvut.cz>
2020-11-20 20:34:57 -03:00
Masayuki Ishikawa
42dea9edf9 arch: lc823450: Fix the pause handler for SMP
Summary:
- Apply the same logic added to cxd56_cpupause.c

Impact:
- SMP only

Testing:
- Tested with lc823450-xgevk:rndis
- Run smp and ostest

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-11-20 00:49:25 -08:00
Masayuki Ishikawa
1978dcc9a9 arch: armv7-a: Fix the pause handler for SMP
Summary:
- Apply the same logic added to cxd56_cpupause.c

Impact:
- SMP only

Testing:
- Tested with sabre-6quad:smp (QEMU and dev board)
- Run smp and ostest

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-11-20 00:49:25 -08:00
Masayuki Ishikawa
55c00ad3d9 arch: cxd56xx: Fix the pause handler for SMP
Summary:
- I noticed that sched_add_readytorun() runs on multiple CPUs simultaneously
- Finally, I found the root cause which was described in TODO
- Actually, the task newly scheduled on remote CPU did not acquire g_cpu_irqlock
- This commit fixes this issue by adding a critical section to the pause handler
- Which will acquire g_cpu_irqlock on the remote CPU explicitly

Impact:
- SMP only

Testing:
- Tested with spresense:wifi_smp (NCPUS=2 and 4)
- Run smp, ostest, nxplayer

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-11-20 00:49:25 -08:00
Masayuki Ishikawa
12862c7b33 armv7-a: Fix comments on Cortex-A SGI
Summary:
- I noticed that Cortex-A SGI can be masked
- We thought the SGI is not maskable
- Although I can not remember how I tested it before
- It actually works as expected now
- Also, fixed the number of remaining bugs in TODO

Impact:
- No impact

Testing:
- Tested with sabre-6quad:smp (QEMU and dev board)
- Add the following code in up_idle() before calling asm("WFI");
+  if (0 != up_cpu_index())
+    {
+      up_irq_save();
+    }
- Run the hello app, you can see "Hello, World!!"
- But nsh will freeze soon because arm_pause_handler is not called.

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-11-19 18:01:30 -08:00
YAMAMOTO Takashi
03c332acf0 arm: Add _intmax_t and _uintmax_t 2020-11-19 00:49:56 -08:00
YAMAMOTO Takashi
e8a9ce4988 arm inttypes.h: Use long for 32-bit integer 2020-11-19 00:49:56 -08:00
YAMAMOTO Takashi
b1ed95f29d arm: Change _int32_t from int to long to match the compiler 2020-11-19 00:49:56 -08:00
Pavel Pisa
4d2727c193 stm32l4: correct macros STM32L4_CAN_MCR_OFFSET, etc... to match defines.
It seems that part of the patch
stm32l4: correct build of stm32l4_can.c to respect L4 variant
has been lost on its way to mainline.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
2020-11-18 19:31:07 -08:00
Abdelatif Guettouche
fa713c09e8 arch/arm/src/stm32h7/stm32_otghost.c: Fix undeclared "ret". 2020-11-17 03:20:54 -08:00
YAMAMOTO Takashi
46f17a6f36 arch/arm/src/xmc4/xmc4_serial.c: Fix a type mismatch 2020-11-16 08:29:00 -08:00
YAMAMOTO Takashi
1a24e9c0da arch/arm/src/nrf52/nrf52_serial.c: Fix a type mismatch 2020-11-16 08:29:00 -08:00
YAMAMOTO Takashi
4bb2d92679 arch/arm/src/eoss3/eoss3_serial.c: Fix a type mismatch 2020-11-16 08:29:00 -08:00
YAMAMOTO Takashi
dbd0c4aa0b arch/arm/src/lpc17xx_40xx/lpc17_40_sdcard.c: Fix a type mismatch 2020-11-16 08:29:00 -08:00
YAMAMOTO Takashi
a2ee706832 arch/arm/src/samd2l2/sam_usb.c: Fix type mismatches 2020-11-16 08:29:00 -08:00
YAMAMOTO Takashi
ba8e40d424 arch/arm/src/max326xx/max32660/max32660_serial.c: Fix a printf format warning 2020-11-16 08:29:00 -08:00
YAMAMOTO Takashi
04883b2604 arch/arm/src/lc823450/lc823450_mtd.c: Fix a printf format warning 2020-11-16 08:29:00 -08:00
YAMAMOTO Takashi
c3d87ed46c arch/arm/src/lc823450/lc823450_procfs_dvfs.c: Fix printf format warnings 2020-11-16 08:29:00 -08:00
YAMAMOTO Takashi
0d0aae2f00 arch/arm/src/s32k1xx/s32k1xx_serial.c: Fix a type mismatch 2020-11-16 08:29:00 -08:00
YAMAMOTO Takashi
2341dc5180 arch/arm/src/kinetis/kinetis_sdhc.c: Fix a type mismatch 2020-11-16 08:29:00 -08:00
YAMAMOTO Takashi
b4815f8fc9 arch/arm/src/kinetis/kinetis_lpserial.c: Fix a type mismatch 2020-11-16 08:29:00 -08:00
YAMAMOTO Takashi
4a8d0d15d4 arch/arm/src/imxrt/imxrt_serial.c: Fix a type mismatch 2020-11-16 08:29:00 -08:00
YAMAMOTO Takashi
457f5f5155 arch/arm/src/samd5e5/sam_serial.c: Fix a type mismatch 2020-11-16 08:29:00 -08:00
YAMAMOTO Takashi
ab6fed1021 arch/arm/src/samd2l2/sam_serial.c: Fix a type mismatch 2020-11-16 08:29:00 -08:00
YAMAMOTO Takashi
6dec360169 arch/arm/src/samv7/sam_serial.c: Fix a type mismatch 2020-11-16 08:29:00 -08:00
YAMAMOTO Takashi
41b357128d arch/arm/src/sam34/sam_udp.c: Fix a type mismatch 2020-11-16 08:29:00 -08:00
YAMAMOTO Takashi
b142c9c7cf arch/arm/src/sama5/sam_dbgu.c: Fix a type mismatch 2020-11-16 08:29:00 -08:00
YAMAMOTO Takashi
4b269aaea5 arch/arm/src/lpc54xx/lpc54_serial.c: Fix a type mismatch 2020-11-16 08:29:00 -08:00
YAMAMOTO Takashi
f755d3cb3a arch/arm/src/sama5/sam_udphs.c: Fix a type mismatch 2020-11-16 08:29:00 -08:00
YAMAMOTO Takashi
fbc55c184e arch/arm/src/sama5/sam_sdmmc.c: Fix a type mismatch 2020-11-16 08:29:00 -08:00
YAMAMOTO Takashi
3b9e72c898 arch/arm/src/cxd56xx/cxd56_irq.c: Fix a type mismatch 2020-11-16 08:29:00 -08:00
YAMAMOTO Takashi
10a4243fcf arch/arm/src/c5471/c5471_watchdog.c: Fix printf format warnings 2020-11-16 08:29:00 -08:00
YAMAMOTO Takashi
01abc41caf stm32: Use the consistent type for stm32_dmacapable 2020-11-16 08:29:00 -08:00
YAMAMOTO Takashi
7999ff0633 arch/arm/src/stm32l4/stm32l4_sdmmc.c: Fix a type mismatch 2020-11-16 08:29:00 -08:00
YAMAMOTO Takashi
bb8a7e8e83 arch/arm/src/stm32h7/stm32_sdmmc.c: Fix a type mismatch 2020-11-16 08:29:00 -08:00
YAMAMOTO Takashi
3051965e45 arch/arm/src/stm32f7/stm32_sdmmc.c: Fix a type mismatch 2020-11-16 08:29:00 -08:00
YAMAMOTO Takashi
3661cb5709 arch/arm/src/stm32/stm32_sdio.c: Fix a type mismatch 2020-11-16 08:29:00 -08:00
YAMAMOTO Takashi
56a79d7248 arch/arm/src/am335x/am335x_serial.c: Fix a type mismatch 2020-11-16 08:29:00 -08:00