mirror of
https://github.com/nasa/fprime.git
synced 2025-12-10 00:44:37 -06:00
* Fixing read-after-write checks for SPI configuration. Adding UT. * Add assert to validate the read and write buffers are the same size in SpiReadWrite_handler * Corrected WARNING_LOW -> WARNING_LO * Fixing event Strings and invalid SpiFrequency * Reverting changes to LinuxSpiDriverTester * Removing redundant variable write_clock
52 lines
1.6 KiB
Plaintext
52 lines
1.6 KiB
Plaintext
@ SPI open error
|
|
event SPI_OpenError(
|
|
device: I32 @< The device
|
|
select: I32 @< The chip select
|
|
error: I32 @< The error code
|
|
) \
|
|
severity warning high \
|
|
id 0 \
|
|
format "Error opening SPI device {}.{}: {}"
|
|
|
|
@ SPI config error
|
|
event SPI_ConfigError(
|
|
device: I32 @< The device
|
|
select: I32 @< The chip select
|
|
error: I32 @< The error code
|
|
) \
|
|
severity warning high \
|
|
id 1 \
|
|
format "Error configuring SPI device {}.{}: {}"
|
|
|
|
@ SPI write error
|
|
event SPI_WriteError(
|
|
device: I32 @< The device
|
|
select: I32 @< The chip select
|
|
error: I32 @< The error code
|
|
) \
|
|
severity warning high \
|
|
id 2 \
|
|
format "Error writing/reading SPI device {}.{}: {}" \
|
|
throttle 5
|
|
|
|
@ SPI configuration mismatch
|
|
event SPI_ConfigMismatch(
|
|
device: I32 @< The device
|
|
select: I32 @< The chip select
|
|
parameter: string @< The parameter being configured
|
|
write_value: U32 @< The value written
|
|
read_value: U32 @< The value read
|
|
) \
|
|
severity warning low \
|
|
id 3 \
|
|
format "SPI device {}.{} configuration mismatch for {}: wrote {}, read {}"
|
|
|
|
@ SPI open notification
|
|
event SPI_PortOpened(
|
|
device: I32 @< The device
|
|
select: I32 @< The chip select
|
|
) \
|
|
severity activity high \
|
|
id 4 \
|
|
format "SPI Device {}.{} configured"
|