-
-
Notifications
You must be signed in to change notification settings - Fork 8.4k
Allow sending messages with timeout = 0 #1079
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
Conversation
Tx buffers is occupied.
Also setting the default value of timeout to 0.
Will get to this after #1068 is merged. |
Addresses issue micropython#1143.
Should only give an error on the last pass of the assembler, since that's when we are certain about the branch size.
So that navite emitter passes (comprehensions use yield which is not yet supported by native emitter).
Just to reduce code size. Messages are still to the point and unambiguous.
Tx buffers is occupied.
Also setting the default value of timeout to 0.
One problem with this PR is that it tries to patch upstream library - that apparently would complicate maintenance and upgrade. Was that patch tried to be pushed upstream instead? Also, the branch appears to be not rebased properly, so over time it accumulated unrelated changes which makes merging complicated. |
2015-04-05 14:43 GMT+02:00 Paul Sokolovsky notifications@github.com:
|
Although there is precedent for this (changing the hal), as we have made other patches to the hal library in the past. i.e. we fixed some of the arithmetic in the sd code to work properly witth 64-bit, made some changes around SysTick, and fixed some SPI stuff. So I would still definitely try to avoid making changes to the hal, if its possible to do so, but some things can't be avoided. |
In this case I have added on line in one function. One way to avoid this change is to implement the same functionality (in a better way) in the mpy stmhal code. It is a pretty simple function, but in my eyes not very well done. But it may cause portability issues. |
I have done an alternative implementation of this functionality by moving the send functionality from the hal to stmhal/can.c. It can be viewed here. |
Thanks @PappaPeppar. I merged your more recent version with the CAN_Transmit function in can.c; see 7d5e342. |
Speed up QSTR creation by pre-filtering files before pre-processing.
This patch makes it possible to send messages asynchronous by setting the time out to zero. It also change the default time out to zero.