Skip to content

Commit 04c2162

Browse files
nils-cercariolo-stGrom-
authored andcommitted
[core] platform cleanup of timeout functions
1 parent 2f6a547 commit 04c2162

2 files changed

Lines changed: 1 addition & 41 deletions

File tree

core/stse_platform.h

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -94,19 +94,6 @@ PLAT_UI16 stse_platform_Crc16_Accumulate(PLAT_UI8 *pbuffer, PLAT_UI16 length);
9494
*/
9595
void stse_platform_Delay_ms(PLAT_UI16 delay_val);
9696

97-
/*!
98-
* \brief Start a timeout counter of "timeout_val" ms
99-
* \param[in] timeout_val length of the timeout in milliseconds
100-
* \return None
101-
*/
102-
void stse_platform_timeout_ms_start(PLAT_UI16 timeout_val);
103-
104-
/*!
105-
* \brief Return timeout status
106-
* \return 0 if the timeout counter is still running; 1 if the timeout was exceeded
107-
*/
108-
PLAT_UI8 stse_platform_timeout_ms_get_status(void);
109-
11097
/*!
11198
* \brief Verify ECC signature
11299
* \param[in] key_type Type of ECC key

doc/resources/Markdown/04_PORTING_GUIDE/PAL_files/stse_platform_delay.c.md

Lines changed: 1 addition & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -19,23 +19,6 @@ The `stse_platform_delay.c` file provides delay functions for the STSecureElemen
1919

2020
**Implementation directives**: This abstraction function should implement or call a platform function/driver that performs a delay in milliseconds.
2121

22-
## stse_platform_timeout_ms_start:
23-
24-
- **Purpose**: Starts a timeout with a specified duration in milliseconds.
25-
- **Parameters**:
26-
- `timeout_val`: Duration of the timeout in milliseconds.
27-
- **Return Value**: None.
28-
29-
**Implementation directives**: This abstraction function should implement or call a platform function/driver that starts a timeout.
30-
31-
## stse_platform_timeout_ms_get_status:
32-
33-
- **Purpose**: Gets the status of the timeout.
34-
- **Parameters**: None.
35-
- **Return Value**: Returns the status of the timeout as a `PLAT_UI8`.
36-
37-
**Implementation directives**: This abstraction function should implement or call a platform function/driver that gets the status of the timeout.
38-
3922
## Implementation Example:
4023

4124
Please find below an example of the `stse_platform_delay` implementation for the STM32 platform:
@@ -76,16 +59,6 @@ void stse_platform_Delay_ms(PLAT_UI32 delay_val)
7659
{
7760
delay_ms(delay_val);
7861
}
79-
80-
void stse_platform_timeout_ms_start(PLAT_UI16 timeout_val)
81-
{
82-
timeout_ms_start(timeout_val);
83-
}
84-
85-
PLAT_UI8 stse_platform_timeout_ms_get_status(void)
86-
{
87-
return timeout_ms_get_status();
88-
}
8962
```
9063
91-
This example demonstrates how to initialize the delay mechanisms, perform a delay in milliseconds, start a timeout, and get the status of the timeout using platform-specific drivers.
64+
This example demonstrates how to initialize the delay mechanisms, perform a delay in milliseconds using platform-specific drivers.

0 commit comments

Comments
 (0)