Xiang Xiao
fcb3e84c24
can: Merge netpacket/can.h into nuttx/can.h
...
To align with the layout of Linux can header file.
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2024-08-26 05:05:31 -04:00
Petro Karashchenko
f40b09cbc9
style: remove redundant spaces
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2024-08-25 19:22:15 +08:00
Mingjie Shen
6aae7ba0eb
arch/arm/src/s32k3xx: Fix incorrect check for invalid port or pin number
...
Signed-off-by: Mingjie Shen <shen497@purdue.edu>
2024-04-04 11:53:06 +08:00
simbit18
c494ce4a96
Update kconfig2html.c
...
Fix nuttx coding style
2023-12-14 20:02:52 -08:00
anjiahao
bb0a706bdc
arch/arm:add up_debugpoint api
...
on armv8-m/armv7-m,implement breakpoint & watchpoint using FBP & DWT
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2023-12-11 08:43:26 -08:00
David Sidrane
b0e31c7d72
s32k3xx:Serial Use smart invalidate
2023-12-07 03:48:19 -08:00
David Sidrane
9175f3a9b6
s32k3xx:Serial refactor out tx dma semaphore
...
Fixes stuttering output.
The use of the semaphore was causing blocking
on non blocking callers. This ensured that
the TX DAM would be restated, but when it
was switched to trywait in 8362e314, it left
data in the xmit queue unsent.
This solution removes the semaphore and restart
the DMA on completion if there is more data in
the xmit queue to be sent.
2023-12-05 08:17:42 -08:00
David Sidrane
7f0643de6d
s32k3xx:edma clear state before callback add idle check
...
This prevents dma stop operations called of a completion
call back from rentering, the callback and ensures that
the call back will see the idle state.
2023-12-05 08:17:42 -08:00
David Sidrane
8362e3147e
s32k3xx:Serial Do not wait on TXDMA semaphore
...
If using flow control with a high CTS the thread may be
blocked forever on the second transmit attempt due to waiting
on the txdma semaphore. The calling thread can then never
make progress and release any resources it has taken, thus
may cause a deadlock in other parts of the system.
The implementation differs in behavior from interrupt-driven
TX. It should not implicitly wait on a taken semaphore but
return immediately and let the upper layers decide on what to
do next.
2023-11-10 22:30:41 +08:00
David Sidrane
e0c883f487
s32k3xxx:serial ensure the cache is updated if the DMA has updated again
2023-11-01 09:24:57 +08:00
Gabriel de Sousa
0bc897df15
FIX: s32kxxx flexcan doesn't set srr bit for extended frames
2023-10-31 12:22:00 -03:00
David Sidrane
881d67272c
s32k3xx:Serial overcome race where DMA has not fetched TCD again"
...
With TCD set to loop, there is a window where the
DMA has raised Done, but not reloaded the TCD, resetting
count and clearing Done.
In this window imxrt_dmach_getcount could then return 0.
Resulting in imxrt_dma_nextrx returning RXDMA_BUFFER_SIZE.
Which is not a valid index in the FIFO.
Since the count will be set to RXDMA_BUFFER_SIZE. When the DMA
engine completes the TCD reload. The imxrt_dma_nextrx would
return 0. Therefore:
(RXDMA_BUFFER_SIZE - dmaresidual) % RXDMA_BUFFER_SIZE
accomplishes this.
2023-10-27 22:24:27 +08:00
David Sidrane
506f725a19
s32k3xx:lpi2c DMA transaction only need the status conditioned
...
With DMA enabled on some I2C channels but not all
the Non DMA channels were failing.
The cause was condition the status with only the enabled
interrupts on non DMA chennels. This conditioning needs
to only happen in DMA enabled channels
2023-10-25 17:22:47 +03:00
David Sidrane
b2b5826b80
s32k3xx:lpi2c end only on stop with end of packet
2023-10-24 19:27:03 +03:00
David Sidrane
91034ff4d6
s32k3xx:lpi2c Timeouts can not be 0
2023-10-23 22:44:55 +08:00
Peter van der Perk
0d4b42255b
s32k3: emac use semi-unique MAC address
2023-09-14 20:54:21 +08:00
Petro Karashchenko
075738cf14
net/ip: print ip addresses using ip4_addrN macro
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2023-08-19 13:28:21 -03:00
Ryan MacDonald
074cf51268
Fix: s32k1 s32k3 kinetis: add propseg to ctrl1 timing mask
2023-08-16 10:09:40 +03:00
David Sidrane
2dc6365e24
s32k3xx:lpi2c fix status handeling & race
...
s32k3:lpi2c:Simplify DMA and Non DMA usage
s32k3xx: lpi2c dma invalidate cache after exchange
s32k3xx:lpi2c fix timeout not stopping dma
2023-08-11 13:41:49 -03:00
Peter van der Perk
755e3beba9
s32k3xx: lpspi dma invalidate cache after exchange
2023-08-11 13:41:49 -03:00
simbit18
1b1ac6f3b7
Fix nuttx coding style
...
Remove TABs
Fix indentation
Fix Multi-line comments
Fix Comments to the Right of Statements.
Fix nuttx coding style
Fix Comments to the Right of Statements.
2023-07-13 19:30:56 +08:00
rongyichang
5d7864fbcb
drivers/spi: add support for qspi hwfeatures
...
add QSPI_BITORDER and QSPI_WORD_REVERSE hwfeatures
Signed-off-by: rongyichang <rongyichang@xiaomi.com>
2023-07-12 01:42:25 +08:00
Peter van der Perk
0cadb0cf83
S32K3XX EMAC MCAST support
...
Fix compile warning when ioctl is not enabled
2023-05-24 13:08:02 -03:00
simbit18
e4ffce3355
Fix Kconfig style
...
Remove spaces from Kconfig files
2023-05-23 00:03:25 +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
David Sidrane
b4a6c63d47
s32k3xx:edma {s|d}last needs to be total xfer size
2023-05-20 18:32:01 +08:00
simbit18
64c4fb0a53
arch/arm/src/s32k3xx/Kconfig: Fix indentation
...
Remove spaces from Kconfig
Add TABs
2023-05-10 00:45:29 +08:00
zhangyuan21
cf56e4113a
arch: remove unnecessary sem_setprotocol code
...
Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
2023-03-17 16:53:19 -03: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
Fotis Panagiotopoulos
85ceb7920e
Typo fixes.
2023-02-17 11:17:11 -03:00
Nathan Hartman
5f9cb6faf4
drivers/serial: Fix docstrings on UART interrupt handlers
2023-02-07 04:41:36 +08:00
chao an
7625126c91
Remove the remain MIN/MAX like macro
...
Signed-off-by: chao an <anchao@xiaomi.com>
2023-02-03 23:22:41 +08: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
Peter van der Perk
75631e6169
S32K3XX Progmem fixes and size config
2022-12-29 22:12:19 +02:00
Peter van der Perk
aac9eb57e8
S32K3XX Progmem dataflash with littlefs support
2022-12-24 12:03:56 +08:00
Peter van der Perk
371f81d157
S32K3XX FlexCAN kconfig fix to work in conjunction with EMAC ioctl
2022-12-23 00:32:59 +08:00
Peter van der Perk
7f3cd2d3e8
S32K3XX EMAC MII PHY implementation
2022-12-23 00:32:59 +08:00
David Sidrane
4fa163ade7
s32k3xx:EDMA fix git count
2022-12-20 18:01:21 +08:00
David Sidrane
d33475d2d4
s32k3xx:Serial add DMA
2022-12-20 13:28:54 +08:00
Peter van der Perk
b5fd0b2381
S32K3XX MR-CANHUBK3 Add protected knsh support
2022-12-19 20:10:34 +08:00
Xiang Xiao
d5689e070b
net/arp: Remove nuttx/net/arp.h
...
1.move ARPHRD_ETHER to netinet/arp.h
1.move arp_entry_s to net/arp/arp.h
2.move arp_input to nuttx/net/netdev.h
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-12-16 22:10:59 +02:00
David Sidrane
89f99dceed
s32ke3xx:EDMA Usage Clean up
2022-12-15 22:21:32 +08:00
David Sidrane
df4eb4896d
s32k3xx:LPSPI register usage cleanup
2022-12-15 22:21:32 +08:00
Peter van der Perk
d172d8cd0f
S32K FlexCAN don't use a blocking wait in tx avail
2022-12-14 10:45:43 -05:00
Peter van der Perk
6b3b5751c1
S32K automatically calculate size of periphclocks array
2022-12-13 19:50:01 +08:00
Peter van der Perk
9c27d96b8a
s32k3xx:LPSPI Check for TX complete before RX
...
Co-authored-by: David Sidrane <david.sidrane@nscdg.com>
2022-12-05 22:35:21 +08:00
Peter van der Perk
e7449cf97a
S32K3XX EDMA Set Backdoor for DTCM memory map
2022-12-05 22:35:21 +08:00
Xiang Xiao
c6e9edcbb6
net: Rename arp_arpin to arp_input
...
align with other similar function(e.g. ipv4_input and ipv6_input)
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-12-04 20:39:21 +08:00
David Sidrane
da7fe760e8
s32k1xx:LPI2C Add DMA support
...
s32k3xx:LPI2C fix RESET so it compiles
2022-12-03 13:54:34 +08:00
David Sidrane
ddc178122e
s32k3xx:EDMA Add Error handeling
2022-12-03 02:47:42 +08:00