danicampora / micropython

The Micro Python project
MIT License
1 stars 1 forks source link

Modifiy osi.h and osi_freertos to use semaphores in place of mutexes. #24

Closed danicampora closed 9 years ago

danicampora commented 9 years ago

Right now both semaphores and mutexes and used by the simplink os abstraction layer. Using only semaphores might will help on reducing the code size without any impact on functionality. The only advantage of mutexes over semaphores is the priority inversion, but since both the micropython task and the servers task are running at the same priority level (and this will remain this way), no impact should be seen when changing the mutexes for semaphores.

danicampora commented 9 years ago

Done with https://github.com/micropython/micropython/commit/5330d8996f3e64447b48ffe2824f7911337b0d07