[PATCH v2 07/12] kern_tc.c: Add definitions required by PPS API

Sebastian Huber sebastian.huber at embedded-brains.de
Tue May 3 07:14:58 UTC 2022



On 29/04/2022 09:20, Gabriel Moyano wrote:
> ---
>   cpukit/score/src/kern_tc.c | 5 +++++
>   1 file changed, 5 insertions(+)
> 
> diff --git a/cpukit/score/src/kern_tc.c b/cpukit/score/src/kern_tc.c
> index 7c2feb5be3..7e030c50d4 100644
> --- a/cpukit/score/src/kern_tc.c
> +++ b/cpukit/score/src/kern_tc.c
> @@ -56,6 +56,11 @@
>   #define	timecounter _Timecounter
>   #define	time_second _Timecounter_Time_second
>   #define	time_uptime _Timecounter_Time_uptime
> +
> +#define ENOIOCTL -3

Map it to EINVAL.

> +#include <assert.h>

Use <rtems/score/assert.h>.

> +#define KASSERT(exp, arg) _Assert(exp)
> +
>   #include <rtems/score/timecounterimpl.h>
>   #include <rtems/score/atomic.h>
>   #include <rtems/score/smp.h>

-- 
embedded brains GmbH
Herr Sebastian HUBER
Dornierstr. 4
82178 Puchheim
Germany
email: sebastian.huber at embedded-brains.de
phone: +49-89-18 94 741 - 16
fax:   +49-89-18 94 741 - 08

Registergericht: Amtsgericht München
Registernummer: HRB 157899
Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler
Unsere Datenschutzerklärung finden Sie hier:
https://embedded-brains.de/datenschutzerklaerung/


More information about the devel mailing list