4 years agouse run-time read DNUM to switch the C66x cores; revert to core independent library PSDK.QNX.J7.IPC_INTERRUPT_ONLY.v1 PSDK.QNX.J7.IPC_POLLING_MODE.v1 PSDK.QNX.J7.IPC_SCICLIENT_INTERRUPTS.v1 PSDKQA_7Q70_01_01 REL.PDK.J7.00.09.00.11 REL.PDK.J7.00.09.00.12 REL.PDK.J7.00.09.00.13 REL.PDK.J7.00.09.00.14 REL.PDK.J7.00.09.00.15 REL.PDK.J7.00.09.00.16
use run-time read DNUM to switch the C66x cores; revert to core independent library
Signed-off-by: Ming Wei <mwei@ti.com>
Signed-off-by: Ming Wei <mwei@ti.com>
increase stack size from 8KB to 32KB;
make uart lib core dependent;
change I2c_appC7xPreInit to Uart_appC7xPreInit
Signed-off-by: Ming Wei <mwei@ti.com>
make uart lib core dependent;
change I2c_appC7xPreInit to Uart_appC7xPreInit
Signed-off-by: Ming Wei <mwei@ti.com>
4 years agouart: fix DMA example out of memory issue REL.PDK.J7.00.09.00.06 REL.PDK.J7.00.09.00.07 REL.PDK.J7.00.09.00.08 REL.PDK.J7.00.09.00.09 REL.PDK.J7.00.09.00.10
uart: fix DMA example out of memory issue
Increase the heap memory size to fix the out of memory issue.
Signed-off-by: Hao Zhang <hzhang@ti.com>
Increase the heap memory size to fix the out of memory issue.
Signed-off-by: Hao Zhang <hzhang@ti.com>
c66x and c7x updates
Signed-off-by: Ming Wei <mwei@ti.com>
Signed-off-by: Ming Wei <mwei@ti.com>
4 years ago6.0 doc/ver update DEV.PROCESSOR-SDK.06.00.00.05 DEV.UART_LLD.01.00.00.15 REL.PDK.J7.00.09.00.02 REL.PDK.J7.00.09.00.03
6.0 doc/ver update
[PDK-3291]Rename c7x to c7x_1
Signed-off-by: Vivek Dhande <a0132295@ti.com>
Signed-off-by: Vivek Dhande <a0132295@ti.com>
fix the PRSDK-5991
Signed-off-by: Ming Wei <mwei@ti.com>
Signed-off-by: Ming Wei <mwei@ti.com>
fix the include file issue
Signed-off-by: Ming Wei <mwei@ti.com>
Signed-off-by: Ming Wei <mwei@ti.com>
typo fix
Signed-off-by: Ming Wei <mwei@ti.com>
Signed-off-by: Ming Wei <mwei@ti.com>
those inculde filee are for J721E only
Signed-off-by: Ming Wei <mwei@ti.com>
Signed-off-by: Ming Wei <mwei@ti.com>
move the DMTimer0 settings to application code
Signed-off-by: Ming Wei <mwei@ti.com>
Signed-off-by: Ming Wei <mwei@ti.com>
Add c66x c7x support for UART on J721e sysbios only
Signed-off-by: Ming Wei <mwei@ti.com>
Signed-off-by: Ming Wei <mwei@ti.com>
Removing Profile and Profile independent library build for J7
Signed-off-by: Ankur <a0132173@ti.com>
Signed-off-by: Ankur <a0132173@ti.com>
PRSDK-4453 Remove redundant config file and add generic config file
Remove redundant config file for EVM AM572x example.
Update existing config file to include SMP configuration for both A15
and A53 core.
Remove redundant config file for EVM AM572x example.
Update existing config file to include SMP configuration for both A15
and A53 core.
Update CLEC input event offset; bypass the c66x c7x baremetal example build;
update the mpu.xs file
Signed-off-by: Ming Wei <mwei@ti.com>
update the mpu.xs file
Signed-off-by: Ming Wei <mwei@ti.com>
update the CSL_CLEC_RTMAP_C7X_ALL to CSL_CLEC_RTMAP_CPU_ALL
Signed-off-by: Ming Wei <mwei@ti.com>
Signed-off-by: Ming Wei <mwei@ti.com>
fix the compiling errors for C7X
Signed-off-by: Ming Wei <mwei@ti.com>
Signed-off-by: Ming Wei <mwei@ti.com>
uart: j7: add C66x interrupt event combiner support
Signed-off-by: Hao Zhang <hzhang@ti.com>
Signed-off-by: Hao Zhang <hzhang@ti.com>
uart: j7: add C7x CLEC configuration support
Signed-off-by: Hao Zhang <hzhang@ti.com>
Signed-off-by: Hao Zhang <hzhang@ti.com>
uart: j7: add interrupt mode support for C7x core
Signed-off-by: Hao Zhang <hzhang@ti.com>
Signed-off-by: Hao Zhang <hzhang@ti.com>
uart: j7: add interrupt mode support for C66x core
Signed-off-by: Hao Zhang <hzhang@ti.com>
Signed-off-by: Hao Zhang <hzhang@ti.com>
Build Fix - Fixed MMU init API call for RTOS app
Signed-off-by: Ankur <a0132173@ti.com>
Signed-off-by: Ankur <a0132173@ti.com>
PRSDK-5866: Fix for Simultaneous R/W test case (UT11) failure.
Simultaneous R/W test case (UT11) fails during task_create().
This patch fixes the issue.
Simultaneous R/W test case (UT11) fails during task_create().
This patch fixes the issue.
PRSDK-4453 Update libProfile inline with makefile BUILD_PROFILE macro
Remove hardcoded library profile for the driver components
Update config file to get library profile from the makefile macros
Remove hardcoded library profile for the driver components
Update config file to get library profile from the makefile macros
PRSDK-4453 Update config file to remove board dependancy
Update config file to remove board and SCI components to remove board
name dependency.
Update config file to remove board and SCI components to remove board
name dependency.
PRSDK-4453 Add SMP enable DMA examples for AM65xx
Add UART DMA unit test with SMP enabled for AM65xx.
Update component makefile to add entry for SMP enabled test.
Add UART DMA unit test with SMP enabled for AM65xx.
Update component makefile to add entry for SMP enabled test.
PRSDK-4453 Add SMP enabled BIOS project for AM572x IDK
Add project text file and RTSC config file for SMP enabled Test project
which includes both DMA and non-DMA mode.
Add project text file and RTSC config file for SMP enabled Test project
which includes both DMA and non-DMA mode.
PRSDK-4453 Add SMP enable examples for AM65xx
Add UART unit test with SMP enabled for AM65xx.
Update component makefile to add entry for SMP enabled test.
Add UART unit test with SMP enabled for AM65xx.
Update component makefile to add entry for SMP enabled test.
PRSDK-4453 Update RTSC config file to load PDK components
Update UART example/test RTSC config file ti load PDK driver components
and OSAL package during compilation.
Update UART example/test RTSC config file ti load PDK driver components
and OSAL package during compilation.
Use common OSAL MMU init fxn
Signed-off-by: Sivaraj R <sivaraj@ti.com>
Signed-off-by: Sivaraj R <sivaraj@ti.com>
Build Fix for C7x
Signed-off-by: Ankur <a0132173@ti.com>
Signed-off-by: Ankur <a0132173@ti.com>
Workaround to fix the below problem:
error #190-D: enumerated type mixed with another type
Signed-off-by: Hao Zhang <hzhang@ti.com>
error #190-D: enumerated type mixed with another type
Signed-off-by: Hao Zhang <hzhang@ti.com>
PRSDK-4967: one LLD library support for R5 on J7
There are pulsar R5 cores on both the MCU and Main domains, the default
configurations (UART base addr, int number, UDMA thread ID) for R5 are set
for the UART instances on the MCU domain. If the R5 core is on the Main
domain, a run-time SoC function, UART_socInit() is called in UART_init() to
re-configure all the UART instances on the Main domain.
Signed-off-by: Hao Zhang <hzhang@ti.com>
There are pulsar R5 cores on both the MCU and Main domains, the default
configurations (UART base addr, int number, UDMA thread ID) for R5 are set
for the UART instances on the MCU domain. If the R5 core is on the Main
domain, a run-time SoC function, UART_socInit() is called in UART_init() to
re-configure all the UART instances on the Main domain.
Signed-off-by: Hao Zhang <hzhang@ti.com>
[PDK-3291]Rename c7x to c7x_1
Signed-off-by: Vivek Dhande <a0132295@ti.com>
Signed-off-by: Vivek Dhande <a0132295@ti.com>
PRSDK-2168: Updated while statement to a short and efficient code.
PDK-4085: Add j721e_evm build support
Signed-off-by: Sivaraj R <sivaraj@ti.com>
Signed-off-by: Sivaraj R <sivaraj@ti.com>
uart: PRSDK-5678: fix Klocwork static analysis issues
Signed-off-by: Hao Zhang <hzhang@ti.com>
Signed-off-by: Hao Zhang <hzhang@ti.com>
5 years agofix the BIOS test failed on J721E/A72 issue REL.PDK.J7.00.08.00.05 REL.PDK.J7.00.08.00.06 REL.PDK.J7.00.08.00.07 REL.PDK.J7.00.08.00.08 REL.PDK.J7.00.08.00.09 REL.PDK.J7.00.08.00.10 REL.PDK.J7.00.08.00.11 REL.PDK.J7.00.08.00.12
fix the BIOS test failed on J721E/A72 issue
Signed-off-by: Ming Wei <mwei@ti.com>
Signed-off-by: Ming Wei <mwei@ti.com>
5 years agouart: update version and RN for 1.0.0.14 release DEV.PROCESSOR-SDK.05.03.00.05 DEV.UART_LLD.01.00.00.14 REL.PDK.J7.00.08.00.01 REL.PDK.J7.00.08.00.02 REL.PDK.J7.00.08.00.03 REL.PDK.J7.00.08.00.04
uart: update version and RN for 1.0.0.14 release
Signed-off-by: Hao Zhang <hzhang@ti.com>
Signed-off-by: Hao Zhang <hzhang@ti.com>
PRSDK-4436:Add flag to enable/disable SW IP in UART module settings
- PRUSS DRV not always included for platforms for which SW IP can be enabled.
- PRUSS DRV only included if SW IP enabled & SW IP support provided on given SoC
Signed-off-by: Frank Livingston <frank-livingston@ti.com>
- PRUSS DRV not always included for platforms for which SW IP can be enabled.
- PRUSS DRV only included if SW IP enabled & SW IP support provided on given SoC
Signed-off-by: Frank Livingston <frank-livingston@ti.com>
PRSDK-5449: Fix for UART_BasicExample_TestProject hang on iceAMIC110
The test project links SOC based uart profiling driver which includes
PRU ICSS FW uart driver. Updated the example to use SOC independent
uart profiling driver to exclude PRU ICSS FW driver.
The test project links SOC based uart profiling driver which includes
PRU ICSS FW uart driver. Updated the example to use SOC independent
uart profiling driver to exclude PRU ICSS FW driver.
PDK-3715: Migrate to new CSL SOC alias change
Signed-off-by: Sivaraj R <sivaraj@ti.com>
Signed-off-by: Sivaraj R <sivaraj@ti.com>
uart: PRSDK-5258: fix unit test compilation issue for am65xx
Signed-off-by: Hao Zhang <hzhang@ti.com>
Signed-off-by: Hao Zhang <hzhang@ti.com>
uart: PRSDK-5258: add test case to support multiple instances using DMA
Add loopback test cases for AM3/4/5 devices to support multiple
instances using edma for loopback mode.
Signed-off-by: Hao Zhang <hzhang@ti.com>
Add loopback test cases for AM3/4/5 devices to support multiple
instances using edma for loopback mode.
Signed-off-by: Hao Zhang <hzhang@ti.com>
PRSDK-4436:Update FW design doc
Mistake in FW design doc for FW init flag
Signed-off-by: Frank Livingston <frank-livingston@ti.com>
Mistake in FW design doc for FW init flag
Signed-off-by: Frank Livingston <frank-livingston@ti.com>
PRSDK-4436:Cleanup for release & update RTSC package.xs
Update RTSC package.xs for UART DRV dependency on PRUSS DRV
Signed-off-by: Frank Livingston <frank-livingston@ti.com>
Update RTSC package.xs for UART DRV dependency on PRUSS DRV
Signed-off-by: Frank Livingston <frank-livingston@ti.com>
Adding COPYING.txt for copyright information
uart: PRSDK-5358: fix bios exception in UART_printf
UART_printf should not call osalPendLock() in hwi, add a check
before calling osalPendLock()
Signed-off-by: Hao Zhang <hzhang@ti.com>
UART_printf should not call osalPendLock() in hwi, add a check
before calling osalPendLock()
Signed-off-by: Hao Zhang <hzhang@ti.com>
PRSDK-4436:Update package files
Signed-off-by: Frank Livingston <frank-livingston@ti.com>
Signed-off-by: Frank Livingston <frank-livingston@ti.com>
PRSDK-4436:Add PRU UART firmware design doc
Signed-off-by: Frank Livingston <frank-livingston@ti.com>
Signed-off-by: Frank Livingston <frank-livingston@ti.com>
PRSDK-4436:Add comment to PRU FW assembly file
Signed-off-by: Frank Livingston <frank-livingston@ti.com>
Signed-off-by: Frank Livingston <frank-livingston@ti.com>
PRSDK-4436:Update copyright date
Signed-off-by: Frank Livingston <frank-livingston@ti.com>
Signed-off-by: Frank Livingston <frank-livingston@ti.com>
PRSDK-4436:Change HW flow control settings for Stress Test
Loopback Pair 0: disabled (since this pair includes HW IP instance)
Loopback Pari 2: enabled
Signed-off-by: Frank Livingston <frank-livingston@ti.com>
Loopback Pair 0: disabled (since this pair includes HW IP instance)
Loopback Pari 2: enabled
Signed-off-by: Frank Livingston <frank-livingston@ti.com>
PRSDK-4436:Change license in header to BSD.
Signed-off-by: Frank Livingston <frank-livingston@ti.com>
Signed-off-by: Frank Livingston <frank-livingston@ti.com>
PDK-3586: J7 to J721E
Signed-off-by: Sivaraj R <sivaraj@ti.com>
Signed-off-by: Sivaraj R <sivaraj@ti.com>
PRSDK-4972 Add rxTCC variable for DMA RX complete
Issue:
During DMA config the allocated EDMA channel for Rx is not stored in
driver object and when DMA Rx completion, it is using the hw attributes
structure edmaRxTCC value for comparing which results in mismatch.
Fix:
Added a rxTcc variable in driver object structure. Updated DMA config
function to use the rxTcc variable to store the allocated EDMA channel
number rather than using the local variable. This avoids mismatch in
the channel number during TCC interrupt occurs
Issue:
During DMA config the allocated EDMA channel for Rx is not stored in
driver object and when DMA Rx completion, it is using the hw attributes
structure edmaRxTCC value for comparing which results in mismatch.
Fix:
Added a rxTcc variable in driver object structure. Updated DMA config
function to use the rxTcc variable to store the allocated EDMA channel
number rather than using the local variable. This avoids mismatch in
the channel number during TCC interrupt occurs
Merge remote-tracking branch 'origin/master' into PRSDK-4436
PRSDK-4436:Update Stress Test to allow different write test vectors
Reader tasks compare read data against write data from other Side of Loopback Pair
Signed-off-by: Frank Livingston <frank-livingston@ti.com>
Reader tasks compare read data against write data from other Side of Loopback Pair
Signed-off-by: Frank Livingston <frank-livingston@ti.com>
PRSDK-4436:Add Stress Test for UART SW IP
Signed-off-by: Frank Livingston <frank-livingston@ti.com>
Signed-off-by: Frank Livingston <frank-livingston@ti.com>
PRSDK-4436:Add missing firmware version header file
Signed-off-by: Frank Livingston <frank-livingston@ti.com>
Signed-off-by: Frank Livingston <frank-livingston@ti.com>
PRSDK-4436:Add FW version registers to PRU UART firmware
Add the following registers:
- Firmware Magic Number ("UART")
- Firmware Type
- Firmware Version
- Firmware Feature
- Firmware Extended Feature
The latter four FW registers are similar to those provided by PRU I2C FW.
Signed-off-by: Frank Livingston <frank-livingston@ti.com>
Add the following registers:
- Firmware Magic Number ("UART")
- Firmware Type
- Firmware Version
- Firmware Feature
- Firmware Extended Feature
The latter four FW registers are similar to those provided by PRU I2C FW.
Signed-off-by: Frank Livingston <frank-livingston@ti.com>
PRSDK-4436:Update Configuro BOARD define from icev2AM335x to bbbAM335x
Signed-off-by: Frank Livingston <frank-livingston@ti.com>
Signed-off-by: Frank Livingston <frank-livingston@ti.com>
PRSDK-4436:Fix Test & Example apps
Add all required updates for PRCM in application instead of Board_init()
Signed-off-by: Frank Livingston <frank-livingston@ti.com>
Add all required updates for PRCM in application instead of Board_init()
Signed-off-by: Frank Livingston <frank-livingston@ti.com>
PRSDK-4436:Add comments to UART.h concerning UART HW IP driver functionality
- HW IP driver doesn't currently support 1.5 Stop Bits
- HW IP driver doesn't currently support HW Flow Control
Signed-off-by: Frank Livingston <frank-livingston@ti.com>
- HW IP driver doesn't currently support 1.5 Stop Bits
- HW IP driver doesn't currently support HW Flow Control
Signed-off-by: Frank Livingston <frank-livingston@ti.com>
PRSDK-4436:Add update to UART V1 HW IP driver for Char Len & Stop Bits configuration
Signed-off-by: Frank Livingston <frank-livingston@ti.com>
Signed-off-by: Frank Livingston <frank-livingston@ti.com>
PRSDK-4436:Change UART RX pin mux to enable pull-up
Signed-off-by: Frank Livingston <frank-livingston@ti.com>
Signed-off-by: Frank Livingston <frank-livingston@ti.com>
PRSDK-4436:Update comment and copyright date
Signed-off-by: Frank Livingston <frank-livingston@ti.com>
Signed-off-by: Frank Livingston <frank-livingston@ti.com>
PRSDK-4436:Remove unused function UART_v2_resetInstRdWrPtrs()
UART_v2_resetInstRdWrPtrs reset UART FW instance RD/WR pointers.
These are reset by the FW, so this function is unnecesary.
Signed-off-by: Frank Livingston <frank-livingston@ti.com>
UART_v2_resetInstRdWrPtrs reset UART FW instance RD/WR pointers.
These are reset by the FW, so this function is unnecesary.
Signed-off-by: Frank Livingston <frank-livingston@ti.com>
PRSDK-4436:Add PRCM module enable for UART1 in Test app
Not present in Board_init() for BBB.
Signed-off-by: Frank Livingston <frank-livingston@ti.com>
Not present in Board_init() for BBB.
Signed-off-by: Frank Livingston <frank-livingston@ti.com>
PRSDK-4436:Change board configuration to BBB
- Change Board configuration from ICEv2 to BBB in Test app BIOS .cfg file.
- Add PRCM module enable for PRU-ICSS in Test app since this isn't present
in Board_init() for BBB.
Signed-off-by: Frank Livingston <frank-livingston@ti.com>
- Change Board configuration from ICEv2 to BBB in Test app BIOS .cfg file.
- Add PRCM module enable for PRU-ICSS in Test app since this isn't present
in Board_init() for BBB.
Signed-off-by: Frank Livingston <frank-livingston@ti.com>
PRSDK-4436:Update pin mux for UART HW IP in Test app
Signed-off-by: Frank Livingston <frank-livingston@ti.com>
Signed-off-by: Frank Livingston <frank-livingston@ti.com>
PRSDK-4436:Add example application for PRU UART FW
Signed-off-by: Frank Livingston <frank-livingston@ti.com>
Signed-off-by: Frank Livingston <frank-livingston@ti.com>
PRSDK-4436:Add missing file for Test app
Signed-off-by: Frank Livingston <frank-livingston@ti.com>
Signed-off-by: Frank Livingston <frank-livingston@ti.com>
PRSDK-4436:Add missing information to CCS project for Test app
Signed-off-by: Frank Livingston <frank-livingston@ti.com>
Signed-off-by: Frank Livingston <frank-livingston@ti.com>
PRSDK-4436:Remove Test app compile-time option for excluding BIOS
Signed-off-by: Frank Livingston <frank-livingston@ti.com>
Signed-off-by: Frank Livingston <frank-livingston@ti.com>
PRSDK-4436:Fix wait tick to generate proper cycles for system tick
Added 5 cycles to wait_tick macro, so need to increase constant subtracted
from (217-CYCLE) to account for this difference.
Signed-off-by: Frank Livingston <frank-livingston@ti.com>
Added 5 cycles to wait_tick macro, so need to increase constant subtracted
from (217-CYCLE) to account for this difference.
Signed-off-by: Frank Livingston <frank-livingston@ti.com>
PRSDK-4436:Update Test app to skip unsupported HW IP settings
Char Length==5 &&
Stop duration==2 bits is unsupported by UART HW IP.
Signed-off-by: Frank Livingston <frank-livingston@ti.com>
Char Length==5 &&
Stop duration==2 bits is unsupported by UART HW IP.
Signed-off-by: Frank Livingston <frank-livingston@ti.com>
PRSDK-4463:Update tests to exercise all UART SW IPs
Signed-off-by: Frank Livingston <frank-livingston@ti.com>
Signed-off-by: Frank Livingston <frank-livingston@ti.com>
PRSDK-5273: RTSC depdencies added
Signed-off-by: Aravind Batni <aravindbr@ti.com>
Signed-off-by: Aravind Batni <aravindbr@ti.com>
PRSDK-4436:Fix bug in test app for char length test vector indexing
Signed-off-by: Frank Livingston <frank-livingston@ti.com>
Signed-off-by: Frank Livingston <frank-livingston@ti.com>
PRSDK-4436:Add more tests to test application
Primary purpose of new tests is to check all possible UART bus settings
in external loopback.
Signed-off-by: Frank Livingston <frank-livingston@ti.com>
Primary purpose of new tests is to check all possible UART bus settings
in external loopback.
Signed-off-by: Frank Livingston <frank-livingston@ti.com>
PRSDK-4436:Update UART_open_v2() handling for already open UART instance
Skip all Open function processing, including Close function, in case of
attempt to open already open UART instance. Return error to application
in form of NULL return handle.
Signed-off-by: Frank Livingston <frank-livingston@ti.com>
Skip all Open function processing, including Close function, in case of
attempt to open already open UART instance. Return error to application
in form of NULL return handle.
Signed-off-by: Frank Livingston <frank-livingston@ti.com>
PRSDK-4436:Fix swap between 1.5 & 2 stop bit duration
Signed-off-by: Frank Livingston <frank-livingston@ti.com>
Signed-off-by: Frank Livingston <frank-livingston@ti.com>
PRSDK-4436:Add support for 3x UART instances on PRU0
Signed-off-by: Frank Livingston <frank-livingston@ti.com>
Signed-off-by: Frank Livingston <frank-livingston@ti.com>
PRSDK-4436:Two updates
- Add capability to leave RTS/CTS disable for SW IP instance
- Move supported buad rate macros from V2 .C to .H file
Signed-off-by: Frank Livingston <frank-livingston@ti.com>
- Add capability to leave RTS/CTS disable for SW IP instance
- Move supported buad rate macros from V2 .C to .H file
Signed-off-by: Frank Livingston <frank-livingston@ti.com>
PRSDK-4436:Increase size of write for writePolling timeout==test.
For the SW IP Test app, write polling test w/ timeout==0 was failing
because too few character were being written to the Tx Buffer.
Tx Buffer length is 128 16-bit chars. Hence at least this many characters
must be written to the Buffer (assuming a completely empty Tx Buffer)
before no more space is available for the write and a time out error can
occur.
Signed-off-by: Frank Livingston <frank-livingston@ti.com>
For the SW IP Test app, write polling test w/ timeout==0 was failing
because too few character were being written to the Tx Buffer.
Tx Buffer length is 128 16-bit chars. Hence at least this many characters
must be written to the Buffer (assuming a completely empty Tx Buffer)
before no more space is available for the write and a time out error can
occur.
Signed-off-by: Frank Livingston <frank-livingston@ti.com>
PRSDK-4436:Add read/write cancel test to Test app.
Signed-off-by: Frank Livingston <frank-livingston@ti.com>
Signed-off-by: Frank Livingston <frank-livingston@ti.com>
PRSDK-4436:Fix problem with write cancel
For the SW IP driver, write cancel can occur:
- after all characters have been written to the Tx Buffer
(i.e. writeSize==0, i.e. no more bytes to write to Tx Buffer for this write)
- before the callback function has been invoked
In this case, the cancel function disables the Tx Buffer empty interrupt.
Add logic to re-enable the Tx Buffer empty interrupt if the callback hasn't yet been invoked.
Signed-off-by: Frank Livingston <frank-livingston@ti.com>
For the SW IP driver, write cancel can occur:
- after all characters have been written to the Tx Buffer
(i.e. writeSize==0, i.e. no more bytes to write to Tx Buffer for this write)
- before the callback function has been invoked
In this case, the cancel function disables the Tx Buffer empty interrupt.
Add logic to re-enable the Tx Buffer empty interrupt if the callback hasn't yet been invoked.
Signed-off-by: Frank Livingston <frank-livingston@ti.com>
PRSDK-4436:Add return to sprintTestId testing function
Signed-off-by: Frank Livingston <frank-livingston@ti.com>
Signed-off-by: Frank Livingston <frank-livingston@ti.com>
PRSDK-4436:Initial version of Test application for UART PRU FW
Following tests not working in this version:
- UART_test_read_write_cancel
- UART_test_polling_timeout
Following tests not working in this version:
- UART_test_read_write_cancel
- UART_test_polling_timeout
PRSDK-4436:Fix problem with Host & PRU both writing to UART CTRL reg
Before fix, UART and PRU FW both write to UART CTRL register.
After fix:
- Host writes to Byte0 to enable/disable UART instance.
- Host reads Byte0 and Byte1.
- PRU writes to Byte1 for Tx/Rx ack of enable/disable.
- PRU reads from Byte0 and Byte1.
Before fix, UART and PRU FW both write to UART CTRL register.
After fix:
- Host writes to Byte0 to enable/disable UART instance.
- Host reads Byte0 and Byte1.
- PRU writes to Byte1 for Tx/Rx ack of enable/disable.
- PRU reads from Byte0 and Byte1.
PRSDK-4436:Update location of timeout return for UART_v2_putInstCharTxBuffTimeout
PRSDK-4436:Fix logic for Rx Buffer flush
PRSDK-4436:Add debug vars for HWI
PRSDK-4436:Update location of timeout return for UART_read2_v2
PRSDK-4436:Update copyright date
5 years agoAdding sciclient dependency for J7 REL.PDK.J7.00.05.00.04 REL.PDK.J7.00.05.00.05 REL.PDK.J7.00.05.00.06 REL.PDK.J7.00.05.00.07 REL.PDK.J7.00.05.00.08 REL.PDK.J7.00.05.00.09 REL.PDK.J7.00.05.00.10 REL.PDK.J7.00.05.00.11 REL.PDK.J7.00.05.00.12 REL.PDK.J7.00.05.00.13 REL.PDK.J7.00.05.00.14 REL.PDK.J7.00.05.00.15
Adding sciclient dependency for J7
Signed-off-by: Ankur <a0132173@ti.com>
Signed-off-by: Ankur <a0132173@ti.com>
PRSDK-4436:Update LLD pin mux
- CTS set for GPI instead of GPO
- Update pin mux macros for AM335x (formerly using macros for AM437x)
Signed-off-by: Frank Livingston <frank-livingston@ti.com>
- CTS set for GPI instead of GPO
- Update pin mux macros for AM335x (formerly using macros for AM437x)
Signed-off-by: Frank Livingston <frank-livingston@ti.com>
PRSDK-4436:Updates to UART_close_v2()
- Confirm object isOpen flag is FALSE at start of function before
proceeding with close.
- Add UART PRU FW instance disable.
Signed-off-by: Frank Livingston <frank-livingston@ti.com>
- Confirm object isOpen flag is FALSE at start of function before
proceeding with close.
- Add UART PRU FW instance disable.
Signed-off-by: Frank Livingston <frank-livingston@ti.com>
PRSDK-4436:Remove C RTS boot from PRU firmware
- No need for C RTS boot for assembly only UART PRU FW.
- Remove main symbol, replace with UART_entry,
set UART_entry as entry point in build.
With this change, UART PRU FW test on AM335x ARM doesn't always
run past main() on test problem load to BBB!
Signed-off-by: Frank Livingston <frank-livingston@ti.com>
- No need for C RTS boot for assembly only UART PRU FW.
- Remove main symbol, replace with UART_entry,
set UART_entry as entry point in build.
With this change, UART PRU FW test on AM335x ARM doesn't always
run past main() on test problem load to BBB!
Signed-off-by: Frank Livingston <frank-livingston@ti.com>