Browse Source

!169 部分例程更新

* code update 2024_07_26
pull/170/head
liyilun 3 months ago
committed by 李乔中
parent
commit
38b6bd1e32
  1. 1
      arch/armv8/aarch32/arch_compiler.mk
  2. 1
      arch/armv8/aarch32/gcc/fcrt0.S
  3. 1
      arch/armv8/aarch64/arch_compiler.mk
  4. 1
      arch/armv8/aarch64/gcc/fcrt0.S
  5. 60
      doc/ChangeLog.md
  6. 18
      doc/reference/driver/fi2c.md
  7. 26
      doc/reference/driver/fspim.md
  8. 2
      drivers/dma/fddma/fddma.c
  9. 2
      drivers/dma/fgdma/fgdma.c
  10. 1
      drivers/eth/fgmac/fgmac.c
  11. 2
      drivers/eth/fgmac/fgmac_hw.h
  12. 3
      drivers/eth/fgmac/phy/fgmac_phy.c
  13. 12
      drivers/eth/fxmac/fxmac.h
  14. 160
      drivers/eth/fxmac/fxmac_options.c
  15. 159
      drivers/eth/fxmac/fxmac_phy.c
  16. 21
      drivers/eth/fxmac/fxmac_phy.h
  17. 6
      drivers/eth/fxmac/phy/eth_ieee_reg.h
  18. 5
      drivers/eth/fxmac/phy/yt/phy_yt.c
  19. 5
      drivers/eth/src.mk
  20. 33
      drivers/i2c/fi2c/fi2c.c
  21. 5
      drivers/i2c/fi2c/fi2c.h
  22. 4
      drivers/i2c/fi2c/fi2c_hw.c
  23. 3
      drivers/i2c/fi2c/fi2c_master.c
  24. 5
      drivers/i2s/fes8336/fes8336.c
  25. 1
      drivers/i2s/fes8388/fes8388.c
  26. 10
      drivers/iomux/fioctrl/fioctrl.c
  27. 4
      drivers/media/fdcdp_lib/inc/fdc_hw.h
  28. 2
      drivers/mmc/fsdmmc/fsdmmc_intr.c
  29. 19
      drivers/pcie/fpcie_ecam/fpcie_ecam.c
  30. 8
      drivers/pwm/fpwm/fpwm.c
  31. 2
      drivers/qspi/fqspi/fqspi_flash.c
  32. 2
      drivers/scmi/fscmi_mhu/fscmi.c
  33. 8
      drivers/scmi/fscmi_mhu/fscmi_perf.c
  34. 7
      drivers/scmi/fscmi_mhu/fscmi_sensors.c
  35. 90
      drivers/spi/fspim/fspim.c
  36. 18
      drivers/spi/fspim/fspim.h
  37. 25
      drivers/spi/fspim/fspim_g.c
  38. 6
      drivers/spi/fspim/fspim_hw.h
  39. 4
      example/ai/tinymaix/configs/d2000_aarch32_test_tinymaix.config
  40. 4
      example/ai/tinymaix/configs/d2000_aarch64_test_tinymaix.config
  41. 4
      example/ai/tinymaix/configs/e2000d_aarch32_demo_tinymaix.config
  42. 4
      example/ai/tinymaix/configs/e2000d_aarch64_demo_tinymaix.config
  43. 4
      example/ai/tinymaix/configs/e2000q_aarch32_demo_tinymaix.config
  44. 4
      example/ai/tinymaix/configs/e2000q_aarch64_demo_tinymaix.config
  45. 4
      example/ai/tinymaix/configs/ft2004_aarch32_dsk_tinymaix.config
  46. 4
      example/ai/tinymaix/configs/ft2004_aarch64_dsk_tinymaix.config
  47. 4
      example/ai/tinymaix/configs/pd2308_aarch64_demo_tinymaix.config
  48. 4
      example/ai/tinymaix/configs/phytiumpi_aarch32_firefly_tinymaix.config
  49. 4
      example/ai/tinymaix/configs/phytiumpi_aarch64_firefly_tinymaix.config
  50. 4
      example/ai/tinymaix/sdkconfig
  51. 4
      example/ai/tinymaix/sdkconfig.h
  52. 4
      example/media/lvgl_demo_test/configs/e2000d_aarch32_demo_media.config
  53. 4
      example/media/lvgl_demo_test/configs/e2000d_aarch64_demo_media.config
  54. 4
      example/media/lvgl_demo_test/configs/e2000q_aarch32_demo_media.config
  55. 4
      example/media/lvgl_demo_test/configs/e2000q_aarch64_demo_media.config
  56. 4
      example/media/lvgl_demo_test/configs/phytiumpi_aarch32_firefly_media.config
  57. 4
      example/media/lvgl_demo_test/configs/phytiumpi_aarch64_firefly_media.config
  58. 4
      example/media/lvgl_demo_test/sdkconfig
  59. 4
      example/media/lvgl_demo_test/sdkconfig.h
  60. 2
      example/media/lvgl_demo_test/src/lvgl_disp_test.c
  61. 4
      example/media/media_test/configs/e2000d_aarch32_demo_media.config
  62. 4
      example/media/media_test/configs/e2000d_aarch64_demo_media.config
  63. 4
      example/media/media_test/configs/e2000q_aarch32_demo_media.config
  64. 4
      example/media/media_test/configs/e2000q_aarch64_demo_media.config
  65. 4
      example/media/media_test/configs/phytiumpi_aarch32_firefly_media.config
  66. 4
      example/media/media_test/configs/phytiumpi_aarch64_firefly_media.config
  67. 4
      example/media/media_test/sdkconfig
  68. 4
      example/media/media_test/sdkconfig.h
  69. 6
      example/media/media_test/src/media_test_example.c
  70. 4
      example/network/lwip_iperf/configs/d2000_aarch32_test_lwip_iperf.config
  71. 4
      example/network/lwip_iperf/configs/d2000_aarch64_test_lwip_iperf.config
  72. 4
      example/network/lwip_iperf/configs/e2000d_aarch32_demo_lwip_iperf.config
  73. 4
      example/network/lwip_iperf/configs/e2000d_aarch64_demo_lwip_iperf.config
  74. 4
      example/network/lwip_iperf/configs/e2000q_aarch32_demo_lwip_iperf.config
  75. 4
      example/network/lwip_iperf/configs/e2000q_aarch64_demo_lwip_iperf.config
  76. 4
      example/network/lwip_iperf/configs/ft2004_aarch32_dsk_lwip_iperf.config
  77. 4
      example/network/lwip_iperf/configs/ft2004_aarch64_dsk_lwip_iperf.config
  78. 4
      example/network/lwip_iperf/configs/phytiumpi_aarch32_firefly_lwip_iperf.config
  79. 4
      example/network/lwip_iperf/configs/phytiumpi_aarch64_firefly_lwip_iperf.config
  80. 4
      example/network/lwip_iperf/sdkconfig
  81. 4
      example/network/lwip_iperf/sdkconfig.h
  82. 4
      example/network/lwip_jumbo/configs/d2000_aarch32_test_lwip_jumbo.config
  83. 4
      example/network/lwip_jumbo/configs/d2000_aarch64_test_lwip_jumbo.config
  84. 4
      example/network/lwip_jumbo/configs/e2000d_aarch32_demo_lwip_jumbo.config
  85. 4
      example/network/lwip_jumbo/configs/e2000d_aarch64_demo_lwip_jumbo.config
  86. 4
      example/network/lwip_jumbo/configs/e2000q_aarch32_demo_lwip_jumbo.config
  87. 4
      example/network/lwip_jumbo/configs/e2000q_aarch64_demo_lwip_jumbo.config
  88. 4
      example/network/lwip_jumbo/configs/ft2004_aarch32_dsk_lwip_jumbo.config
  89. 4
      example/network/lwip_jumbo/configs/ft2004_aarch64_dsk_lwip_jumbo.config
  90. 4
      example/network/lwip_jumbo/configs/phytiumpi_aarch32_firefly_lwip_jumbo.config
  91. 4
      example/network/lwip_jumbo/configs/phytiumpi_aarch64_firefly_lwip_jumbo.config
  92. 4
      example/network/lwip_jumbo/sdkconfig
  93. 4
      example/network/lwip_jumbo/sdkconfig.h
  94. 4
      example/network/lwip_multicast/configs/d2000_aarch32_test_lwip_multicast.config
  95. 4
      example/network/lwip_multicast/configs/d2000_aarch64_test_lwip_multicast.config
  96. 4
      example/network/lwip_multicast/configs/e2000d_aarch32_demo_lwip_multicast.config
  97. 4
      example/network/lwip_multicast/configs/e2000d_aarch64_demo_lwip_multicast.config
  98. 4
      example/network/lwip_multicast/configs/e2000q_aarch32_demo_lwip_multicast.config
  99. 4
      example/network/lwip_multicast/configs/e2000q_aarch64_demo_lwip_multicast.config
  100. 4
      example/network/lwip_multicast/configs/ft2004_aarch32_dsk_lwip_multicast.config

1
arch/armv8/aarch32/arch_compiler.mk

@ -126,6 +126,7 @@ endif
# Enable all warnings if enabled # Enable all warnings if enabled
ifeq ($(CONFIG_DEBUG_ENABLE_ALL_WARNING),y) ifeq ($(CONFIG_DEBUG_ENABLE_ALL_WARNING),y)
ARCH_DEBUG += -Wall ARCH_DEBUG += -Wall
ARCH_DEBUG += -Wno-format
endif endif

1
arch/armv8/aarch32/gcc/fcrt0.S

@ -26,7 +26,6 @@
#include "sdkconfig.h" #include "sdkconfig.h"
.set FPEXC_EN, 0x40000000 /* FPU enable bit, (1 << 30) */ .set FPEXC_EN, 0x40000000 /* FPU enable bit, (1 << 30) */
.file "crt0.S"
.section ".got2","aw" .section ".got2","aw"
.align 2 .align 2

1
arch/armv8/aarch64/arch_compiler.mk

@ -158,6 +158,7 @@ endif
# Enable all warnings if enabled # Enable all warnings if enabled
ifeq ($(CONFIG_DEBUG_ENABLE_ALL_WARNING),y) ifeq ($(CONFIG_DEBUG_ENABLE_ALL_WARNING),y)
ARCH_DEBUG += -Wall ARCH_DEBUG += -Wall
ARCH_DEBUG += -Wno-format
endif endif

1
arch/armv8/aarch64/gcc/fcrt0.S

@ -24,7 +24,6 @@
* 1.2 zhugengyu 2023/02/23 support dcache flush for early boot * 1.2 zhugengyu 2023/02/23 support dcache flush for early boot
*/ */
#include "sdkconfig.h" #include "sdkconfig.h"
.file "fcrt0.S"
.section ".got2","aw" .section ".got2","aw"
.align 2 .align 2

60
doc/ChangeLog.md

@ -1,3 +1,63 @@
# Phytium Standalone SDK 2024-07-25 ChangeLog
Change Log since 2024-07-25
## example
- add spi pressure, intr_trigger test
- simplify spi intr, poll example
- repair some compile error under no letter shell mode
## driver
- modify spim data struct
# Phytium Standalone SDK 2024-07-25 ChangeLog
Change Log since 2024-07-23
## example
- Add the example of sending and receiving mac frames in phy loopback mode
# Phytium Standalone SDK 2024-07-23 ChangeLog
Change Log since 2024-07-23
## example
- Eliminate example compilation warnings
# Phytium Standalone SDK 2024-07-17 ChangeLog
Change Log since 2024-07-17
## driver
- Eliminating Partial Compilation Warnings
## example
- Eliminating Partial Compilation Warnings
# Phytium Standalone SDK 2024-07-12 ChangeLog
Change Log since 2024-07-10
## example
- modify the static addr using the _attribute__((packed)),include the media and i2s
# Phytium Standalone SDK 2024-07-10 ChangeLog
Change Log since 2024-07-10
## example
- modify qspi dual flash stack example
# Phytium Standalone SDK 2024-07-10 ChangeLog # Phytium Standalone SDK 2024-07-10 ChangeLog
Change Log since 2024-07-08 Change Log since 2024-07-08

18
doc/reference/driver/fi2c.md

@ -161,24 +161,6 @@ Return:
```c
const char *FI2cErrorToMessage(FError error);
```
- 获取I2C模块错误码对应的错误信息
Note:
- 请输入属于FI2C模块的错误码,否则返回的错误信息为空
Input:
- {FError} error, I2C输入错误码
Return:
- {const char *}, 错误码信息,NULL表示失败
```c ```c
FError FI2cMasterReadPoll(FI2c *instance_p, u32 mem_addr, u8 mem_byte_len, u8 *buf_p, u32 buf_len); FError FI2cMasterReadPoll(FI2c *instance_p, u32 mem_addr, u8 mem_byte_len, u8 *buf_p, u32 buf_len);
``` ```

26
doc/reference/driver/fspim.md

@ -79,6 +79,12 @@ typedef struct
FSpimCpolType cpol; /* Polarity of the clock */ FSpimCpolType cpol; /* Polarity of the clock */
FSpimCphaType cpha; /* Phase of the clock */ FSpimCphaType cpha; /* Phase of the clock */
boolean en_test; /* Enable test mode */ boolean en_test; /* Enable test mode */
boolean en_dma; /* Enable DMA */
FSpimTransWay trans_way; /*transfer way: poll, interrupt, ddma*/
u32 tx_fifo_threshold; /*set tx fifo threshold */
u32 rx_fifo_threshold; /* set rx fifo threshold */
u32 rx_dma_level; /* set rx dma level */
u32 tx_dma_level; /*set tx dma level */
} FSpimConfig; } FSpimConfig;
``` ```
@ -353,26 +359,6 @@ Return:
#### FSpimErrorToMessage
- 获取FSPIM驱动错误码
```c
const char *FSpimErrorToMessage(FError error);
```
Note:
Input:
- FError error, FSPIM模块错误码
Return:
const char *, FSPIM模块错误码对应的信息
#### FSpimSetChipSelection #### FSpimSetChipSelection
- 依据控制器config中的slave device id,控制相应cs上下拉 - 依据控制器config中的slave device id,控制相应cs上下拉

2
drivers/dma/fddma/fddma.c

@ -74,7 +74,7 @@ static FError FDdmaReset(FDdma *const instance_p)
if (instance_p->bind_status & BIT(chan_id)) if (instance_p->bind_status & BIT(chan_id))
{ {
instance_p->bind_status |~ BIT(chan_id); instance_p->bind_status &= ~BIT(chan_id);
} }
} }
FDDMA_INFO("Finish to reset all DDMA channels."); FDDMA_INFO("Finish to reset all DDMA channels.");

2
drivers/dma/fgdma/fgdma.c

@ -127,7 +127,7 @@ static void FGdmaReset(FGdma *const instance_p)
FGdmaClearChanStatus(base_addr, chan_id, FGDMA_CHX_INT_STATE_ALL); FGdmaClearChanStatus(base_addr, chan_id, FGDMA_CHX_INT_STATE_ALL);
FGdmaChanSoftReset(base_addr, chan_id); FGdmaChanSoftReset(base_addr, chan_id);
FGdmaSetChanClock(base_addr, chan_id, FALSE); FGdmaSetChanClock(base_addr, chan_id, FALSE);
instance_p->chan_ready_flag |~ BIT(chan_id); instance_p->chan_ready_flag &= ~BIT(chan_id);
} }
} }
FGDMA_INFO("Reset all GDMA chans."); FGDMA_INFO("Reset all GDMA chans.");

1
drivers/eth/fgmac/fgmac.c

@ -298,7 +298,6 @@ void FGmacControllerDuplexConfig(FGmac *instance_p, u32 duplex)
static FError FGmacControllerConfigure(FGmac *instance_p) static FError FGmacControllerConfigure(FGmac *instance_p)
{ {
FASSERT(instance_p); FASSERT(instance_p);
FGmacMacAddr mac_addr;
uintptr base_addr = instance_p->config.base_addr; uintptr base_addr = instance_p->config.base_addr;
FError ret = FGMAC_SUCCESS; FError ret = FGMAC_SUCCESS;
u32 reg_val = 0; u32 reg_val = 0;

2
drivers/eth/fgmac/fgmac_hw.h

@ -277,7 +277,7 @@ extern "C"
#define FGMAC_DMA_BUS_SWR BIT(0) /* 软件复位 */ #define FGMAC_DMA_BUS_SWR BIT(0) /* 软件复位 */
#define FGMAC_DMA_BUS_DA BIT(1) /* 设置 8xPBL 模式 */ #define FGMAC_DMA_BUS_DA BIT(1) /* 设置 8xPBL 模式 */
#define FGMAC_DMA_BUS_DSL_MASK GENMASK(6, 2) /* 描述符跳跃长度 */ #define FGMAC_DMA_BUS_DSL_MASK GENMASK(6, 2) /* 描述符跳跃长度 */
#define FGMAC_DMA_BUS_ATDS BIT(7) /* #define FGMAC_DMA_BUS_ATDS BIT(7)
#define FGMAC_DMA_BUS_PBL_MASK GENMASK(13, 8) /* 可编程突发长度 */ #define FGMAC_DMA_BUS_PBL_MASK GENMASK(13, 8) /* 可编程突发长度 */
#define FGMAC_DMA_BUS_PBL(x) ((x) << 8) #define FGMAC_DMA_BUS_PBL(x) ((x) << 8)
enum enum

3
drivers/eth/fgmac/phy/fgmac_phy.c

@ -371,7 +371,6 @@ FError FGmacPhyReset(FGmac *instance_p, u32 phy_address)
{ {
FError ret = FGMAC_ERR_PHY_NOT_SUPPORT; FError ret = FGMAC_ERR_PHY_NOT_SUPPORT;
u16 control; u16 control;
uintptr base_addr = instance_p->config.base_addr;
ret = FGmacWritePhyReg(instance_p, phy_address, FGMAC_PHY_MII_CTRL_REG, FGMAC_PHY_MII_CR_RESET); ret = FGmacWritePhyReg(instance_p, phy_address, FGMAC_PHY_MII_CTRL_REG, FGMAC_PHY_MII_CR_RESET);
if (FGMAC_SUCCESS != ret) if (FGMAC_SUCCESS != ret)
{ {
@ -450,7 +449,6 @@ static FError FGmacGetPhySpecialStatus(FGmac *instance_p, u32 phy_address)
FError FGmacPhyCfgInitialize(FGmac *instance_p,u32 reset_flag) FError FGmacPhyCfgInitialize(FGmac *instance_p,u32 reset_flag)
{ {
FASSERT(instance_p); FASSERT(instance_p);
uintptr base_addr = instance_p->config.base_addr;
FError ret = FGMAC_SUCCESS; FError ret = FGMAC_SUCCESS;
u32 phy_addr; u32 phy_addr;
@ -520,7 +518,6 @@ FError FGmacPhyCfgInitialize(FGmac *instance_p,u32 reset_flag)
FError FGmacPhyCfgDeInitialize(FGmac *instance_p) FError FGmacPhyCfgDeInitialize(FGmac *instance_p)
{ {
FASSERT(instance_p); FASSERT(instance_p);
uintptr base_addr = instance_p->config.base_addr;
FError ret = FGMAC_SUCCESS; FError ret = FGMAC_SUCCESS;
u32 phy_addr; u32 phy_addr;

12
drivers/eth/fxmac/fxmac.h

@ -31,7 +31,6 @@
#include "ferror_code.h" #include "ferror_code.h"
#include "fxmac_hw.h" #include "fxmac_hw.h"
#include "fxmac_bdring.h" #include "fxmac_bdring.h"
#include "fxmac_phy.h"
#include "fparameters.h" #include "fparameters.h"
#ifdef __cplusplus #ifdef __cplusplus
@ -328,21 +327,14 @@ void FXmacStop(FXmac *instance_p);
void FXmacSetQueuePtr(FXmac *instance_p, uintptr QPtr, u8 QueueNum, void FXmacSetQueuePtr(FXmac *instance_p, uintptr QPtr, u8 QueueNum,
u32 direction); u32 direction);
/* phy interface */
FError FXmacPhyWrite(FXmac *instance_p, u32 phy_address,
u32 register_num, u16 phy_data);
FError FXmacPhyRead(FXmac *instance_p, u32 phy_address,
u32 register_num, u16 *phydat_aptr);
FError FXmacPhyInit(FXmac *instance_p, u32 speed, u32 duplex_mode, u32 autonegotiation_en,u32 reset_flag);
void FXmacSelectClk(FXmac *instance_p); void FXmacSelectClk(FXmac *instance_p);
FError FXmacSetHandler(FXmac *instance_p, u32 handler_type, void *func_pointer, void *call_back_ref); FError FXmacSetHandler(FXmac *instance_p, u32 handler_type, void *func_pointer, void *call_back_ref);
/* interrupt */ /* interrupt */
void FXmacIntrHandler(s32 vector, void *args); void FXmacIntrHandler(s32 vector, void *args);
void FXmacQueueIrqDisable(FXmac *instance_p, u32 queue_num, u32 mask);
void FXmacClearHash(FXmac *instance_p); void FXmacClearHash(FXmac *instance_p);
/* hash table set */ /* hash table set */

160
drivers/eth/fxmac/fxmac_options.c

@ -648,166 +648,6 @@ void FXmacClearHash(FXmac *instance_p)
FXMAC_HASHH_OFFSET, 0x0U); FXMAC_HASHH_OFFSET, 0x0U);
} }
/**
* Write data to the specified PHY register. The Ethernet driver does not
* require the device to be stopped before writing to the PHY. Although it is
* probably a good idea to stop the device, it is the responsibility of the
* application to deem this necessary. The MAC provides the driver with the
* ability to talk to a PHY that adheres to the Media Independent Interface
* (MII) as defined in the IEEE 802.3 standard.
*
* Prior to PHY access with this function, the user should have setup the MDIO
* clock with FXmacSetMdioDivisor().
*
* @param instance_p is a pointer to the FXmac instance to be worked on.
* @param phy_address is the address of the PHY to be written (supports multiple
* PHYs)
* @param register_num is the register number, 0-31, of the specific PHY register
* to write
* @param phy_data is the 16-bit value that will be written to the register
*
* @return
*
* - FT_SUCCESS if the PHY was written to successfully. Since there is no error
* status from the MAC on a write, the user should read the PHY to verify the
* write was successful.
* - FXMAC_ERR_PHY_BUSY if there is another PHY operation in progress
*
* @note
*
* This function is not thread-safe. The user must provide mutually exclusive
* access to this function if there are to be multiple threads that can call it.
*
* There is the possibility that this function will not return if the hardware
* is broken (i.e., it never sets the status bit indicating that the write is
* done). If this is of concern to the user, the user should provide a mechanism
* suitable to their needs for recovery.
*
* For the duration of this function, all host interface reads and writes are
* blocked to the current FXmac instance.
*
******************************************************************************/
FError FXmacPhyWrite(FXmac *instance_p, u32 phy_address,
u32 register_num, u16 phy_data)
{
u32 mgtcr;
volatile u32 ipisr;
u32 ip_write_temp;
FError status;
FASSERT(instance_p != NULL);
/* Make sure no other PHY operation is currently in progress */
if ((!(FXMAC_READREG32(instance_p->config.base_address,
FXMAC_NWSR_OFFSET) &
FXMAC_NWSR_MDIOIDLE_MASK)) == TRUE)
{
status = (FError)(FXMAC_ERR_PHY_BUSY);
}
else
{
/* Construct mgtcr mask for the operation */
mgtcr = FXMAC_PHYMNTNC_OP_MASK | FXMAC_PHYMNTNC_OP_W_MASK |
(phy_address << FXMAC_PHYMNTNC_PHAD_SHFT_MSK) |
(register_num << FXMAC_PHYMNTNC_PREG_SHFT_MSK) | (u32)phy_data;
/* Write mgtcr and wait for completion */
FXMAC_WRITEREG32(instance_p->config.base_address,
FXMAC_PHYMNTNC_OFFSET, mgtcr);
do
{
ipisr = FXMAC_READREG32(instance_p->config.base_address,
FXMAC_NWSR_OFFSET);
ip_write_temp = ipisr;
}
while ((ip_write_temp & FXMAC_NWSR_MDIOIDLE_MASK) == 0x00000000U);
status = (FError)(FT_SUCCESS);
}
return status;
}
/**
* Read the current value of the PHY register indicated by the phy_address and
* the register_num parameters. The MAC provides the driver with the ability to
* talk to a PHY that adheres to the Media Independent Interface (MII) as
* defined in the IEEE 802.3 standard.
*
*
* @param instance_p is a pointer to the FXmac instance to be worked on.
* @param phy_address is the address of the PHY to be read (supports multiple
* PHYs)
* @param register_num is the register number, 0-31, of the specific PHY register
* to read
* @param phydat_aptr is an output parameter, and points to a 16-bit buffer into
* which the current value of the register will be copied.
*
* @return
*
* - FT_SUCCESS if the PHY was read from successfully
* - FXMAC_ERR_PHY_BUSY if there is another PHY operation in progress
*
* @note
*
* This function is not thread-safe. The user must provide mutually exclusive
* access to this function if there are to be multiple threads that can call it.
*
* There is the possibility that this function will not return if the hardware
* is broken (i.e., it never sets the status bit indicating that the read is
* done). If this is of concern to the user, the user should provide a mechanism
* suitable to their needs for recovery.
*
* For the duration of this function, all host interface reads and writes are
* blocked to the current FXmac instance.
*
******************************************************************************/
FError FXmacPhyRead(FXmac *instance_p, u32 phy_address,
u32 register_num, u16 *phydat_aptr)
{
u32 mgtcr;
volatile u32 ipisr;
u32 IpReadTemp;
FError status;
FASSERT(instance_p != NULL);
/* Make sure no other PHY operation is currently in progress */
if ((!(FXMAC_READREG32(instance_p->config.base_address,
FXMAC_NWSR_OFFSET) &
FXMAC_NWSR_MDIOIDLE_MASK)) == TRUE)
{
status = (FError)(FXMAC_ERR_PHY_BUSY);
}
else
{
/* Construct mgtcr mask for the operation */
mgtcr = FXMAC_PHYMNTNC_OP_MASK | FXMAC_PHYMNTNC_OP_R_MASK |
(phy_address << FXMAC_PHYMNTNC_PHAD_SHFT_MSK) |
(register_num << FXMAC_PHYMNTNC_PREG_SHFT_MSK);
/* Write mgtcr and wait for completion */
FXMAC_WRITEREG32(instance_p->config.base_address,
FXMAC_PHYMNTNC_OFFSET, mgtcr);
do
{
ipisr = FXMAC_READREG32(instance_p->config.base_address,
FXMAC_NWSR_OFFSET);
IpReadTemp = ipisr;
}
while ((IpReadTemp & FXMAC_NWSR_MDIOIDLE_MASK) == 0x00000000U);
/* Read data */
*phydat_aptr = (u16)FXMAC_READREG32(instance_p->config.base_address,
FXMAC_PHYMNTNC_OFFSET);
status = (FError)(FT_SUCCESS);
}
return status;
}
boolean FXmacUsxLinkStatus(FXmac *instance_p) boolean FXmacUsxLinkStatus(FXmac *instance_p)
{ {
u32 reg = 0; u32 reg = 0;

159
drivers/eth/fxmac/fxmac_phy.c

@ -25,6 +25,7 @@
#include "fxmac.h" #include "fxmac.h"
#include "eth_ieee_reg.h" #include "eth_ieee_reg.h"
#include "fdrivers_port.h" #include "fdrivers_port.h"
#include "fxmac_phy.h"
#if defined(CONFIG_FXMAC_PHY_YT) #if defined(CONFIG_FXMAC_PHY_YT)
#include "phy_yt.h" #include "phy_yt.h"
@ -40,6 +41,162 @@
static FXmac *instance_b; static FXmac *instance_b;
static u32 phy_addr_b; static u32 phy_addr_b;
/**
* Write data to the specified PHY register. The Ethernet driver does not
* require the device to be stopped before writing to the PHY. Although it is
* probably a good idea to stop the device, it is the responsibility of the
* application to deem this necessary. The MAC provides the driver with the
* ability to talk to a PHY that adheres to the Media Independent Interface
* (MII) as defined in the IEEE 802.3 standard.
*
* Prior to PHY access with this function, the user should have setup the MDIO
* clock with FXmacSetMdioDivisor().
*
* @param instance_p is a pointer to the FXmac instance to be worked on.
* @param phy_address is the address of the PHY to be written (supports multiple
* PHYs)
* @param register_num is the register number, 0-31, of the specific PHY register
* to write
* @param phy_data is the 16-bit value that will be written to the register
*
* @return
*
* - FT_SUCCESS if the PHY was written to successfully. Since there is no error
* status from the MAC on a write, the user should read the PHY to verify the
* write was successful.
* - FXMAC_ERR_PHY_BUSY if there is another PHY operation in progress
*
* @note
*
* This function is not thread-safe. The user must provide mutually exclusive
* access to this function if there are to be multiple threads that can call it.
*
* There is the possibility that this function will not return if the hardware
* is broken (i.e., it never sets the status bit indicating that the write is
* done). If this is of concern to the user, the user should provide a mechanism
* suitable to their needs for recovery.
*
* For the duration of this function, all host interface reads and writes are
* blocked to the current FXmac instance.
*
******************************************************************************/
FError FXmacPhyWrite(FXmac *instance_p, u32 phy_address, u32 register_num, u16 phy_data)
{
u32 mgtcr;
volatile u32 ipisr;
u32 ip_write_temp;
FError status;
FASSERT(instance_p != NULL);
/* Make sure no other PHY operation is currently in progress */
if ((!(FXMAC_READREG32(instance_p->config.base_address,
FXMAC_NWSR_OFFSET) &
FXMAC_NWSR_MDIOIDLE_MASK)) == TRUE)
{
status = (FError)(FXMAC_ERR_PHY_BUSY);
}
else
{
/* Construct mgtcr mask for the operation */
mgtcr = FXMAC_PHYMNTNC_OP_MASK | FXMAC_PHYMNTNC_OP_W_MASK |
(phy_address << FXMAC_PHYMNTNC_PHAD_SHFT_MSK) |
(register_num << FXMAC_PHYMNTNC_PREG_SHFT_MSK) | (u32)phy_data;
/* Write mgtcr and wait for completion */
FXMAC_WRITEREG32(instance_p->config.base_address,
FXMAC_PHYMNTNC_OFFSET, mgtcr);
do
{
ipisr = FXMAC_READREG32(instance_p->config.base_address,
FXMAC_NWSR_OFFSET);
ip_write_temp = ipisr;
}
while ((ip_write_temp & FXMAC_NWSR_MDIOIDLE_MASK) == 0x00000000U);
status = (FError)(FT_SUCCESS);
}
return status;
}
/**
* Read the current value of the PHY register indicated by the phy_address and
* the register_num parameters. The MAC provides the driver with the ability to
* talk to a PHY that adheres to the Media Independent Interface (MII) as
* defined in the IEEE 802.3 standard.
*
*
* @param instance_p is a pointer to the FXmac instance to be worked on.
* @param phy_address is the address of the PHY to be read (supports multiple
* PHYs)
* @param register_num is the register number, 0-31, of the specific PHY register
* to read
* @param phydat_aptr is an output parameter, and points to a 16-bit buffer into
* which the current value of the register will be copied.
*
* @return
*
* - FT_SUCCESS if the PHY was read from successfully
* - FXMAC_ERR_PHY_BUSY if there is another PHY operation in progress
*
* @note
*
* This function is not thread-safe. The user must provide mutually exclusive
* access to this function if there are to be multiple threads that can call it.
*
* There is the possibility that this function will not return if the hardware
* is broken (i.e., it never sets the status bit indicating that the read is
* done). If this is of concern to the user, the user should provide a mechanism
* suitable to their needs for recovery.
*
* For the duration of this function, all host interface reads and writes are
* blocked to the current FXmac instance.
*
******************************************************************************/
FError FXmacPhyRead(FXmac *instance_p, u32 phy_address,
u32 register_num, u16 *phydat_aptr)
{
u32 mgtcr;
volatile u32 ipisr;
u32 IpReadTemp;
FError status;
FASSERT(instance_p != NULL);
/* Make sure no other PHY operation is currently in progress */
if ((!(FXMAC_READREG32(instance_p->config.base_address,
FXMAC_NWSR_OFFSET) &
FXMAC_NWSR_MDIOIDLE_MASK)) == TRUE)
{
status = (FError)(FXMAC_ERR_PHY_BUSY);
}
else
{
/* Construct mgtcr mask for the operation */
mgtcr = FXMAC_PHYMNTNC_OP_MASK | FXMAC_PHYMNTNC_OP_R_MASK |
(phy_address << FXMAC_PHYMNTNC_PHAD_SHFT_MSK) |
(register_num << FXMAC_PHYMNTNC_PREG_SHFT_MSK);
/* Write mgtcr and wait for completion */
FXMAC_WRITEREG32(instance_p->config.base_address,
FXMAC_PHYMNTNC_OFFSET, mgtcr);
do
{
ipisr = FXMAC_READREG32(instance_p->config.base_address,
FXMAC_NWSR_OFFSET);
IpReadTemp = ipisr;
}
while ((IpReadTemp & FXMAC_NWSR_MDIOIDLE_MASK) == 0x00000000U);
/* Read data */
*phydat_aptr = (u16)FXMAC_READREG32(instance_p->config.base_address,
FXMAC_PHYMNTNC_OFFSET);
status = (FError)(FT_SUCCESS);
}
return status;
}
static FError FXmacDetect(FXmac *instance_p, u32 *phy_addr_p) static FError FXmacDetect(FXmac *instance_p, u32 *phy_addr_p)
{ {
@ -330,7 +487,7 @@ static FError FXmacConfigureIeeePhySpeed(FXmac *instance_p, u32 phy_addr, u32 sp
* @param {u32} reset_flag is a flag which indicates whether to reset xmac phy. * @param {u32} reset_flag is a flag which indicates whether to reset xmac phy.
* @return {FError} * @return {FError}
*/ */
FError FXmacPhyInit(FXmac *instance_p, u32 speed, u32 duplex_mode, u32 autonegotiation_en,u32 reset_flag) FError FXmacPhyInit(FXmac *instance_p, u32 speed, u32 duplex_mode, u32 autonegotiation_en, u32 reset_flag)
{ {
FError ret; FError ret;
u32 phy_addr; u32 phy_addr;

21
drivers/eth/fxmac/fxmac_phy.h

@ -25,6 +25,10 @@
#ifndef FXMAC_PHY_H #ifndef FXMAC_PHY_H
#define FXMAC_PHY_H #define FXMAC_PHY_H
#include "ftypes.h"
#include "ferror_code.h"
#include "fxmac.h"
#ifdef __cplusplus #ifdef __cplusplus
extern "C" extern "C"
{ {
@ -33,6 +37,23 @@ extern "C"
#define XMAC_PHY_RESET_ENABLE 1 #define XMAC_PHY_RESET_ENABLE 1
#define XMAC_PHY_RESET_DISABLE 0 #define XMAC_PHY_RESET_DISABLE 0
enum
{
FXMAC_PHY_AUTONEGOTIATION_DISABLE = 0,
FXMAC_PHY_AUTONEGOTIATION_ENABLE
};
enum
{
FXMAC_PHY_MODE_HALFDUPLEX = 0,
FXMAC_PHY_MODE_FULLDUPLEX
};
/* phy interface */
FError FXmacPhyWrite(FXmac *instance_p, u32 phy_address, u32 register_num, u16 phy_data);
FError FXmacPhyRead(FXmac *instance_p, u32 phy_address, u32 register_num, u16 *phydat_aptr);
FError FXmacPhyInit(FXmac *instance_p, u32 speed, u32 duplex_mode, u32 autonegotiation_en, u32 reset_flag);
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif

6
drivers/eth/fxmac/phy/eth_ieee_reg.h

@ -27,6 +27,7 @@
/***************************** Include Files *********************************/ /***************************** Include Files *********************************/
#include "ferror_code.h" #include "ferror_code.h"
#include "fxmac.h"
#ifdef __cplusplus #ifdef __cplusplus
extern "C" extern "C"
@ -54,6 +55,7 @@ extern "C"
#define PHY_CONTROL_LINKSPEED_100M 0x2000 #define PHY_CONTROL_LINKSPEED_100M 0x2000
#define PHY_CONTROL_LINKSPEED_10M 0x0000 #define PHY_CONTROL_LINKSPEED_10M 0x0000
#define PHY_CONTROL_RESET_MASK 0x8000 #define PHY_CONTROL_RESET_MASK 0x8000
#define PHY_CONTROL_LOOPBACK_MASK 0x4000
#define PHY_CONTROL_AUTONEGOTIATE_ENABLE 0x1000 #define PHY_CONTROL_AUTONEGOTIATE_ENABLE 0x1000
#define PHY_CONTROL_AUTONEGOTIATE_RESTART 0x0200 #define PHY_CONTROL_AUTONEGOTIATE_RESTART 0x0200
@ -91,8 +93,8 @@ extern "C"
/**************************** Type Definitions *******************************/ /**************************** Type Definitions *******************************/
typedef FError(*EthPhyWrite)(void *instance_p, u32 phy_address, u32 phy_reg_offset, u16 phy_data); typedef FError(*EthPhyWrite)(FXmac *instance_p, u32 phy_address, u32 phy_reg_offset, u16 phy_data);
typedef FError(*EthPhyRead)(void *instance_p, u32 phy_address, u32 phy_reg_offset, u16 *phy_data_p); typedef FError(*EthPhyRead)(FXmac *instance_p, u32 phy_address, u32 phy_reg_offset, u16 *phy_data_p);
/************************** Variable Definitions *****************************/ /************************** Variable Definitions *****************************/

5
drivers/eth/fxmac/phy/yt/phy_yt.c

@ -31,9 +31,6 @@
#define PHY_YT_DEBUG(format, ...) FT_DEBUG_PRINT_D(PHY_YT_DEBUG_TAG, format, ##__VA_ARGS__) #define PHY_YT_DEBUG(format, ...) FT_DEBUG_PRINT_D(PHY_YT_DEBUG_TAG, format, ##__VA_ARGS__)
#define PHY_YT_WARN(format, ...) FT_DEBUG_PRINT_W(PHY_YT_DEBUG_TAG, format, ##__VA_ARGS__) #define PHY_YT_WARN(format, ...) FT_DEBUG_PRINT_W(PHY_YT_DEBUG_TAG, format, ##__VA_ARGS__)
#define PHY_YT_REG0_LOOPBACK 0x4000
FError PhyYtCheckConnectStatus(void *instance_p, u32 phy_addr, EthPhyWrite write_p, EthPhyRead read_p) FError PhyYtCheckConnectStatus(void *instance_p, u32 phy_addr, EthPhyWrite write_p, EthPhyRead read_p)
{ {
u16 phy_reg0 = 0; u16 phy_reg0 = 0;
@ -74,7 +71,7 @@ FError PhyYtSetLoopBack(void *instance_p, u32 phy_addr, EthPhyWrite write_p, Eth
/* /*
* Enable loopback * Enable loopback
*/ */
phy_reg0 |= PHY_YT_REG0_LOOPBACK; phy_reg0 |= PHY_CONTROL_LOOPBACK_MASK;
status = write_p(instance_p, phy_addr, 0, phy_reg0); status = write_p(instance_p, phy_addr, 0, phy_reg0);
status = read_p(instance_p, phy_addr, 0, &phy_reg0); status = read_p(instance_p, phy_addr, 0, &phy_reg0);

5
drivers/eth/src.mk

@ -25,5 +25,10 @@ DRIVERS_CSRCS += \
fxmac_options.c\ fxmac_options.c\
fxmac_phy.c\ fxmac_phy.c\
fxmac_sinit.c fxmac_sinit.c
ifdef CONFIG_FXMAC_PHY_YT
DRIVERS_CSRCS += phy/yt/phy_yt.c
endif
endif endif

33
drivers/i2c/fi2c/fi2c.c

@ -48,15 +48,6 @@
static FError FI2cReset(FI2c *instance_p); static FError FI2cReset(FI2c *instance_p);
/************************** Variable Definitions *****************************/ /************************** Variable Definitions *****************************/
static const char *FI2C_ERROR_CODE_MSG[FI2C_NUM_OF_ERR_CODE] =
{
"FI2C_SUCCESS : fi2c success",
"FI2C_ERR_INVAL_PARM : fi2c invalid input parameters",
"FI2C_ERR_NOT_READY : fi2c driver is not ready",
"FI2C_ERR_TIMEOUT : fi2c wait timeout",
"FI2C_ERR_NOT_SUPPORT : fi2c not support operation",
"FI2C_ERR_INVAL_STATE : fi2c invalid state"
};
/** /**
* @name: FI2cCfgInitialize * @name: FI2cCfgInitialize
@ -170,27 +161,3 @@ static FError FI2cReset(FI2c *instance_p)
return ret; return ret;
} }
/**
* @name: FI2cErrorToMessage
* @msg: I2C模块错误码对应的错误信息
* @return {const char *}, NULL表示失败
* @param {FError} error, I2C输入错误码
*/
const char *FI2cErrorToMessage(FError error)
{
const char *msg = NULL;
if (FI2C_SUCCESS != error && ((FI2C_ERR_CODE_PREFIX != error) & (FT_ERRCODE_SYS_MODULE_MASK | FT_ERRCODE_SUB_MODULE_MASK)))
{
/* if input error do not belong to this module */
return msg;
}
u32 index = error & FT_ERRCODE_TAIL_VALUE_MASK;
if (index < FI2C_NUM_OF_ERR_CODE)
{
msg = FI2C_ERROR_CODE_MSG[index];
}
return msg;
}

5
drivers/i2c/fi2c/fi2c.h

@ -50,8 +50,6 @@ extern "C"
/* add up new error code above and plust FI2C_ERR_CODE_MAX by ONE*/ /* add up new error code above and plust FI2C_ERR_CODE_MAX by ONE*/
#define FI2C_ERR_CODE_MAX FT_MAKE_ERRCODE(ErrModBsp, ErrBspI2c, 7) #define FI2C_ERR_CODE_MAX FT_MAKE_ERRCODE(ErrModBsp, ErrBspI2c, 7)
#define FI2C_ERR_CODE_PREFIX FI2C_ERR_CODE_MAX & (FT_ERRCODE_SYS_MODULE_MASK | FT_ERRCODE_SUB_MODULE_MASK)
#define FI2C_NUM_OF_ERR_CODE FI2C_ERR_CODE_MAX & FT_ERRCODE_TAIL_VALUE_MASK
/* /*
* status codes * status codes
@ -162,9 +160,6 @@ FError FI2cCfgInitialize(FI2c *instance_p, const FI2cConfig *cofig_p);
/* 完成I2C驱动实例去使能,清零实例数据 */ /* 完成I2C驱动实例去使能,清零实例数据 */
void FI2cDeInitialize(FI2c *instance_p); void FI2cDeInitialize(FI2c *instance_p);
/* 获取I2C模块错误码对应的错误信息 */
const char *FI2cErrorToMessage(FError error);
/* fi2c_master.c */ /* fi2c_master.c */
/* I2C主机读,阻塞直到完成读操作或失败 */ /* I2C主机读,阻塞直到完成读操作或失败 */
FError FI2cMasterReadPoll(FI2c *instance_p, u32 mem_addr, u8 mem_byte_len, u8 *buf_p, u32 buf_len); FError FI2cMasterReadPoll(FI2c *instance_p, u32 mem_addr, u8 mem_byte_len, u8 *buf_p, u32 buf_len);

4
drivers/i2c/fi2c/fi2c_hw.c

@ -404,14 +404,13 @@ FError FI2cSetSar(uintptr addr, u32 sar_addr)
*/ */
FError FI2cFlushRxFifo(uintptr addr) FError FI2cFlushRxFifo(uintptr addr)
{ {
u8 data;
int timeout = 0; int timeout = 0;
FError ret = FI2C_SUCCESS; FError ret = FI2C_SUCCESS;
/* read data to trigger trans until fifo empty */ /* read data to trigger trans until fifo empty */
while (FI2C_GET_STATUS(addr) & FI2C_STATUS_RFNE) while (FI2C_GET_STATUS(addr) & FI2C_STATUS_RFNE)
{ {
data = FI2C_READ_DATA(addr); (void)FI2C_READ_DATA(addr);
if (FI2C_TIMEOUT < ++timeout) if (FI2C_TIMEOUT < ++timeout)
{ {
@ -489,7 +488,6 @@ u32 FI2cClearIntrBits(uintptr addr, u32 *last_err_p)
void FI2cClearAbort(uintptr addr) void FI2cClearAbort(uintptr addr)
{ {
u32 reg_val;
u32 timeout = FI2C_TIMEOUT; u32 timeout = FI2C_TIMEOUT;
do do

3
drivers/i2c/fi2c/fi2c_master.c

@ -114,7 +114,6 @@ static FError FI2cMasterStopTrans(FI2c *instance_p)
FASSERT(instance_p); FASSERT(instance_p);
FError ret = FI2C_SUCCESS; FError ret = FI2C_SUCCESS;
uintptr base_addr = instance_p->config.base_addr; uintptr base_addr = instance_p->config.base_addr;
u32 reg_val = 0;
u32 timeout = 0; u32 timeout = 0;
FI2C_INFO("GET MASTER STOP, stat: 0x%x, 0x%x", FI2C_READ_INTR_STAT(base_addr), FI2C_INFO("GET MASTER STOP, stat: 0x%x, 0x%x", FI2C_READ_INTR_STAT(base_addr),
@ -124,7 +123,7 @@ static FError FI2cMasterStopTrans(FI2c *instance_p)
{ {
if (FI2C_READ_RAW_INTR_STAT(base_addr) & FI2C_INTR_STOP_DET) if (FI2C_READ_RAW_INTR_STAT(base_addr) & FI2C_INTR_STOP_DET)
{ {
reg_val = FI2C_READ_REG32(base_addr, FI2C_CLR_STOP_DET_OFFSET); /* read to clr intr status */ (void)FI2C_READ_REG32(base_addr, FI2C_CLR_STOP_DET_OFFSET); /* read to clr intr status */
break; break;
} }
else if (FI2C_TIMEOUT < ++timeout) else if (FI2C_TIMEOUT < ++timeout)

5
drivers/i2s/fes8336/fes8336.c

@ -39,10 +39,8 @@
/*i2s slave address*/ /*i2s slave address*/
#define ES8336_ADDR 0x10 #define ES8336_ADDR 0x10
static FIOPadCtrl iopad_ctrl;
/*es8336 register default value*/ /*es8336 register default value*/
static const struct reg_default es8336_reg_defaults[] = _UNUSED static const struct reg_default es8336_reg_defaults[] =
{ {
{0x00, 0x03}, {0x01, 0x03}, {0x02, 0x00}, {0x03, 0x20}, {0x00, 0x03}, {0x01, 0x03}, {0x02, 0x00}, {0x03, 0x20},
{0x04, 0x11}, {0x05, 0x00}, {0x06, 0x11}, {0x07, 0x00}, {0x04, 0x11}, {0x05, 0x00}, {0x06, 0x11}, {0x07, 0x00},
@ -427,6 +425,7 @@ FError FEs8336SetBiasLevel(FEs8336BiasLevel level)
FEs8336WriteByte(ES8336_SYS_LP1_REG0E, 0x3F); FEs8336WriteByte(ES8336_SYS_LP1_REG0E, 0x3F);
FEs8336WriteByte(ES8336_SYS_LP2_REG0F, 0x1F); FEs8336WriteByte(ES8336_SYS_LP2_REG0F, 0x1F);
FEs8336WriteByte(ES8336_RESET_REG00, 0x00); FEs8336WriteByte(ES8336_RESET_REG00, 0x00);
default:
break; break;
} }
return ret; return ret;

1
drivers/i2s/fes8388/fes8388.c

@ -33,7 +33,6 @@
#include "fi2c_hw.h" #include "fi2c_hw.h"
#include "fes8388.h" #include "fes8388.h"
static FIOPadCtrl iopad_ctrl;
static FI2c master_i2c_instance; static FI2c master_i2c_instance;

10
drivers/iomux/fioctrl/fioctrl.c

@ -45,12 +45,12 @@
#define FIOCTRL_INFO(format, ...) FT_DEBUG_PRINT_I(FIOCTRL_DEBUG_TAG, format, ##__VA_ARGS__) #define FIOCTRL_INFO(format, ...) FT_DEBUG_PRINT_I(FIOCTRL_DEBUG_TAG, format, ##__VA_ARGS__)
#define FIOCTRL_DEBUG(format, ...) FT_DEBUG_PRINT_D(FIOCTRL_DEBUG_TAG, format, ##__VA_ARGS__) #define FIOCTRL_DEBUG(format, ...) FT_DEBUG_PRINT_D(FIOCTRL_DEBUG_TAG, format, ##__VA_ARGS__)
#define FIOCTRL_ASSERT_REG_OFF(pin) FASSERT_MSG(((pin.reg_off >= FIOCTRL_REG_OFFSET_MIN) && (pin.reg_off <= FIOCTRL_REG_OFFSET_MAX)), "invalid pin register off @%d", (pin.reg_off)) #define FIOCTRL_ASSERT_REG_OFF(pin) FASSERT_MSG(((pin.reg_off >= FIOCTRL_REG_OFFSET_MIN) && (pin.reg_off <= FIOCTRL_REG_OFFSET_MAX)), "invalid pin register off @%d", (unsigned int)(pin.reg_off))
#define FIOCTRL_ASSERT_FUNC(func) FASSERT_MSG((func < FIOCTRL_NUM_OF_FUNC), "invalid func as %d", (func)) #define FIOCTRL_ASSERT_FUNC(func) FASSERT_MSG((func < FIOCTRL_NUM_OF_FUNC), "invalid func as %d", (unsigned int)(func))
#define FIOCTRL_ASSERT_PULL(pull) FASSERT_MSG((pull < FIOCTRL_NUM_OF_PULL), "invalid pull as %d", (pull)) #define FIOCTRL_ASSERT_PULL(pull) FASSERT_MSG((pull < FIOCTRL_NUM_OF_PULL), "invalid pull as %d", (unsigned int)(pull))
#define FIOCTRL_ASSERT_DELAY_REG_OFF(pin) FASSERT_MSG(((pin.reg_off >= FIOCTRL_DELAY_REG_OFFSET_MIN) && (pin.reg_off <= FIOCTRL_DELAY_REG_OFFSET_MAX)), "invalid delay pin register off @%d", (pin.reg_off)) #define FIOCTRL_ASSERT_DELAY_REG_OFF(pin) FASSERT_MSG(((pin.reg_off >= FIOCTRL_DELAY_REG_OFFSET_MIN) && (pin.reg_off <= FIOCTRL_DELAY_REG_OFFSET_MAX)), "invalid delay pin register off @%d", (unsigned int)(pin.reg_off))
#define FIOCTRL_ASSERT_DELAY(delay) FASSERT_MSG(((delay) < FIOCTRL_NUM_OF_DELAY), "invalid delay as %d", (delay)); #define FIOCTRL_ASSERT_DELAY(delay) FASSERT_MSG(((delay) < FIOCTRL_NUM_OF_DELAY), "invalid delay as %d", (unsigned int)(delay));
/************************** Function Prototypes ******************************/ /************************** Function Prototypes ******************************/

4
drivers/media/fdcdp_lib/inc/fdc_hw.h

@ -147,8 +147,8 @@ DC Ctrl Register*/
/* FDC_GCREG_CURSOR_CONFIG */ /* FDC_GCREG_CURSOR_CONFIG */
#define FDC_GCREG_CURSOR_CONFIG_HOT_SPOT_X_SET(x) SET_REG32_BITS((x), 20, 16) /* horizontal offset to the cursor hotspot */ #define FDC_GCREG_CURSOR_CONFIG_HOT_SPOT_X_SET(x) SET_REG32_BITS((x), 20, 16) /* horizontal offset to the cursor hotspot */
#define FDC_GCREG_CURSOR_CONFIG_HOT_SPOT_Y_SET(x) SET_REG32_BITS((x), 12, 8) /* vertical offset to the cursor hotspot */ #define FDC_GCREG_CURSOR_CONFIG_HOT_SPOT_Y_SET(x) SET_REG32_BITS((x), 12, 8) /* vertical offset to the cursor hotspot */
#define FDC_GCREG_CURSOR_CONFIG_HOT_FORMAT_SET(x) SET_REG32_BITS((x), 1, 0) /* format of the cursor,0: disabled, 1:masked, 2:ARGB888 \ #define FDC_GCREG_CURSOR_CONFIG_HOT_FORMAT_SET(x) SET_REG32_BITS((x), 1, 0) /* format of the cursor,0: disabled, 1:masked, 2:ARGB888 */
\ \
/* FDC_GCREG_CURSOR_LOCATION */ /* FDC_GCREG_CURSOR_LOCATION */
#define FDC_GCREG_CURSOR_LOCATION_Y_SET(x) SET_REG32_BITS((x), 31, 16) /* Y location of cursor hotspot */ #define FDC_GCREG_CURSOR_LOCATION_Y_SET(x) SET_REG32_BITS((x), 31, 16) /* Y location of cursor hotspot */
#define FDC_GCREG_CURSOR_LOCATION_X_SET(x) SET_REG32_BITS((x), 15, 0) /* X location of cursor hotspot */ #define FDC_GCREG_CURSOR_LOCATION_X_SET(x) SET_REG32_BITS((x), 15, 0) /* X location of cursor hotspot */

2
drivers/mmc/fsdmmc/fsdmmc_intr.c

@ -67,7 +67,7 @@ extern FError FSdmmcSendData(uintptr base_addr, boolean read, FSdmmcCmd *cmd_p);
*/ */
u32 FSdmmcGetInterruptMask(uintptr base_addr, u32 intr_type) u32 FSdmmcGetInterruptMask(uintptr base_addr, u32 intr_type)
{ {
u32 mask; u32 mask = 0;
switch (intr_type) switch (intr_type)
{ {

19
drivers/pcie/fpcie_ecam/fpcie_ecam.c

@ -734,7 +734,7 @@ FError FPcieEcamSkipType0(FPcieEcam *instance_p,u8 bus,u8 device,u8 function)
} }
} }
pos + 1 ; pos ++;
} }
return FT_SUCCESS; return FT_SUCCESS;
@ -906,7 +906,6 @@ FError FPcieEcamEnumerateBus(FPcieEcam *instance_p,u8 bus)
FError FPcieEcamCfgInitialize(FPcieEcam *instance_p, FPcieEcamConfig *config_p,FPcieEcamNeedSkip need_skip_fun) //用于从全局配置数据中获取数据,初始化instance_p FError FPcieEcamCfgInitialize(FPcieEcam *instance_p, FPcieEcamConfig *config_p,FPcieEcamNeedSkip need_skip_fun) //用于从全局配置数据中获取数据,初始化instance_p
{ {
struct FPcieRegion mem_region = {0} ; struct FPcieRegion mem_region = {0} ;
struct FPcieRegion prefetch_region = {0} ;
struct FPcieRegion io_region = {0} ; struct FPcieRegion io_region = {0} ;
/* Assert arguments */ /* Assert arguments */
@ -924,12 +923,6 @@ FError FPcieEcamCfgInitialize(FPcieEcam *instance_p, FPcieEcamConfig *config_p,F
mem_region.size = instance_p->config.npmem_size ; mem_region.size = instance_p->config.npmem_size ;
mem_region.flags = FPCIE_REGION_MEM ; mem_region.flags = FPCIE_REGION_MEM ;
/* mem64 地址 */
prefetch_region.phys_start = instance_p->config.pmem_base_addr ;
prefetch_region.bus_start = instance_p->config.pmem_base_addr ;
prefetch_region.size = instance_p->config.pmem_size ;
prefetch_region.flags = (PCI_REGION_PREFETCH | FPCIE_REGION_MEM);
/* memio 地址 */ /* memio 地址 */
io_region.phys_start = instance_p->config.io_base_addr ; io_region.phys_start = instance_p->config.io_base_addr ;
io_region.bus_start = instance_p->config.io_base_addr ; io_region.bus_start = instance_p->config.io_base_addr ;
@ -943,9 +936,19 @@ FError FPcieEcamCfgInitialize(FPcieEcam *instance_p, FPcieEcamConfig *config_p,F
instance_p->need_skip_fun = need_skip_fun ; instance_p->need_skip_fun = need_skip_fun ;
FPcieRegionConfigInit(instance_p, &mem_region, 1) ; FPcieRegionConfigInit(instance_p, &mem_region, 1) ;
#if defined(FAARCH64_USE) #if defined(FAARCH64_USE)
struct FPcieRegion prefetch_region = {0} ;
/* mem64 地址 */
prefetch_region.phys_start = instance_p->config.pmem_base_addr ;
prefetch_region.bus_start = instance_p->config.pmem_base_addr ;
prefetch_region.size = instance_p->config.pmem_size ;
prefetch_region.flags = (PCI_REGION_PREFETCH | FPCIE_REGION_MEM);
FPcieRegionConfigInit(instance_p, &prefetch_region, 1) ; FPcieRegionConfigInit(instance_p, &prefetch_region, 1) ;
#endif #endif
FPcieRegionConfigInit(instance_p, &io_region, 1) ; FPcieRegionConfigInit(instance_p, &io_region, 1) ;
instance_p->is_ready = FT_COMPONENT_IS_READY; instance_p->is_ready = FT_COMPONENT_IS_READY;

8
drivers/pwm/fpwm/fpwm.c

@ -178,7 +178,7 @@ static void FPwmTimInterruptEnable(FPwmCtrl *pctrl, u32 channel)
* @param {u32} channel, pwm module's channel, 0/1 * @param {u32} channel, pwm module's channel, 0/1
* @return * @return
*/ */
static void FPwmTimInterruptDisable(FPwmCtrl *pctrl, u32 channel) _UNUSED static void FPwmTimInterruptDisable(FPwmCtrl *pctrl, u32 channel)
{ {
FASSERT(pctrl != NULL); FASSERT(pctrl != NULL);
u32 reg_val = 0; u32 reg_val = 0;
@ -426,11 +426,8 @@ static void FPwmDbFallCycleSet(FPwmCtrl *pctrl, u16 fall_edge_delay)
FASSERT(pctrl != NULL); FASSERT(pctrl != NULL);
FASSERT(fall_edge_delay < FPWM_DB_DLY_MAX); FASSERT(fall_edge_delay < FPWM_DB_DLY_MAX);
u32 reg_val = 0; u32 reg_val = 0;
uintptr pwm_base_addr = pctrl->config.pwm_base_addr;
uintptr db_base_addr = pctrl->config.db_base_addr; uintptr db_base_addr = pctrl->config.db_base_addr;
u32 pwm_period = FPWM_READ_REG32(pwm_base_addr, FPWM_PERIOD_OFFSET);
reg_val = FPWM_READ_REG32(db_base_addr, FPWM_DB_DLY_OFFSET); reg_val = FPWM_READ_REG32(db_base_addr, FPWM_DB_DLY_OFFSET);
reg_val &= (~FPWM_DB_DLY_FALL_MASK); reg_val &= (~FPWM_DB_DLY_FALL_MASK);
reg_val |= FPWM_DB_DLY_FALL(fall_edge_delay); reg_val |= FPWM_DB_DLY_FALL(fall_edge_delay);
@ -449,11 +446,8 @@ static void FPwmDbRiseCycleSet(FPwmCtrl *pctrl, u16 rise_edge_delay)
FASSERT(pctrl != NULL); FASSERT(pctrl != NULL);
FASSERT(rise_edge_delay < FPWM_DB_DLY_MAX); FASSERT(rise_edge_delay < FPWM_DB_DLY_MAX);
u32 reg_val = 0; u32 reg_val = 0;
uintptr pwm_base_addr = pctrl->config.pwm_base_addr;
uintptr db_base_addr = pctrl->config.db_base_addr; uintptr db_base_addr = pctrl->config.db_base_addr;
u32 pwm_period = FPWM_READ_REG32(pwm_base_addr, FPWM_PERIOD_OFFSET);
reg_val = FPWM_READ_REG32(db_base_addr, FPWM_DB_DLY_OFFSET); reg_val = FPWM_READ_REG32(db_base_addr, FPWM_DB_DLY_OFFSET);
reg_val &= (~FPWM_DB_DLY_RISE_MASK); reg_val &= (~FPWM_DB_DLY_RISE_MASK);
reg_val |= (u32)(rise_edge_delay & FPWM_DB_DLY_RISE_MASK); reg_val |= (u32)(rise_edge_delay & FPWM_DB_DLY_RISE_MASK);

2
drivers/qspi/fqspi/fqspi_flash.c

@ -123,7 +123,7 @@ FError FQspiFlashDetect(FQspiCtrl *pctrl)
* @param {FQspiCtrl} *pctrl, instance of FQSPI controller * @param {FQspiCtrl} *pctrl, instance of FQSPI controller
* @return {FError} err code information, FQSPI_SUCCESS indicates successothers indicates failed * @return {FError} err code information, FQSPI_SUCCESS indicates successothers indicates failed
*/ */
static FError FQspiFlashReset(FQspiCtrl *pctrl) _UNUSED static FError FQspiFlashReset(FQspiCtrl *pctrl)
{ {
FASSERT(pctrl); FASSERT(pctrl);
FError ret = FQSPI_SUCCESS; FError ret = FQSPI_SUCCESS;

2
drivers/scmi/fscmi_mhu/fscmi.c

@ -47,7 +47,6 @@ FError FScmiDoTransport(FScmi *instance_p,struct FScmiTransferInfo *info, u32 pr
{ {
FError ret; FError ret;
u32 tx_done = 0; u32 tx_done = 0;
u32 chan_status = 0;
u32 delay_out = 0; u32 delay_out = 0;
FMhuConfig *mhu_config = &instance_p->scmi_mhu.mhu.config; FMhuConfig *mhu_config = &instance_p->scmi_mhu.mhu.config;
@ -63,7 +62,6 @@ FError FScmiDoTransport(FScmi *instance_p,struct FScmiTransferInfo *info, u32 pr
{ {
instance_p->scmi_mhu.send_data(mhu_config->base_addr,mhu_config->mhu_chan_id); instance_p->scmi_mhu.send_data(mhu_config->base_addr,mhu_config->mhu_chan_id);
} }
chan_status = FMhuGetChanStatus(mhu_config->base_addr);
/* 等待发送完成 */ /* 等待发送完成 */
while (tx_done == 0) while (tx_done == 0)
{ {

8
drivers/scmi/fscmi_mhu/fscmi_perf.c

@ -157,12 +157,12 @@ static FError FScmiPerfDomainAttributesGet(FScmi *instance_p, u32 domain, struct
dom_info->mult_factor = dom_info->mult_factor =
(dom_info->sustained_freq_khz * 1000) / (dom_info->sustained_freq_khz * 1000) /
dom_info->sustained_perf_level; dom_info->sustained_perf_level;
strlcpy(dom_info->name, attr->name, FSCMI_MAX_STR_SIZE); strlcpy(dom_info->name, (char *)attr->name, FSCMI_MAX_STR_SIZE);
return FT_SUCCESS; return FT_SUCCESS;
} }
static int opp_cmp_func(const void *opp1, const void *opp2) _UNUSED static int opp_cmp_func(const void *opp1, const void *opp2)
{ {
const struct FScmiOpp *t1 = opp1, *t2 = opp2; const struct FScmiOpp *t1 = opp1, *t2 = opp2;
@ -241,7 +241,7 @@ static FError FScmiPerfDescribeLevelsGet(FScmi *instance_p, u32 domain, struct F
return FT_SUCCESS; return FT_SUCCESS;
} }
static FError FScmiPerfLimitsSet(FScmi *instance_p, u32 domain, u32 max_perf, u32 min_perf) _UNUSED static FError FScmiPerfLimitsSet(FScmi *instance_p, u32 domain, u32 max_perf, u32 min_perf)
{ {
FASSERT(instance_p != NULL); FASSERT(instance_p != NULL);
FASSERT(instance_p->is_ready == FT_COMPONENT_IS_READY); FASSERT(instance_p->is_ready == FT_COMPONENT_IS_READY);
@ -283,7 +283,7 @@ static FError FScmiPerfLimitsSet(FScmi *instance_p, u32 domain, u32 max_perf, u3
return FT_SUCCESS; return FT_SUCCESS;
} }
static FError FScmiPerfLimitsGet(FScmi *instance_p, u32 domain, u32 *max_perf, u32 *min_perf) _UNUSED static FError FScmiPerfLimitsGet(FScmi *instance_p, u32 domain, u32 *max_perf, u32 *min_perf)
{ {
FASSERT(instance_p != NULL); FASSERT(instance_p != NULL);
FASSERT(max_perf != NULL); FASSERT(max_perf != NULL);

7
drivers/scmi/fscmi_mhu/fscmi_sensors.c

@ -162,7 +162,7 @@ static FError FScmiSensorDescriptionGet(FScmi *instance_p,struct FScmiSensorsInf
s = &si->sensor_info[desc_index + cnt]; s = &si->sensor_info[desc_index + cnt];
s->id = (u32)(buf->desc[cnt].id); s->id = (u32)(buf->desc[cnt].id);
s->type = SENSOR_TYPE(attrh); s->type = SENSOR_TYPE(attrh);
strlcpy(s->name, buf->desc[cnt].name, FSCMI_MAX_STR_SIZE); strlcpy(s->name, (char *)buf->desc[cnt].name, FSCMI_MAX_STR_SIZE);
FSCMI_SENSOR_INFO("DescriptionGet:id:%d,type:%d,name:%s.\n",s->id,s->type,s->name); FSCMI_SENSOR_INFO("DescriptionGet:id:%d,type:%d,name:%s.\n",s->id,s->type,s->name);
} }
@ -175,7 +175,7 @@ static FError FScmiSensorDescriptionGet(FScmi *instance_p,struct FScmiSensorsInf
return ret; return ret;
} }
static int FScmiSensorsTripPointSet(FScmi *instance_p,u32 sensor_id, u8 trip_id, u64 trip_value) _UNUSED static int FScmiSensorsTripPointSet(FScmi *instance_p,u32 sensor_id, u8 trip_id, u64 trip_value)
{ {
FError ret; FError ret;
u32 evt_cntl = SENSOR_TP_BOTH; u32 evt_cntl = SENSOR_TP_BOTH;
@ -212,7 +212,7 @@ static int FScmiSensorsTripPointSet(FScmi *instance_p,u32 sensor_id, u8 trip_id,
return FT_SUCCESS; return FT_SUCCESS;
} }
static FError FScmiSensorsConfigurationSet(FScmi *instance_p,u32 sensor_id) _UNUSED static FError FScmiSensorsConfigurationSet(FScmi *instance_p,u32 sensor_id)
{ {
FError ret; FError ret;
u32 evt_cntl = BIT(0); u32 evt_cntl = BIT(0);
@ -324,7 +324,6 @@ FError FScmiSensorGetTemp(FScmi *instance_p, u32 sensor_id,s64 *temp)
*/ */
FError FScmiSensorInit(FScmi *instance_p) FError FScmiSensorInit(FScmi *instance_p)
{ {
u32 version;
struct FScmiSensorsInfo *sinfo; struct FScmiSensorsInfo *sinfo;
sinfo = &instance_p->sensors; sinfo = &instance_p->sensors;

90
drivers/spi/fspim/fspim.c

@ -26,7 +26,6 @@
* 1.4 huangjin 2023/12/26 adaptive pd2308 * 1.4 huangjin 2023/12/26 adaptive pd2308
*/ */
/***************************** Include Files *********************************/ /***************************** Include Files *********************************/
#include <string.h> #include <string.h>
@ -51,19 +50,6 @@
/************************** Function Prototypes ******************************/ /************************** Function Prototypes ******************************/
FError FSpimReset(FSpim *instance_p); FError FSpimReset(FSpim *instance_p);
/************************** Variable Definitions *****************************/
static const char *FSPIM_ERROR_CODE_MSG[FSPIM_NUM_OF_ERR_CODE] =
{
"FSPIM_SUCCESS : The fspim was successful",
"FSPIM_ERR_INVAL_STATE : The fspim invalid state",
"FSPIM_ERR_NOT_READY : The fspim driver is not ready",
"FSPIM_ERR_INVAL_PARAM : The fspim input parameter is invalid",
"FSPIM_ERR_BUS_BUSY : The fspim bus is busy",
"FSPIM_ERR_NOT_SUPPORT : Operations are not supported by fspim",
"FSPIM_ERR_TIMEOUT : The fspim waits for a timeout",
"FSPIM_ERR_TRANS_FAIL : The fspim data transmission failed",
};
/*****************************************************************************/ /*****************************************************************************/
@ -181,42 +167,29 @@ FError FSpimReset(FSpim *instance_p)
if (0 == instance_p->tx_fifo_len) if (0 == instance_p->tx_fifo_len)
{ {
fifo = FSpimGetTxFifoDepth(base_addr); /* 检测fifo深度 */ fifo = FSpimGetTxFifoDepth(base_addr); /* 检测fifo深度 */
instance_p->tx_fifo_len = ((fifo == 1) ? 0 : fifo); instance_p->tx_fifo_len = fifo;
FSPIM_INFO("The fifo depth is %d ,tx effective length bits %d", fifo, instance_p->tx_fifo_len); FSPIM_INFO("The fifo depth is %d ,tx effective length bits %d", fifo, instance_p->tx_fifo_len);
} }
if (0 == instance_p->rx_fifo_len) if (0 == instance_p->rx_fifo_len)
{ {
fifo = FSpimGetRxFifoDepth(base_addr); fifo = FSpimGetRxFifoDepth(base_addr);
instance_p->rx_fifo_len = ((fifo == 1) ? 0 : fifo); instance_p->rx_fifo_len = fifo;
FSPIM_INFO("The fifo depth is %d ,rx effective length bits %d", fifo, instance_p->rx_fifo_len); FSPIM_INFO("The fifo depth is %d ,rx effective length bits %d", fifo, instance_p->rx_fifo_len);
} }
FSPIM_WRITE_REG32(base_addr, FSPIM_DMA_CR_OFFSET, 0x0); /* disable ddma */ FSPIM_WRITE_REG32(base_addr, FSPIM_DMA_CR_OFFSET, 0x0); /* disable ddma */
if (instance_p->config.en_dma) if(instance_p->config.trans_way == TRANS_WAY_DDMA)
{ {
/* recv data in continuous way */ instance_p->config.en_dma = TRUE;
FSpimSetCtrlR1(base_addr, FSPIM_CTRL_R1_NDF_64KB);
/* setup fifo threshold */
FSpimSetRxFifoThreshold(base_addr, instance_p->rx_fifo_len);
FSpimSetTxFifoThreshold(base_addr, instance_p->tx_fifo_len);
/* setup fifo DMA level to trigger interrupt */
FSpimSetRxDMALevel(base_addr, FSPIM_RX_DMA_LEVEL);
FSpimSetTxDMALevel(base_addr, FSPIM_TX_DMA_LEVEL);
}
else
{
FSpimSetCtrlR1(base_addr, 0);
FSpimSetRxFifoThreshold(base_addr, 0);
FSpimSetTxFifoThreshold(base_addr, 0);
FSpimSetRxDMALevel(base_addr, 0);
FSpimSetTxDMALevel(base_addr, 0);
} }
FSpimSetCtrlR1(base_addr, 0);
FSpimSetRxFifoThreshold(base_addr, instance_p->config.rx_fifo_threshold);
FSpimSetTxFifoThreshold(base_addr, instance_p->config.tx_fifo_threshold);
FSpimSetRxDMALevel(base_addr, instance_p->config.rx_dma_level);
FSpimSetTxDMALevel(base_addr, instance_p->config.tx_dma_level);
ret = FSpimSetSpeed(base_addr, instance_p->config.freq_hz); ret = FSpimSetSpeed(base_addr, instance_p->config.freq_hz);
if (FSPIM_SUCCESS != ret) if (FSPIM_SUCCESS != ret)
@ -224,7 +197,7 @@ FError FSpimReset(FSpim *instance_p)
return ret; return ret;
} }
FSPIM_WRITE_REG32(base_addr, FSPIM_RX_SAMPLE_DLY_OFFSET, FSPIM_DEFAULT_RSD); FSPIM_WRITE_REG32(base_addr, FSPIM_RX_SAMPLE_DLY_OFFSET, 0);
return ret; return ret;
} }
@ -377,7 +350,8 @@ static fsize_t FSpimGetTxRound(FSpim *instance_p)
FSpimGetTxFifoLevel(base_addr); FSpimGetTxFifoLevel(base_addr);
rx_tx_gap = ((fsize_t)(instance_p->length - instance_p->rx_count) - rx_tx_gap = ((fsize_t)(instance_p->length - instance_p->rx_count) -
(fsize_t)(instance_p->length - instance_p->tx_count)) / data_width; (fsize_t)(instance_p->length - instance_p->tx_count)) /
data_width;
FSPIM_DEBUG("tx_left_round: %d, tx_fifo_room: %d, gap: %d, instance_p->tx_count: %ld", FSPIM_DEBUG("tx_left_round: %d, tx_fifo_room: %d, gap: %d, instance_p->tx_count: %ld",
tx_left_round, tx_left_round,
@ -415,7 +389,7 @@ void FSpimFifoTx(FSpim *instance_p)
while (tx_round) while (tx_round)
{ {
if(instance_p->tx_buff) if (instance_p->tx_buff)
{ {
if (FSPIM_1_BYTE == data_width) if (FSPIM_1_BYTE == data_width)
{ {
@ -457,7 +431,7 @@ static fsize_t FSpimGetRxRound(FSpim *instance_p)
fsize_t rx_left_round = (fsize_t)(instance_p->length - instance_p->rx_count) / data_width; fsize_t rx_left_round = (fsize_t)(instance_p->length - instance_p->rx_count) / data_width;
FSPIM_DEBUG("left round %d, rx level %d,instance_p->rx_count %ld", rx_left_round, FSpimGetRxFifoLevel(base_addr),instance_p->rx_count); FSPIM_DEBUG("left round %d, rx level %d,instance_p->rx_count %ld", rx_left_round, FSpimGetRxFifoLevel(base_addr), instance_p->rx_count);
return min(rx_left_round, (fsize_t)FSpimGetRxFifoLevel(base_addr)); return min(rx_left_round, (fsize_t)FSpimGetRxFifoLevel(base_addr));
} }
@ -478,7 +452,7 @@ void FSpimFifoRx(FSpim *instance_p)
while (rx_round) while (rx_round)
{ {
data = FSpimReadData(base_addr); data = FSpimReadData(base_addr);
if(instance_p->rx_buff) if (instance_p->rx_buff)
{ {
if (FSPIM_1_BYTE == data_width) if (FSPIM_1_BYTE == data_width)
{ {
@ -534,7 +508,7 @@ FError FSpimTransferPollFifo(FSpim *instance_p, const void *tx_buf, void *rx_buf
FSPIM_ERROR("The device is not initialized!!!"); FSPIM_ERROR("The device is not initialized!!!");
return FSPIM_ERR_NOT_READY; return FSPIM_ERR_NOT_READY;
} }
FSPIM_DEBUG("buff address rx= %x, tx=%x\r\n", rx_buf,tx_buf); FSPIM_DEBUG("buff address rx= %x, tx=%x\r\n", rx_buf, tx_buf);
FSpimSetEnable(base_addr, FALSE); FSpimSetEnable(base_addr, FALSE);
reg_val = FSpimGetCtrlR0(base_addr); reg_val = FSpimGetCtrlR0(base_addr);
@ -569,13 +543,12 @@ FError FSpimTransferPollFifo(FSpim *instance_p, const void *tx_buf, void *rx_buf
instance_p->rx_buff, len); instance_p->rx_buff, len);
FSpimSetEnable(base_addr, TRUE); FSpimSetEnable(base_addr, TRUE);
do do
{ {
FSpimFifoTx(instance_p); FSpimFifoTx(instance_p);
FSpimFifoRx(instance_p); FSpimFifoRx(instance_p);
}
while(instance_p->tx_count < len || instance_p->rx_count < len); } while (instance_p->tx_count < len || instance_p->rx_count < len);
return ret; return ret;
} }
@ -632,7 +605,7 @@ FError FSpimTransferByInterrupt(FSpim *instance_p, const void *tx_buf, void *rx_
instance_p->tx_buff = tx_buf; instance_p->tx_buff = tx_buf;
instance_p->rx_buff = rx_buf; instance_p->rx_buff = rx_buf;
/* 设置中断触发的时机,fifo填满一半,或者所有的数据填完 */ /* 设置中断触发的时机,fifo填满一半,或者所有的数据填完 */
tx_level = min(instance_p->tx_fifo_len / 2, instance_p->length / data_width); tx_level = min(instance_p->tx_fifo_len / 2 + 1, instance_p->length / data_width);
FSpimSetTxFifoThreshold(base_addr, tx_level); FSpimSetTxFifoThreshold(base_addr, tx_level);
FSpimUmaskIrq(base_addr, FSPIM_IMR_TXEIS | FSPIM_IMR_TXOIS | FSPIM_IMR_RXUIS | FSPIM_IMR_RXOIS); FSpimUmaskIrq(base_addr, FSPIM_IMR_TXEIS | FSPIM_IMR_TXOIS | FSPIM_IMR_RXUIS | FSPIM_IMR_RXOIS);
@ -660,7 +633,6 @@ FError FSpimTransferDMA(FSpim *instance_p)
/* disable ddma */ /* disable ddma */
FSpimDisenableDdmaChannel(base_addr); FSpimDisenableDdmaChannel(base_addr);
if (FT_COMPONENT_IS_READY != instance_p->is_ready) if (FT_COMPONENT_IS_READY != instance_p->is_ready)
{ {
FSPIM_ERROR("device is not yet initialized!!!"); FSPIM_ERROR("device is not yet initialized!!!");
@ -730,27 +702,3 @@ void FSpimSetChipSelection(FSpim *instance_p, boolean on)
return; return;
} }
/**
* @name: FSpimErrorToMessage
* @msg: FSPIM模块错误码对应的错误信息
* @return {const char *}, NULL表示失败
* @param {FError} error, FSPIM输入错误码
*/
const char *FSpimErrorToMessage(FError error)
{
const char *msg = NULL;
if ((FSPIM_SUCCESS != error) && (FSPIM_ERR_CODE_PREFIX != (error & (FT_ERRCODE_SYS_MODULE_MASK | FT_ERRCODE_SUB_MODULE_MASK))))
{
/* if input error do not belong to this module */
return msg;
}
u32 index = error & FT_ERRCODE_TAIL_VALUE_MASK;
if (index < FSPIM_NUM_OF_ERR_CODE)
{
msg = FSPIM_ERROR_CODE_MSG[index];
}
return msg;
}

18
drivers/spi/fspim/fspim.h

@ -53,8 +53,6 @@ extern "C"
#define FSPIM_ERR_TRANS_FAIL FT_MAKE_ERRCODE(ErrModBsp, ErrBspSpi, 6) #define FSPIM_ERR_TRANS_FAIL FT_MAKE_ERRCODE(ErrModBsp, ErrBspSpi, 6)
#define FSPIM_ERR_DMA_INIT FT_MAKE_ERRCODE(ErrModBsp, ErrBspSpi, 6) #define FSPIM_ERR_DMA_INIT FT_MAKE_ERRCODE(ErrModBsp, ErrBspSpi, 6)
/* add up new error code above and plust FSPIM_ERR_CODE_MAX by ONE*/
#define FSPIM_ERR_CODE_PREFIX (FSPIM_ERR_TRANS_FAIL & (FT_ERRCODE_SYS_MODULE_MASK | FT_ERRCODE_SUB_MODULE_MASK))
#define FSPIM_NUM_OF_ERR_CODE 8 #define FSPIM_NUM_OF_ERR_CODE 8
typedef enum typedef enum
@ -128,6 +126,14 @@ typedef enum
FSPIM_SLAVE_ID_OPTION, /* 修改config中的slave id,并激活控制器相应片选 */ FSPIM_SLAVE_ID_OPTION, /* 修改config中的slave id,并激活控制器相应片选 */
} FSpimOption; } FSpimOption;
typedef enum
{
TRANS_WAY_POLL = 0,
TRANS_WAY_INTERRUPT,
TRANS_WAY_DDMA,
TRANS_WAY_END
} FSpimTransWay;
/**************************** Type Definitions *******************************/ /**************************** Type Definitions *******************************/
/** /**
@ -148,6 +154,11 @@ typedef struct
boolean en_test; /* Enable test mode */ boolean en_test; /* Enable test mode */
boolean en_dma; /* Enable DMA */ boolean en_dma; /* Enable DMA */
u32 caps; u32 caps;
FSpimTransWay trans_way; /*transfer way: poll, interrupt, ddma*/
u32 tx_fifo_threshold;
u32 rx_fifo_threshold;
u32 rx_dma_level;
u32 tx_dma_level;
} FSpimConfig; } FSpimConfig;
typedef void (*FSpimEvtHandler)(void *instance_p, void *param); typedef void (*FSpimEvtHandler)(void *instance_p, void *param);
@ -203,9 +214,6 @@ FError FSpimTransferDMA(FSpim *instance_p);
/* 控制片选信号 */ /* 控制片选信号 */
void FSpimSetChipSelection(FSpim *instance_p, boolean on); void FSpimSetChipSelection(FSpim *instance_p, boolean on);
/* 获取FSPIM模块错误码对应的错误信息 */
const char *FSpimErrorToMessage(FError error);
/* fspim_intr.c */ /* fspim_intr.c */
/* 先发送后接收数据 (中断处理),利用Fifo进行处理 */ /* 先发送后接收数据 (中断处理),利用Fifo进行处理 */
FError FSpimTransferByInterrupt(FSpim *instance_p, const void *tx_buf, void *rx_buf, fsize_t len); FError FSpimTransferByInterrupt(FSpim *instance_p, const void *tx_buf, void *rx_buf, fsize_t len);

25
drivers/spi/fspim/fspim_g.c

@ -55,7 +55,12 @@ const FSpimConfig FSPIM_CONFIG_TBL[FSPI_NUM] =
.n_bytes = 1, .n_bytes = 1,
.en_test = FALSE, .en_test = FALSE,
.en_dma = FALSE, .en_dma = FALSE,
.caps = FSPIM0_DMA_CAPACITY .caps = FSPIM0_DMA_CAPACITY,
.tx_fifo_threshold = 0,
.rx_fifo_threshold = 0,
.rx_dma_level = FSPIM_RX_DMA_LEVEL,
.tx_dma_level = FSPIM_TX_DMA_LEVEL,
}, },
[FSPI1_ID] = [FSPI1_ID] =
{ {
@ -69,7 +74,11 @@ const FSpimConfig FSPIM_CONFIG_TBL[FSPI_NUM] =
.n_bytes = 1, .n_bytes = 1,
.en_test = FALSE, .en_test = FALSE,
.en_dma = FALSE, .en_dma = FALSE,
.caps = FSPIM1_DMA_CAPACITY .caps = FSPIM1_DMA_CAPACITY,
.tx_fifo_threshold = 0,
.rx_fifo_threshold = 0,
.rx_dma_level = FSPIM_RX_DMA_LEVEL,
.tx_dma_level = FSPIM_TX_DMA_LEVEL,
}, },
#if defined(FSPI2_ID) #if defined(FSPI2_ID)
[FSPI2_ID] = [FSPI2_ID] =
@ -84,7 +93,11 @@ const FSpimConfig FSPIM_CONFIG_TBL[FSPI_NUM] =
.n_bytes = 1, .n_bytes = 1,
.en_test = FALSE, .en_test = FALSE,
.en_dma = FALSE, .en_dma = FALSE,
.caps = FSPIM2_DMA_CAPACITY .caps = FSPIM2_DMA_CAPACITY,
.tx_fifo_threshold = 0,
.rx_fifo_threshold = 0,
.rx_dma_level = FSPIM_RX_DMA_LEVEL,
.tx_dma_level = FSPIM_TX_DMA_LEVEL,
}, },
#endif #endif
@ -101,7 +114,11 @@ const FSpimConfig FSPIM_CONFIG_TBL[FSPI_NUM] =
.n_bytes = 1, .n_bytes = 1,
.en_test = FALSE, .en_test = FALSE,
.en_dma = FALSE, .en_dma = FALSE,
.caps = FSPIM3_DMA_CAPACITY .caps = FSPIM3_DMA_CAPACITY,
.tx_fifo_threshold = 0,
.rx_fifo_threshold = 0,
.rx_dma_level = FSPIM_RX_DMA_LEVEL,
.tx_dma_level = FSPIM_TX_DMA_LEVEL,
}, },
#endif #endif
}; };

6
drivers/spi/fspim/fspim_hw.h

@ -127,6 +127,8 @@ enum
#define FSPIM_CTRL_R1_NDF(x) (GENMASK(15, 0) & ((x) << 0)) #define FSPIM_CTRL_R1_NDF(x) (GENMASK(15, 0) & ((x) << 0))
#define FSPIM_CTRL_R1_NDF_64KB 0b11 #define FSPIM_CTRL_R1_NDF_64KB 0b11
#define FSPIM_CTRL_R1_NDF_MAX 0x10000
/** @name FSPIM_SSIENR_OFFSET Register /** @name FSPIM_SSIENR_OFFSET Register
*/ */
#define FSPIM_SSIENR_SSI_EN(x) ((x) << 0) /* SPI 使能启用和禁用所有 SPI 操作 */ #define FSPIM_SSIENR_SSI_EN(x) ((x) << 0) /* SPI 使能启用和禁用所有 SPI 操作 */
@ -287,8 +289,8 @@ enum
#define FSPIM_MAX_FIFO_DEPTH 256 #define FSPIM_MAX_FIFO_DEPTH 256
#define FSPIM_TIMEOUT 256 #define FSPIM_TIMEOUT 256
#define FSPIM_TX_DMA_LEVEL 0x10 #define FSPIM_TX_DMA_LEVEL 0x0
#define FSPIM_RX_DMA_LEVEL 0xf #define FSPIM_RX_DMA_LEVEL 0x0
#define FSPIM_ONE_BYTE_DATA_MASK 0xff #define FSPIM_ONE_BYTE_DATA_MASK 0xff
#define FSPIM_TWO_BYTE_DATA_MASK 0xffff #define FSPIM_TWO_BYTE_DATA_MASK 0xffff

4
example/ai/tinymaix/configs/d2000_aarch32_test_tinymaix.config

@ -183,9 +183,9 @@ CONFIG_OUTPUT_BINARY=y
# #
# Optimization options # Optimization options
# #
# CONFIG_DEBUG_NOOPT is not set CONFIG_DEBUG_NOOPT=y
# CONFIG_DEBUG_CUSTOMOPT is not set # CONFIG_DEBUG_CUSTOMOPT is not set
CONFIG_DEBUG_FULLOPT=y # CONFIG_DEBUG_FULLOPT is not set
CONFIG_DEBUG_OPT_UNUSED_SECTIONS=y CONFIG_DEBUG_OPT_UNUSED_SECTIONS=y
CONFIG_DEBUG_LINK_MAP=y CONFIG_DEBUG_LINK_MAP=y
# CONFIG_CCACHE is not set # CONFIG_CCACHE is not set

4
example/ai/tinymaix/configs/d2000_aarch64_test_tinymaix.config

@ -177,9 +177,9 @@ CONFIG_OUTPUT_BINARY=y
# #
# Optimization options # Optimization options
# #
# CONFIG_DEBUG_NOOPT is not set CONFIG_DEBUG_NOOPT=y
# CONFIG_DEBUG_CUSTOMOPT is not set # CONFIG_DEBUG_CUSTOMOPT is not set
CONFIG_DEBUG_FULLOPT=y # CONFIG_DEBUG_FULLOPT is not set
CONFIG_DEBUG_OPT_UNUSED_SECTIONS=y CONFIG_DEBUG_OPT_UNUSED_SECTIONS=y
CONFIG_DEBUG_LINK_MAP=y CONFIG_DEBUG_LINK_MAP=y
# CONFIG_CCACHE is not set # CONFIG_CCACHE is not set

4
example/ai/tinymaix/configs/e2000d_aarch32_demo_tinymaix.config

@ -196,9 +196,9 @@ CONFIG_OUTPUT_BINARY=y
# #
# Optimization options # Optimization options
# #
# CONFIG_DEBUG_NOOPT is not set CONFIG_DEBUG_NOOPT=y
# CONFIG_DEBUG_CUSTOMOPT is not set # CONFIG_DEBUG_CUSTOMOPT is not set
CONFIG_DEBUG_FULLOPT=y # CONFIG_DEBUG_FULLOPT is not set
CONFIG_DEBUG_OPT_UNUSED_SECTIONS=y CONFIG_DEBUG_OPT_UNUSED_SECTIONS=y
CONFIG_DEBUG_LINK_MAP=y CONFIG_DEBUG_LINK_MAP=y
# CONFIG_CCACHE is not set # CONFIG_CCACHE is not set

4
example/ai/tinymaix/configs/e2000d_aarch64_demo_tinymaix.config

@ -190,9 +190,9 @@ CONFIG_OUTPUT_BINARY=y
# #
# Optimization options # Optimization options
# #
# CONFIG_DEBUG_NOOPT is not set CONFIG_DEBUG_NOOPT=y
# CONFIG_DEBUG_CUSTOMOPT is not set # CONFIG_DEBUG_CUSTOMOPT is not set
CONFIG_DEBUG_FULLOPT=y # CONFIG_DEBUG_FULLOPT is not set
CONFIG_DEBUG_OPT_UNUSED_SECTIONS=y CONFIG_DEBUG_OPT_UNUSED_SECTIONS=y
CONFIG_DEBUG_LINK_MAP=y CONFIG_DEBUG_LINK_MAP=y
# CONFIG_CCACHE is not set # CONFIG_CCACHE is not set

4
example/ai/tinymaix/configs/e2000q_aarch32_demo_tinymaix.config

@ -195,9 +195,9 @@ CONFIG_OUTPUT_BINARY=y
# #
# Optimization options # Optimization options
# #
# CONFIG_DEBUG_NOOPT is not set CONFIG_DEBUG_NOOPT=y
# CONFIG_DEBUG_CUSTOMOPT is not set # CONFIG_DEBUG_CUSTOMOPT is not set
CONFIG_DEBUG_FULLOPT=y # CONFIG_DEBUG_FULLOPT is not set
CONFIG_DEBUG_OPT_UNUSED_SECTIONS=y CONFIG_DEBUG_OPT_UNUSED_SECTIONS=y
CONFIG_DEBUG_LINK_MAP=y CONFIG_DEBUG_LINK_MAP=y
# CONFIG_CCACHE is not set # CONFIG_CCACHE is not set

4
example/ai/tinymaix/configs/e2000q_aarch64_demo_tinymaix.config

@ -189,9 +189,9 @@ CONFIG_OUTPUT_BINARY=y
# #
# Optimization options # Optimization options
# #
# CONFIG_DEBUG_NOOPT is not set CONFIG_DEBUG_NOOPT=y
# CONFIG_DEBUG_CUSTOMOPT is not set # CONFIG_DEBUG_CUSTOMOPT is not set
CONFIG_DEBUG_FULLOPT=y # CONFIG_DEBUG_FULLOPT is not set
CONFIG_DEBUG_OPT_UNUSED_SECTIONS=y CONFIG_DEBUG_OPT_UNUSED_SECTIONS=y
CONFIG_DEBUG_LINK_MAP=y CONFIG_DEBUG_LINK_MAP=y
# CONFIG_CCACHE is not set # CONFIG_CCACHE is not set

4
example/ai/tinymaix/configs/ft2004_aarch32_dsk_tinymaix.config

@ -183,9 +183,9 @@ CONFIG_OUTPUT_BINARY=y
# #
# Optimization options # Optimization options
# #
# CONFIG_DEBUG_NOOPT is not set CONFIG_DEBUG_NOOPT=y
# CONFIG_DEBUG_CUSTOMOPT is not set # CONFIG_DEBUG_CUSTOMOPT is not set
CONFIG_DEBUG_FULLOPT=y # CONFIG_DEBUG_FULLOPT is not set
CONFIG_DEBUG_OPT_UNUSED_SECTIONS=y CONFIG_DEBUG_OPT_UNUSED_SECTIONS=y
CONFIG_DEBUG_LINK_MAP=y CONFIG_DEBUG_LINK_MAP=y
# CONFIG_CCACHE is not set # CONFIG_CCACHE is not set

4
example/ai/tinymaix/configs/ft2004_aarch64_dsk_tinymaix.config

@ -177,9 +177,9 @@ CONFIG_OUTPUT_BINARY=y
# #
# Optimization options # Optimization options
# #
# CONFIG_DEBUG_NOOPT is not set CONFIG_DEBUG_NOOPT=y
# CONFIG_DEBUG_CUSTOMOPT is not set # CONFIG_DEBUG_CUSTOMOPT is not set
CONFIG_DEBUG_FULLOPT=y # CONFIG_DEBUG_FULLOPT is not set
CONFIG_DEBUG_OPT_UNUSED_SECTIONS=y CONFIG_DEBUG_OPT_UNUSED_SECTIONS=y
CONFIG_DEBUG_LINK_MAP=y CONFIG_DEBUG_LINK_MAP=y
# CONFIG_CCACHE is not set # CONFIG_CCACHE is not set

4
example/ai/tinymaix/configs/pd2308_aarch64_demo_tinymaix.config

@ -186,9 +186,9 @@ CONFIG_OUTPUT_BINARY=y
# #
# Optimization options # Optimization options
# #
# CONFIG_DEBUG_NOOPT is not set CONFIG_DEBUG_NOOPT=y
# CONFIG_DEBUG_CUSTOMOPT is not set # CONFIG_DEBUG_CUSTOMOPT is not set
CONFIG_DEBUG_FULLOPT=y # CONFIG_DEBUG_FULLOPT is not set
CONFIG_DEBUG_OPT_UNUSED_SECTIONS=y CONFIG_DEBUG_OPT_UNUSED_SECTIONS=y
CONFIG_DEBUG_LINK_MAP=y CONFIG_DEBUG_LINK_MAP=y
# CONFIG_CCACHE is not set # CONFIG_CCACHE is not set

4
example/ai/tinymaix/configs/phytiumpi_aarch32_firefly_tinymaix.config

@ -194,9 +194,9 @@ CONFIG_OUTPUT_BINARY=y
# #
# Optimization options # Optimization options
# #
# CONFIG_DEBUG_NOOPT is not set CONFIG_DEBUG_NOOPT=y
# CONFIG_DEBUG_CUSTOMOPT is not set # CONFIG_DEBUG_CUSTOMOPT is not set
CONFIG_DEBUG_FULLOPT=y # CONFIG_DEBUG_FULLOPT is not set
CONFIG_DEBUG_OPT_UNUSED_SECTIONS=y CONFIG_DEBUG_OPT_UNUSED_SECTIONS=y
CONFIG_DEBUG_LINK_MAP=y CONFIG_DEBUG_LINK_MAP=y
# CONFIG_CCACHE is not set # CONFIG_CCACHE is not set

4
example/ai/tinymaix/configs/phytiumpi_aarch64_firefly_tinymaix.config

@ -188,9 +188,9 @@ CONFIG_OUTPUT_BINARY=y
# #
# Optimization options # Optimization options
# #
# CONFIG_DEBUG_NOOPT is not set CONFIG_DEBUG_NOOPT=y
# CONFIG_DEBUG_CUSTOMOPT is not set # CONFIG_DEBUG_CUSTOMOPT is not set
CONFIG_DEBUG_FULLOPT=y # CONFIG_DEBUG_FULLOPT is not set
CONFIG_DEBUG_OPT_UNUSED_SECTIONS=y CONFIG_DEBUG_OPT_UNUSED_SECTIONS=y
CONFIG_DEBUG_LINK_MAP=y CONFIG_DEBUG_LINK_MAP=y
# CONFIG_CCACHE is not set # CONFIG_CCACHE is not set

4
example/ai/tinymaix/sdkconfig

@ -188,9 +188,9 @@ CONFIG_OUTPUT_BINARY=y
# #
# Optimization options # Optimization options
# #
# CONFIG_DEBUG_NOOPT is not set CONFIG_DEBUG_NOOPT=y
# CONFIG_DEBUG_CUSTOMOPT is not set # CONFIG_DEBUG_CUSTOMOPT is not set
CONFIG_DEBUG_FULLOPT=y # CONFIG_DEBUG_FULLOPT is not set
CONFIG_DEBUG_OPT_UNUSED_SECTIONS=y CONFIG_DEBUG_OPT_UNUSED_SECTIONS=y
CONFIG_DEBUG_LINK_MAP=y CONFIG_DEBUG_LINK_MAP=y
# CONFIG_CCACHE is not set # CONFIG_CCACHE is not set

4
example/ai/tinymaix/sdkconfig.h

@ -173,9 +173,9 @@
/* Optimization options */ /* Optimization options */
/* CONFIG_DEBUG_NOOPT is not set */ #define CONFIG_DEBUG_NOOPT
/* CONFIG_DEBUG_CUSTOMOPT is not set */ /* CONFIG_DEBUG_CUSTOMOPT is not set */
#define CONFIG_DEBUG_FULLOPT /* CONFIG_DEBUG_FULLOPT is not set */
#define CONFIG_DEBUG_OPT_UNUSED_SECTIONS #define CONFIG_DEBUG_OPT_UNUSED_SECTIONS
#define CONFIG_DEBUG_LINK_MAP #define CONFIG_DEBUG_LINK_MAP
/* CONFIG_CCACHE is not set */ /* CONFIG_CCACHE is not set */

4
example/media/lvgl_demo_test/configs/e2000d_aarch32_demo_media.config

@ -211,8 +211,8 @@ CONFIG_DEBUG_LINK_MAP=y
# #
# Debug options # Debug options
# #
# CONFIG_DEBUG_ENABLE_ALL_WARNING is not set CONFIG_DEBUG_ENABLE_ALL_WARNING=y
# CONFIG_WALL_WARNING_ERROR is not set CONFIG_WALL_WARNING_ERROR=y
# CONFIG_STRICT_PROTOTYPES is not set # CONFIG_STRICT_PROTOTYPES is not set
# CONFIG_DEBUG_SYMBOLS is not set # CONFIG_DEBUG_SYMBOLS is not set
# CONFIG_FRAME_POINTER is not set # CONFIG_FRAME_POINTER is not set

4
example/media/lvgl_demo_test/configs/e2000d_aarch64_demo_media.config

@ -205,8 +205,8 @@ CONFIG_DEBUG_LINK_MAP=y
# #
# Debug options # Debug options
# #
# CONFIG_DEBUG_ENABLE_ALL_WARNING is not set CONFIG_DEBUG_ENABLE_ALL_WARNING=y
# CONFIG_WALL_WARNING_ERROR is not set CONFIG_WALL_WARNING_ERROR=y
# CONFIG_STRICT_PROTOTYPES is not set # CONFIG_STRICT_PROTOTYPES is not set
# CONFIG_DEBUG_SYMBOLS is not set # CONFIG_DEBUG_SYMBOLS is not set
# CONFIG_FRAME_POINTER is not set # CONFIG_FRAME_POINTER is not set

4
example/media/lvgl_demo_test/configs/e2000q_aarch32_demo_media.config

@ -210,8 +210,8 @@ CONFIG_DEBUG_LINK_MAP=y
# #
# Debug options # Debug options
# #
# CONFIG_DEBUG_ENABLE_ALL_WARNING is not set CONFIG_DEBUG_ENABLE_ALL_WARNING=y
# CONFIG_WALL_WARNING_ERROR is not set CONFIG_WALL_WARNING_ERROR=y
# CONFIG_STRICT_PROTOTYPES is not set # CONFIG_STRICT_PROTOTYPES is not set
# CONFIG_DEBUG_SYMBOLS is not set # CONFIG_DEBUG_SYMBOLS is not set
# CONFIG_FRAME_POINTER is not set # CONFIG_FRAME_POINTER is not set

4
example/media/lvgl_demo_test/configs/e2000q_aarch64_demo_media.config

@ -204,8 +204,8 @@ CONFIG_DEBUG_LINK_MAP=y
# #
# Debug options # Debug options
# #
# CONFIG_DEBUG_ENABLE_ALL_WARNING is not set CONFIG_DEBUG_ENABLE_ALL_WARNING=y
# CONFIG_WALL_WARNING_ERROR is not set CONFIG_WALL_WARNING_ERROR=y
# CONFIG_STRICT_PROTOTYPES is not set # CONFIG_STRICT_PROTOTYPES is not set
# CONFIG_DEBUG_SYMBOLS is not set # CONFIG_DEBUG_SYMBOLS is not set
# CONFIG_FRAME_POINTER is not set # CONFIG_FRAME_POINTER is not set

4
example/media/lvgl_demo_test/configs/phytiumpi_aarch32_firefly_media.config

@ -209,8 +209,8 @@ CONFIG_DEBUG_LINK_MAP=y
# #
# Debug options # Debug options
# #
# CONFIG_DEBUG_ENABLE_ALL_WARNING is not set CONFIG_DEBUG_ENABLE_ALL_WARNING=y
# CONFIG_WALL_WARNING_ERROR is not set CONFIG_WALL_WARNING_ERROR=y
# CONFIG_STRICT_PROTOTYPES is not set # CONFIG_STRICT_PROTOTYPES is not set
# CONFIG_DEBUG_SYMBOLS is not set # CONFIG_DEBUG_SYMBOLS is not set
# CONFIG_FRAME_POINTER is not set # CONFIG_FRAME_POINTER is not set

4
example/media/lvgl_demo_test/configs/phytiumpi_aarch64_firefly_media.config

@ -203,8 +203,8 @@ CONFIG_DEBUG_LINK_MAP=y
# #
# Debug options # Debug options
# #
# CONFIG_DEBUG_ENABLE_ALL_WARNING is not set CONFIG_DEBUG_ENABLE_ALL_WARNING=y
# CONFIG_WALL_WARNING_ERROR is not set CONFIG_WALL_WARNING_ERROR=y
# CONFIG_STRICT_PROTOTYPES is not set # CONFIG_STRICT_PROTOTYPES is not set
# CONFIG_DEBUG_SYMBOLS is not set # CONFIG_DEBUG_SYMBOLS is not set
# CONFIG_FRAME_POINTER is not set # CONFIG_FRAME_POINTER is not set

4
example/media/lvgl_demo_test/sdkconfig

@ -203,8 +203,8 @@ CONFIG_DEBUG_LINK_MAP=y
# #
# Debug options # Debug options
# #
# CONFIG_DEBUG_ENABLE_ALL_WARNING is not set CONFIG_DEBUG_ENABLE_ALL_WARNING=y
# CONFIG_WALL_WARNING_ERROR is not set CONFIG_WALL_WARNING_ERROR=y
# CONFIG_STRICT_PROTOTYPES is not set # CONFIG_STRICT_PROTOTYPES is not set
# CONFIG_DEBUG_SYMBOLS is not set # CONFIG_DEBUG_SYMBOLS is not set
# CONFIG_FRAME_POINTER is not set # CONFIG_FRAME_POINTER is not set

4
example/media/lvgl_demo_test/sdkconfig.h

@ -184,8 +184,8 @@
/* Debug options */ /* Debug options */
/* CONFIG_DEBUG_ENABLE_ALL_WARNING is not set */ #define CONFIG_DEBUG_ENABLE_ALL_WARNING
/* CONFIG_WALL_WARNING_ERROR is not set */ #define CONFIG_WALL_WARNING_ERROR
/* CONFIG_STRICT_PROTOTYPES is not set */ /* CONFIG_STRICT_PROTOTYPES is not set */
/* CONFIG_DEBUG_SYMBOLS is not set */ /* CONFIG_DEBUG_SYMBOLS is not set */
/* CONFIG_FRAME_POINTER is not set */ /* CONFIG_FRAME_POINTER is not set */

2
example/media/lvgl_demo_test/src/lvgl_disp_test.c

@ -43,7 +43,7 @@
/************************** static definition ******************************/ /************************** static definition ******************************/
static FDcDp dcdp_config; static FDcDp dcdp_config;
static u8 *static_frame_buffer_address = (u8 *)0xa0000000 ; static u8 static_frame_buffer_address[1920 * 1080 * 4] __attribute__((aligned(128))) = {0};/*Framebuffer 大小 (字节) = 屏幕宽度 (像素) × 屏幕高度 (像素) × 每像素位数 (bpp) / 8*/
static void FMediaHpdBreakCallback(void *args, u32 index); static void FMediaHpdBreakCallback(void *args, u32 index);
static void FMediaHpdConnectCallback(void *args, u32 index); static void FMediaHpdConnectCallback(void *args, u32 index);

4
example/media/media_test/configs/e2000d_aarch32_demo_media.config

@ -211,8 +211,8 @@ CONFIG_DEBUG_LINK_MAP=y
# #
# Debug options # Debug options
# #
# CONFIG_DEBUG_ENABLE_ALL_WARNING is not set CONFIG_DEBUG_ENABLE_ALL_WARNING=y
# CONFIG_WALL_WARNING_ERROR is not set CONFIG_WALL_WARNING_ERROR=y
# CONFIG_STRICT_PROTOTYPES is not set # CONFIG_STRICT_PROTOTYPES is not set
# CONFIG_DEBUG_SYMBOLS is not set # CONFIG_DEBUG_SYMBOLS is not set
# CONFIG_FRAME_POINTER is not set # CONFIG_FRAME_POINTER is not set

4
example/media/media_test/configs/e2000d_aarch64_demo_media.config

@ -205,8 +205,8 @@ CONFIG_DEBUG_LINK_MAP=y
# #
# Debug options # Debug options
# #
# CONFIG_DEBUG_ENABLE_ALL_WARNING is not set CONFIG_DEBUG_ENABLE_ALL_WARNING=y
# CONFIG_WALL_WARNING_ERROR is not set CONFIG_WALL_WARNING_ERROR=y
# CONFIG_STRICT_PROTOTYPES is not set # CONFIG_STRICT_PROTOTYPES is not set
# CONFIG_DEBUG_SYMBOLS is not set # CONFIG_DEBUG_SYMBOLS is not set
# CONFIG_FRAME_POINTER is not set # CONFIG_FRAME_POINTER is not set

4
example/media/media_test/configs/e2000q_aarch32_demo_media.config

@ -210,8 +210,8 @@ CONFIG_DEBUG_LINK_MAP=y
# #
# Debug options # Debug options
# #
# CONFIG_DEBUG_ENABLE_ALL_WARNING is not set CONFIG_DEBUG_ENABLE_ALL_WARNING=y
# CONFIG_WALL_WARNING_ERROR is not set CONFIG_WALL_WARNING_ERROR=y
# CONFIG_STRICT_PROTOTYPES is not set # CONFIG_STRICT_PROTOTYPES is not set
# CONFIG_DEBUG_SYMBOLS is not set # CONFIG_DEBUG_SYMBOLS is not set
# CONFIG_FRAME_POINTER is not set # CONFIG_FRAME_POINTER is not set

4
example/media/media_test/configs/e2000q_aarch64_demo_media.config

@ -204,8 +204,8 @@ CONFIG_DEBUG_LINK_MAP=y
# #
# Debug options # Debug options
# #
# CONFIG_DEBUG_ENABLE_ALL_WARNING is not set CONFIG_DEBUG_ENABLE_ALL_WARNING=y
# CONFIG_WALL_WARNING_ERROR is not set CONFIG_WALL_WARNING_ERROR=y
# CONFIG_STRICT_PROTOTYPES is not set # CONFIG_STRICT_PROTOTYPES is not set
# CONFIG_DEBUG_SYMBOLS is not set # CONFIG_DEBUG_SYMBOLS is not set
# CONFIG_FRAME_POINTER is not set # CONFIG_FRAME_POINTER is not set

4
example/media/media_test/configs/phytiumpi_aarch32_firefly_media.config

@ -209,8 +209,8 @@ CONFIG_DEBUG_LINK_MAP=y
# #
# Debug options # Debug options
# #
# CONFIG_DEBUG_ENABLE_ALL_WARNING is not set CONFIG_DEBUG_ENABLE_ALL_WARNING=y
# CONFIG_WALL_WARNING_ERROR is not set CONFIG_WALL_WARNING_ERROR=y
# CONFIG_STRICT_PROTOTYPES is not set # CONFIG_STRICT_PROTOTYPES is not set
# CONFIG_DEBUG_SYMBOLS is not set # CONFIG_DEBUG_SYMBOLS is not set
# CONFIG_FRAME_POINTER is not set # CONFIG_FRAME_POINTER is not set

4
example/media/media_test/configs/phytiumpi_aarch64_firefly_media.config

@ -203,8 +203,8 @@ CONFIG_DEBUG_LINK_MAP=y
# #
# Debug options # Debug options
# #
# CONFIG_DEBUG_ENABLE_ALL_WARNING is not set CONFIG_DEBUG_ENABLE_ALL_WARNING=y
# CONFIG_WALL_WARNING_ERROR is not set CONFIG_WALL_WARNING_ERROR=y
# CONFIG_STRICT_PROTOTYPES is not set # CONFIG_STRICT_PROTOTYPES is not set
# CONFIG_DEBUG_SYMBOLS is not set # CONFIG_DEBUG_SYMBOLS is not set
# CONFIG_FRAME_POINTER is not set # CONFIG_FRAME_POINTER is not set

4
example/media/media_test/sdkconfig

@ -203,8 +203,8 @@ CONFIG_DEBUG_LINK_MAP=y
# #
# Debug options # Debug options
# #
# CONFIG_DEBUG_ENABLE_ALL_WARNING is not set CONFIG_DEBUG_ENABLE_ALL_WARNING=y
# CONFIG_WALL_WARNING_ERROR is not set CONFIG_WALL_WARNING_ERROR=y
# CONFIG_STRICT_PROTOTYPES is not set # CONFIG_STRICT_PROTOTYPES is not set
# CONFIG_DEBUG_SYMBOLS is not set # CONFIG_DEBUG_SYMBOLS is not set
# CONFIG_FRAME_POINTER is not set # CONFIG_FRAME_POINTER is not set

4
example/media/media_test/sdkconfig.h

@ -184,8 +184,8 @@
/* Debug options */ /* Debug options */
/* CONFIG_DEBUG_ENABLE_ALL_WARNING is not set */ #define CONFIG_DEBUG_ENABLE_ALL_WARNING
/* CONFIG_WALL_WARNING_ERROR is not set */ #define CONFIG_WALL_WARNING_ERROR
/* CONFIG_STRICT_PROTOTYPES is not set */ /* CONFIG_STRICT_PROTOTYPES is not set */
/* CONFIG_DEBUG_SYMBOLS is not set */ /* CONFIG_DEBUG_SYMBOLS is not set */
/* CONFIG_FRAME_POINTER is not set */ /* CONFIG_FRAME_POINTER is not set */

6
example/media/media_test/src/media_test_example.c

@ -42,9 +42,7 @@
/************************** Variable Definitions *****************************/ /************************** Variable Definitions *****************************/
static FDcDp dcdp_config; static FDcDp dcdp_config;
static GraphicsTest blt_buffer; static GraphicsTest blt_buffer;
static u8 static_frame_buffer_address[1920 * 1080 * 4] __attribute__((aligned(128))) = {0};/*Framebuffer 大小 (字节) = 屏幕宽度 (像素) × 屏幕高度 (像素) × 每像素位数 (bpp) / 8*/
static u8 *static_frame_buffer_address = (u8 *)0xa0000000 ;
static void FMediaHpdBreakCallback(void *args, u32 index); static void FMediaHpdBreakCallback(void *args, u32 index);
static void FMediaHpdConnectCallback(void *args, u32 index); static void FMediaHpdConnectCallback(void *args, u32 index);
static void FMediaAuxTimeoutCallback(void *args, u32 index); static void FMediaAuxTimeoutCallback(void *args, u32 index);
@ -60,7 +58,6 @@ void FMediaHpdDetect(void)
{ {
FDcDp *instance_p = &dcdp_config; FDcDp *instance_p = &dcdp_config;
u32 ret; u32 ret;
u32 mode_id;
u32 index; u32 index;
for (index = 0; index < FDCDP_INSTANCE_NUM; index++) for (index = 0; index < FDCDP_INSTANCE_NUM; index++)
@ -301,7 +298,6 @@ FError FMediaCtrlProbe(void)
*/ */
void FMediaDisplayDemo(void) void FMediaDisplayDemo(void)
{ {
FDcDp *instance_p = &dcdp_config;
for (u32 index = 0; index < FDCDP_INSTANCE_NUM; index ++) for (u32 index = 0; index < FDCDP_INSTANCE_NUM; index ++)
{ {
blt_buffer.Red = 0xff; blt_buffer.Red = 0xff;

4
example/network/lwip_iperf/configs/d2000_aarch32_test_lwip_iperf.config

@ -402,8 +402,8 @@ CONFIG_DEBUG_LINK_MAP=y
# #
# Debug options # Debug options
# #
# CONFIG_DEBUG_ENABLE_ALL_WARNING is not set CONFIG_DEBUG_ENABLE_ALL_WARNING=y
# CONFIG_WALL_WARNING_ERROR is not set CONFIG_WALL_WARNING_ERROR=y
# CONFIG_STRICT_PROTOTYPES is not set # CONFIG_STRICT_PROTOTYPES is not set
# CONFIG_DEBUG_SYMBOLS is not set # CONFIG_DEBUG_SYMBOLS is not set
# CONFIG_FRAME_POINTER is not set # CONFIG_FRAME_POINTER is not set

4
example/network/lwip_iperf/configs/d2000_aarch64_test_lwip_iperf.config

@ -396,8 +396,8 @@ CONFIG_DEBUG_LINK_MAP=y
# #
# Debug options # Debug options
# #
# CONFIG_DEBUG_ENABLE_ALL_WARNING is not set CONFIG_DEBUG_ENABLE_ALL_WARNING=y
# CONFIG_WALL_WARNING_ERROR is not set CONFIG_WALL_WARNING_ERROR=y
# CONFIG_STRICT_PROTOTYPES is not set # CONFIG_STRICT_PROTOTYPES is not set
# CONFIG_DEBUG_SYMBOLS is not set # CONFIG_DEBUG_SYMBOLS is not set
# CONFIG_FRAME_POINTER is not set # CONFIG_FRAME_POINTER is not set

4
example/network/lwip_iperf/configs/e2000d_aarch32_demo_lwip_iperf.config

@ -415,8 +415,8 @@ CONFIG_DEBUG_LINK_MAP=y
# #
# Debug options # Debug options
# #
# CONFIG_DEBUG_ENABLE_ALL_WARNING is not set CONFIG_DEBUG_ENABLE_ALL_WARNING=y
# CONFIG_WALL_WARNING_ERROR is not set CONFIG_WALL_WARNING_ERROR=y
# CONFIG_STRICT_PROTOTYPES is not set # CONFIG_STRICT_PROTOTYPES is not set
# CONFIG_DEBUG_SYMBOLS is not set # CONFIG_DEBUG_SYMBOLS is not set
# CONFIG_FRAME_POINTER is not set # CONFIG_FRAME_POINTER is not set

4
example/network/lwip_iperf/configs/e2000d_aarch64_demo_lwip_iperf.config

@ -409,8 +409,8 @@ CONFIG_DEBUG_LINK_MAP=y
# #
# Debug options # Debug options
# #
# CONFIG_DEBUG_ENABLE_ALL_WARNING is not set CONFIG_DEBUG_ENABLE_ALL_WARNING=y
# CONFIG_WALL_WARNING_ERROR is not set CONFIG_WALL_WARNING_ERROR=y
# CONFIG_STRICT_PROTOTYPES is not set # CONFIG_STRICT_PROTOTYPES is not set
# CONFIG_DEBUG_SYMBOLS is not set # CONFIG_DEBUG_SYMBOLS is not set
# CONFIG_FRAME_POINTER is not set # CONFIG_FRAME_POINTER is not set

4
example/network/lwip_iperf/configs/e2000q_aarch32_demo_lwip_iperf.config

@ -414,8 +414,8 @@ CONFIG_DEBUG_LINK_MAP=y
# #
# Debug options # Debug options
# #
# CONFIG_DEBUG_ENABLE_ALL_WARNING is not set CONFIG_DEBUG_ENABLE_ALL_WARNING=y
# CONFIG_WALL_WARNING_ERROR is not set CONFIG_WALL_WARNING_ERROR=y
# CONFIG_STRICT_PROTOTYPES is not set # CONFIG_STRICT_PROTOTYPES is not set
# CONFIG_DEBUG_SYMBOLS is not set # CONFIG_DEBUG_SYMBOLS is not set
# CONFIG_FRAME_POINTER is not set # CONFIG_FRAME_POINTER is not set

4
example/network/lwip_iperf/configs/e2000q_aarch64_demo_lwip_iperf.config

@ -408,8 +408,8 @@ CONFIG_DEBUG_LINK_MAP=y
# #
# Debug options # Debug options
# #
# CONFIG_DEBUG_ENABLE_ALL_WARNING is not set CONFIG_DEBUG_ENABLE_ALL_WARNING=y
# CONFIG_WALL_WARNING_ERROR is not set CONFIG_WALL_WARNING_ERROR=y
# CONFIG_STRICT_PROTOTYPES is not set # CONFIG_STRICT_PROTOTYPES is not set
# CONFIG_DEBUG_SYMBOLS is not set # CONFIG_DEBUG_SYMBOLS is not set
# CONFIG_FRAME_POINTER is not set # CONFIG_FRAME_POINTER is not set

4
example/network/lwip_iperf/configs/ft2004_aarch32_dsk_lwip_iperf.config

@ -402,8 +402,8 @@ CONFIG_DEBUG_LINK_MAP=y
# #
# Debug options # Debug options
# #
# CONFIG_DEBUG_ENABLE_ALL_WARNING is not set CONFIG_DEBUG_ENABLE_ALL_WARNING=y
# CONFIG_WALL_WARNING_ERROR is not set CONFIG_WALL_WARNING_ERROR=y
# CONFIG_STRICT_PROTOTYPES is not set # CONFIG_STRICT_PROTOTYPES is not set
# CONFIG_DEBUG_SYMBOLS is not set # CONFIG_DEBUG_SYMBOLS is not set
# CONFIG_FRAME_POINTER is not set # CONFIG_FRAME_POINTER is not set

4
example/network/lwip_iperf/configs/ft2004_aarch64_dsk_lwip_iperf.config

@ -396,8 +396,8 @@ CONFIG_DEBUG_LINK_MAP=y
# #
# Debug options # Debug options
# #
# CONFIG_DEBUG_ENABLE_ALL_WARNING is not set CONFIG_DEBUG_ENABLE_ALL_WARNING=y
# CONFIG_WALL_WARNING_ERROR is not set CONFIG_WALL_WARNING_ERROR=y
# CONFIG_STRICT_PROTOTYPES is not set # CONFIG_STRICT_PROTOTYPES is not set
# CONFIG_DEBUG_SYMBOLS is not set # CONFIG_DEBUG_SYMBOLS is not set
# CONFIG_FRAME_POINTER is not set # CONFIG_FRAME_POINTER is not set

4
example/network/lwip_iperf/configs/phytiumpi_aarch32_firefly_lwip_iperf.config

@ -413,8 +413,8 @@ CONFIG_DEBUG_LINK_MAP=y
# #
# Debug options # Debug options
# #
# CONFIG_DEBUG_ENABLE_ALL_WARNING is not set CONFIG_DEBUG_ENABLE_ALL_WARNING=y
# CONFIG_WALL_WARNING_ERROR is not set CONFIG_WALL_WARNING_ERROR=y
# CONFIG_STRICT_PROTOTYPES is not set # CONFIG_STRICT_PROTOTYPES is not set
# CONFIG_DEBUG_SYMBOLS is not set # CONFIG_DEBUG_SYMBOLS is not set
# CONFIG_FRAME_POINTER is not set # CONFIG_FRAME_POINTER is not set

4
example/network/lwip_iperf/configs/phytiumpi_aarch64_firefly_lwip_iperf.config

@ -407,8 +407,8 @@ CONFIG_DEBUG_LINK_MAP=y
# #
# Debug options # Debug options
# #
# CONFIG_DEBUG_ENABLE_ALL_WARNING is not set CONFIG_DEBUG_ENABLE_ALL_WARNING=y
# CONFIG_WALL_WARNING_ERROR is not set CONFIG_WALL_WARNING_ERROR=y
# CONFIG_STRICT_PROTOTYPES is not set # CONFIG_STRICT_PROTOTYPES is not set
# CONFIG_DEBUG_SYMBOLS is not set # CONFIG_DEBUG_SYMBOLS is not set
# CONFIG_FRAME_POINTER is not set # CONFIG_FRAME_POINTER is not set

4
example/network/lwip_iperf/sdkconfig

@ -407,8 +407,8 @@ CONFIG_DEBUG_LINK_MAP=y
# #
# Debug options # Debug options
# #
# CONFIG_DEBUG_ENABLE_ALL_WARNING is not set CONFIG_DEBUG_ENABLE_ALL_WARNING=y
# CONFIG_WALL_WARNING_ERROR is not set CONFIG_WALL_WARNING_ERROR=y
# CONFIG_STRICT_PROTOTYPES is not set # CONFIG_STRICT_PROTOTYPES is not set
# CONFIG_DEBUG_SYMBOLS is not set # CONFIG_DEBUG_SYMBOLS is not set
# CONFIG_FRAME_POINTER is not set # CONFIG_FRAME_POINTER is not set

4
example/network/lwip_iperf/sdkconfig.h

@ -362,8 +362,8 @@
/* Debug options */ /* Debug options */
/* CONFIG_DEBUG_ENABLE_ALL_WARNING is not set */ #define CONFIG_DEBUG_ENABLE_ALL_WARNING
/* CONFIG_WALL_WARNING_ERROR is not set */ #define CONFIG_WALL_WARNING_ERROR
/* CONFIG_STRICT_PROTOTYPES is not set */ /* CONFIG_STRICT_PROTOTYPES is not set */
/* CONFIG_DEBUG_SYMBOLS is not set */ /* CONFIG_DEBUG_SYMBOLS is not set */
/* CONFIG_FRAME_POINTER is not set */ /* CONFIG_FRAME_POINTER is not set */

4
example/network/lwip_jumbo/configs/d2000_aarch32_test_lwip_jumbo.config

@ -395,8 +395,8 @@ CONFIG_DEBUG_LINK_MAP=y
# #
# Debug options # Debug options
# #
# CONFIG_DEBUG_ENABLE_ALL_WARNING is not set CONFIG_DEBUG_ENABLE_ALL_WARNING=y
# CONFIG_WALL_WARNING_ERROR is not set CONFIG_WALL_WARNING_ERROR=y
# CONFIG_STRICT_PROTOTYPES is not set # CONFIG_STRICT_PROTOTYPES is not set
# CONFIG_DEBUG_SYMBOLS is not set # CONFIG_DEBUG_SYMBOLS is not set
# CONFIG_FRAME_POINTER is not set # CONFIG_FRAME_POINTER is not set

4
example/network/lwip_jumbo/configs/d2000_aarch64_test_lwip_jumbo.config

@ -389,8 +389,8 @@ CONFIG_DEBUG_LINK_MAP=y
# #
# Debug options # Debug options
# #
# CONFIG_DEBUG_ENABLE_ALL_WARNING is not set CONFIG_DEBUG_ENABLE_ALL_WARNING=y
# CONFIG_WALL_WARNING_ERROR is not set CONFIG_WALL_WARNING_ERROR=y
# CONFIG_STRICT_PROTOTYPES is not set # CONFIG_STRICT_PROTOTYPES is not set
# CONFIG_DEBUG_SYMBOLS is not set # CONFIG_DEBUG_SYMBOLS is not set
# CONFIG_FRAME_POINTER is not set # CONFIG_FRAME_POINTER is not set

4
example/network/lwip_jumbo/configs/e2000d_aarch32_demo_lwip_jumbo.config

@ -408,8 +408,8 @@ CONFIG_DEBUG_LINK_MAP=y
# #
# Debug options # Debug options
# #
# CONFIG_DEBUG_ENABLE_ALL_WARNING is not set CONFIG_DEBUG_ENABLE_ALL_WARNING=y
# CONFIG_WALL_WARNING_ERROR is not set CONFIG_WALL_WARNING_ERROR=y
# CONFIG_STRICT_PROTOTYPES is not set # CONFIG_STRICT_PROTOTYPES is not set
# CONFIG_DEBUG_SYMBOLS is not set # CONFIG_DEBUG_SYMBOLS is not set
# CONFIG_FRAME_POINTER is not set # CONFIG_FRAME_POINTER is not set

4
example/network/lwip_jumbo/configs/e2000d_aarch64_demo_lwip_jumbo.config

@ -402,8 +402,8 @@ CONFIG_DEBUG_LINK_MAP=y
# #
# Debug options # Debug options
# #
# CONFIG_DEBUG_ENABLE_ALL_WARNING is not set CONFIG_DEBUG_ENABLE_ALL_WARNING=y
# CONFIG_WALL_WARNING_ERROR is not set CONFIG_WALL_WARNING_ERROR=y
# CONFIG_STRICT_PROTOTYPES is not set # CONFIG_STRICT_PROTOTYPES is not set
# CONFIG_DEBUG_SYMBOLS is not set # CONFIG_DEBUG_SYMBOLS is not set
# CONFIG_FRAME_POINTER is not set # CONFIG_FRAME_POINTER is not set

4
example/network/lwip_jumbo/configs/e2000q_aarch32_demo_lwip_jumbo.config

@ -407,8 +407,8 @@ CONFIG_DEBUG_LINK_MAP=y
# #
# Debug options # Debug options
# #
# CONFIG_DEBUG_ENABLE_ALL_WARNING is not set CONFIG_DEBUG_ENABLE_ALL_WARNING=y
# CONFIG_WALL_WARNING_ERROR is not set CONFIG_WALL_WARNING_ERROR=y
# CONFIG_STRICT_PROTOTYPES is not set # CONFIG_STRICT_PROTOTYPES is not set
# CONFIG_DEBUG_SYMBOLS is not set # CONFIG_DEBUG_SYMBOLS is not set
# CONFIG_FRAME_POINTER is not set # CONFIG_FRAME_POINTER is not set

4
example/network/lwip_jumbo/configs/e2000q_aarch64_demo_lwip_jumbo.config

@ -401,8 +401,8 @@ CONFIG_DEBUG_LINK_MAP=y
# #
# Debug options # Debug options
# #
# CONFIG_DEBUG_ENABLE_ALL_WARNING is not set CONFIG_DEBUG_ENABLE_ALL_WARNING=y
# CONFIG_WALL_WARNING_ERROR is not set CONFIG_WALL_WARNING_ERROR=y
# CONFIG_STRICT_PROTOTYPES is not set # CONFIG_STRICT_PROTOTYPES is not set
# CONFIG_DEBUG_SYMBOLS is not set # CONFIG_DEBUG_SYMBOLS is not set
# CONFIG_FRAME_POINTER is not set # CONFIG_FRAME_POINTER is not set

4
example/network/lwip_jumbo/configs/ft2004_aarch32_dsk_lwip_jumbo.config

@ -395,8 +395,8 @@ CONFIG_DEBUG_LINK_MAP=y
# #
# Debug options # Debug options
# #
# CONFIG_DEBUG_ENABLE_ALL_WARNING is not set CONFIG_DEBUG_ENABLE_ALL_WARNING=y
# CONFIG_WALL_WARNING_ERROR is not set CONFIG_WALL_WARNING_ERROR=y
# CONFIG_STRICT_PROTOTYPES is not set # CONFIG_STRICT_PROTOTYPES is not set
# CONFIG_DEBUG_SYMBOLS is not set # CONFIG_DEBUG_SYMBOLS is not set
# CONFIG_FRAME_POINTER is not set # CONFIG_FRAME_POINTER is not set

4
example/network/lwip_jumbo/configs/ft2004_aarch64_dsk_lwip_jumbo.config

@ -389,8 +389,8 @@ CONFIG_DEBUG_LINK_MAP=y
# #
# Debug options # Debug options
# #
# CONFIG_DEBUG_ENABLE_ALL_WARNING is not set CONFIG_DEBUG_ENABLE_ALL_WARNING=y
# CONFIG_WALL_WARNING_ERROR is not set CONFIG_WALL_WARNING_ERROR=y
# CONFIG_STRICT_PROTOTYPES is not set # CONFIG_STRICT_PROTOTYPES is not set
# CONFIG_DEBUG_SYMBOLS is not set # CONFIG_DEBUG_SYMBOLS is not set
# CONFIG_FRAME_POINTER is not set # CONFIG_FRAME_POINTER is not set

4
example/network/lwip_jumbo/configs/phytiumpi_aarch32_firefly_lwip_jumbo.config

@ -406,8 +406,8 @@ CONFIG_DEBUG_LINK_MAP=y
# #
# Debug options # Debug options
# #
# CONFIG_DEBUG_ENABLE_ALL_WARNING is not set CONFIG_DEBUG_ENABLE_ALL_WARNING=y
# CONFIG_WALL_WARNING_ERROR is not set CONFIG_WALL_WARNING_ERROR=y
# CONFIG_STRICT_PROTOTYPES is not set # CONFIG_STRICT_PROTOTYPES is not set
# CONFIG_DEBUG_SYMBOLS is not set # CONFIG_DEBUG_SYMBOLS is not set
# CONFIG_FRAME_POINTER is not set # CONFIG_FRAME_POINTER is not set

4
example/network/lwip_jumbo/configs/phytiumpi_aarch64_firefly_lwip_jumbo.config

@ -400,8 +400,8 @@ CONFIG_DEBUG_LINK_MAP=y
# #
# Debug options # Debug options
# #
# CONFIG_DEBUG_ENABLE_ALL_WARNING is not set CONFIG_DEBUG_ENABLE_ALL_WARNING=y
# CONFIG_WALL_WARNING_ERROR is not set CONFIG_WALL_WARNING_ERROR=y
# CONFIG_STRICT_PROTOTYPES is not set # CONFIG_STRICT_PROTOTYPES is not set
# CONFIG_DEBUG_SYMBOLS is not set # CONFIG_DEBUG_SYMBOLS is not set
# CONFIG_FRAME_POINTER is not set # CONFIG_FRAME_POINTER is not set

4
example/network/lwip_jumbo/sdkconfig

@ -400,8 +400,8 @@ CONFIG_DEBUG_LINK_MAP=y
# #
# Debug options # Debug options
# #
# CONFIG_DEBUG_ENABLE_ALL_WARNING is not set CONFIG_DEBUG_ENABLE_ALL_WARNING=y
# CONFIG_WALL_WARNING_ERROR is not set CONFIG_WALL_WARNING_ERROR=y
# CONFIG_STRICT_PROTOTYPES is not set # CONFIG_STRICT_PROTOTYPES is not set
# CONFIG_DEBUG_SYMBOLS is not set # CONFIG_DEBUG_SYMBOLS is not set
# CONFIG_FRAME_POINTER is not set # CONFIG_FRAME_POINTER is not set

4
example/network/lwip_jumbo/sdkconfig.h

@ -355,8 +355,8 @@
/* Debug options */ /* Debug options */
/* CONFIG_DEBUG_ENABLE_ALL_WARNING is not set */ #define CONFIG_DEBUG_ENABLE_ALL_WARNING
/* CONFIG_WALL_WARNING_ERROR is not set */ #define CONFIG_WALL_WARNING_ERROR
/* CONFIG_STRICT_PROTOTYPES is not set */ /* CONFIG_STRICT_PROTOTYPES is not set */
/* CONFIG_DEBUG_SYMBOLS is not set */ /* CONFIG_DEBUG_SYMBOLS is not set */
/* CONFIG_FRAME_POINTER is not set */ /* CONFIG_FRAME_POINTER is not set */

4
example/network/lwip_multicast/configs/d2000_aarch32_test_lwip_multicast.config

@ -395,8 +395,8 @@ CONFIG_DEBUG_LINK_MAP=y
# #
# Debug options # Debug options
# #
# CONFIG_DEBUG_ENABLE_ALL_WARNING is not set CONFIG_DEBUG_ENABLE_ALL_WARNING=y
# CONFIG_WALL_WARNING_ERROR is not set CONFIG_WALL_WARNING_ERROR=y
# CONFIG_STRICT_PROTOTYPES is not set # CONFIG_STRICT_PROTOTYPES is not set
# CONFIG_DEBUG_SYMBOLS is not set # CONFIG_DEBUG_SYMBOLS is not set
# CONFIG_FRAME_POINTER is not set # CONFIG_FRAME_POINTER is not set

4
example/network/lwip_multicast/configs/d2000_aarch64_test_lwip_multicast.config

@ -389,8 +389,8 @@ CONFIG_DEBUG_LINK_MAP=y
# #
# Debug options # Debug options
# #
# CONFIG_DEBUG_ENABLE_ALL_WARNING is not set CONFIG_DEBUG_ENABLE_ALL_WARNING=y
# CONFIG_WALL_WARNING_ERROR is not set CONFIG_WALL_WARNING_ERROR=y
# CONFIG_STRICT_PROTOTYPES is not set # CONFIG_STRICT_PROTOTYPES is not set
# CONFIG_DEBUG_SYMBOLS is not set # CONFIG_DEBUG_SYMBOLS is not set
# CONFIG_FRAME_POINTER is not set # CONFIG_FRAME_POINTER is not set

4
example/network/lwip_multicast/configs/e2000d_aarch32_demo_lwip_multicast.config

@ -408,8 +408,8 @@ CONFIG_DEBUG_LINK_MAP=y
# #
# Debug options # Debug options
# #
# CONFIG_DEBUG_ENABLE_ALL_WARNING is not set CONFIG_DEBUG_ENABLE_ALL_WARNING=y
# CONFIG_WALL_WARNING_ERROR is not set CONFIG_WALL_WARNING_ERROR=y
# CONFIG_STRICT_PROTOTYPES is not set # CONFIG_STRICT_PROTOTYPES is not set
# CONFIG_DEBUG_SYMBOLS is not set # CONFIG_DEBUG_SYMBOLS is not set
# CONFIG_FRAME_POINTER is not set # CONFIG_FRAME_POINTER is not set

4
example/network/lwip_multicast/configs/e2000d_aarch64_demo_lwip_multicast.config

@ -402,8 +402,8 @@ CONFIG_DEBUG_LINK_MAP=y
# #
# Debug options # Debug options
# #
# CONFIG_DEBUG_ENABLE_ALL_WARNING is not set CONFIG_DEBUG_ENABLE_ALL_WARNING=y
# CONFIG_WALL_WARNING_ERROR is not set CONFIG_WALL_WARNING_ERROR=y
# CONFIG_STRICT_PROTOTYPES is not set # CONFIG_STRICT_PROTOTYPES is not set
# CONFIG_DEBUG_SYMBOLS is not set # CONFIG_DEBUG_SYMBOLS is not set
# CONFIG_FRAME_POINTER is not set # CONFIG_FRAME_POINTER is not set

4
example/network/lwip_multicast/configs/e2000q_aarch32_demo_lwip_multicast.config

@ -407,8 +407,8 @@ CONFIG_DEBUG_LINK_MAP=y
# #
# Debug options # Debug options
# #
# CONFIG_DEBUG_ENABLE_ALL_WARNING is not set CONFIG_DEBUG_ENABLE_ALL_WARNING=y
# CONFIG_WALL_WARNING_ERROR is not set CONFIG_WALL_WARNING_ERROR=y
# CONFIG_STRICT_PROTOTYPES is not set # CONFIG_STRICT_PROTOTYPES is not set
# CONFIG_DEBUG_SYMBOLS is not set # CONFIG_DEBUG_SYMBOLS is not set
# CONFIG_FRAME_POINTER is not set # CONFIG_FRAME_POINTER is not set

4
example/network/lwip_multicast/configs/e2000q_aarch64_demo_lwip_multicast.config

@ -401,8 +401,8 @@ CONFIG_DEBUG_LINK_MAP=y
# #
# Debug options # Debug options
# #
# CONFIG_DEBUG_ENABLE_ALL_WARNING is not set CONFIG_DEBUG_ENABLE_ALL_WARNING=y
# CONFIG_WALL_WARNING_ERROR is not set CONFIG_WALL_WARNING_ERROR=y
# CONFIG_STRICT_PROTOTYPES is not set # CONFIG_STRICT_PROTOTYPES is not set
# CONFIG_DEBUG_SYMBOLS is not set # CONFIG_DEBUG_SYMBOLS is not set
# CONFIG_FRAME_POINTER is not set # CONFIG_FRAME_POINTER is not set

4
example/network/lwip_multicast/configs/ft2004_aarch32_dsk_lwip_multicast.config

@ -395,8 +395,8 @@ CONFIG_DEBUG_LINK_MAP=y
# #
# Debug options # Debug options
# #
# CONFIG_DEBUG_ENABLE_ALL_WARNING is not set CONFIG_DEBUG_ENABLE_ALL_WARNING=y
# CONFIG_WALL_WARNING_ERROR is not set CONFIG_WALL_WARNING_ERROR=y
# CONFIG_STRICT_PROTOTYPES is not set # CONFIG_STRICT_PROTOTYPES is not set
# CONFIG_DEBUG_SYMBOLS is not set # CONFIG_DEBUG_SYMBOLS is not set
# CONFIG_FRAME_POINTER is not set # CONFIG_FRAME_POINTER is not set

Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save