Comments (3)
Does 'code_that_uses_said_master' call i2c.shutdown() before finishing?
case c[int i].shutdown():
return;
from lib_i2c.
Aha!
That is a very interesting suggestion.
So - the requirement for a [[distributable]] task is that it ends with a while(1) { select {} },
I believe; but so you can have a return
inside. I guess that with the return in a specific branch of the select this may be more tractable then allowing the while(condition) { select {} }
, where the condition can be anything, whereas this was the return is in specific places?
I will try this.
from lib_i2c.
That does the trick nicely. However, the code produced is slightly unexpected: it generates lots of indirect function calls (BLA) for the i2c read and write functions; I had expected the compiler to make them into direct calls, with a sequence of 22 instructions leading up to each call. Closing this issue, it may be worth understanding why the compiler, in this case, isn't able to make them direct calls.
from lib_i2c.
Related Issues (15)
- Comments in i2c.h are wrong
- i2c_master_async build warning HOT 1
- doxygen build warning HOT 1
- i2c_res_t excluded in non-xc builds
- AN00157: Use workspace_loc in .cproject
- Description of "other_bits_mask" not very clear
- Bug in write_16 HOT 2
- Stop bit image size HOT 1
- wscript version number is out of date HOT 1
- Smaller Jenkins artefact HOT 1
- Example makefiles need tidying and mix architecture and product naming HOT 2
- Version number on .xproject file does not match released version HOT 1
- Repeated start condition setup time violated if a long delay occurs between completion of a non-terminated transmission and start of next transmission
- Tests should be ported to use pytest and test_support repo HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lib_i2c.