56 #include "MockHL_spi.h"
57 #include "MockHL_sys_dma.h"
98 spi1GetConfigValue_Expect(
NULL_PTR, CurrentValue);
99 spi1GetConfigValue_IgnoreArg_config_reg();
103 spiSetFunctional_Expect(spiREG1, ((uint32_t)1u << 10u));
112 spi1GetConfigValue_Expect(
NULL_PTR, CurrentValue);
113 spi1GetConfigValue_IgnoreArg_config_reg();
117 spiSetFunctional_Expect(spiREG1, ~((uint32_t)1u << 10u));
126 spi1GetConfigValue_Ignore();
127 spiSetFunctional_Ignore();
135 spi2GetConfigValue_Ignore();
136 spiSetFunctional_Ignore();
144 spi3GetConfigValue_Ignore();
145 spiSetFunctional_Ignore();
153 spi4GetConfigValue_Ignore();
154 spiSetFunctional_Ignore();
162 spi5GetConfigValue_Ignore();
163 spiSetFunctional_Ignore();
Headers for the configuration for the DMA module.
#define NULL_PTR
Null pointer.
void SPI_SetFunctional(spiBASE_t *pNode, enum spiPinSelect bit, bool hardwareControlled)
Sets the functional of a SPI pin.
Headers for the driver for the SPI module.
Headers for the configuration for the SPI module.
#define TEST_ASSERT_FAIL_ASSERT(_code_under_test)
assert whether assert macro has failed
void testSPI_SetFunctionalRightApiSpi5(void)
void testSPI_SetFunctionalRightApiSpi2(void)
void testSPI_SetFunctionalTestIntendedFunctionClear(void)
void testSPI_SetFunctionalTestIntendedFunctionSet(void)
void testSPI_SetFunctionalRightApiSpi4(void)
void testSPI_SetFunctionalNullPointer(void)
void testSPI_SetFunctionalRightApiSpi3(void)
spi_config_reg_t spiMockConfigRegister
long FSYS_RaisePrivilege(void)
raise privilege
void testSPI_SetFunctionalRightApiSpi1(void)