-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Events per signal instance #367
Conversation
1899a41
to
ecbb9f2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
if(tv.idx == 2679 && typ.toString == "uint32") { | ||
print("") | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Always happy to see those go :)
@@ -219,7 +219,7 @@ class RingbufferGenerator extends AbstractTypeGenerator { | |||
), | |||
true | |||
)» | |||
«rbRef.code».length++; | |||
++«rbRef.code».length; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this just a readability issue or did this produce compilation errors?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In general, preincrement > postincrement, since the latter generates a temporary copy ;)
bundles/org.eclipse.mita.program/src/org/eclipse/mita/program/generator/GeneratorUtils.xtend
Outdated
Show resolved
Hide resolved
bundles/org.eclipse.mita.program/src/org/eclipse/mita/program/generator/GeneratorUtils.xtend
Outdated
Show resolved
Hide resolved
} | ||
|
||
override getLibraries() { | ||
return #["paho-mqtt3c"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we ping the Paho guys as Mita now has Paho on x86 support? :D
@@ -73,11 +73,11 @@ class EventLoopGenerator implements IPlatformEventLoopGenerator { | |||
} | |||
|
|||
override generateSetupPreamble(CompilationContext context) { | |||
val startupEventHandler = context.allEventHandlers.filter[it.event instanceof SystemEventSource].findFirst[(it.event as SystemEventSource).source.name == "startup"] | |||
val startupEventHandlers = context.allEventHandlers.filter[it.event instanceof SystemEventSource].filter[(it.event as SystemEventSource).source.name == "startup"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do resources other than the platform allow startup handler, too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you might have more than one startup handler for the event
2509f97
to
5abdb17
Compare
* Implement events per signal instance * Implement user specified event handler buffer sizes * Implement MQTT on x86
Based on #344.