<div dir="ltr">ping<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 24 Oct 2023 at 22:17, zack leung <<a href="mailto:zakthertemsdev@gmail.com">zakthertemsdev@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>that didn't work but i'm thinking of defining a char array that is equal to the size of the processor lock and the isr lock? i figured that the processor lock is 64 bits and isr lock is a one bit? <br></div><div>I'm confused on how to make an api define do you have a file i can look at? <br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 24 Oct 2023 at 08:31, Sebastian Huber <<a href="mailto:sebastian.huber@embedded-brains.de" target="_blank">sebastian.huber@embedded-brains.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 24.10.23 14:02, zack leung wrote:<br>
> hi! sabestian did you mean the size of the structure?<br>
<br>
Yes, one option to get rid of the empty structures is to just provide <br>
typedefs, for example:<br>
<br>
#if defined(RTEMS_SMP)<br>
typedef struct Scheduler_Context {<br>
...<br>
} Scheduler_Context;<br>
#else<br>
typedef struct Scheduler_Context Scheduler_Context;<br>
#endif<br>
<br>
Then you have to make sure that #if !defined(RTEMS_SMP) no objects of <br>
this type are used.<br>
<br>
For the ISR locks we can do something similar. However, in this case <br>
this affects also the API, so we probably need an API define for this as <br>
well. Suggestion: RTEMS_HAVE_INTERRUPT_LOCK_OBJECTS.<br>
<br>
The user can then do something like this:<br>
<br>
struct app {<br>
...<br>
#if defined(RTEMS_HAVE_INTERRUPT_LOCK_OBJECTS)<br>
rtems_interrupt_lock lock;<br>
#endif<br>
...<br>
}<br>
<br>
-- <br>
embedded brains GmbH<br>
Herr Sebastian HUBER<br>
Dornierstr. 4<br>
82178 Puchheim<br>
Germany<br>
email: <a href="mailto:sebastian.huber@embedded-brains.de" target="_blank">sebastian.huber@embedded-brains.de</a><br>
phone: +49-89-18 94 741 - 16<br>
fax: +49-89-18 94 741 - 08<br>
<br>
Registergericht: Amtsgericht München<br>
Registernummer: HRB 157899<br>
Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler<br>
Unsere Datenschutzerklärung finden Sie hier:<br>
<a href="https://embedded-brains.de/datenschutzerklaerung/" rel="noreferrer" target="_blank">https://embedded-brains.de/datenschutzerklaerung/</a><br>
</blockquote></div>
</blockquote></div>