Skip to content

10 Concurrency and synchronization - #152

Open
antman88 wants to merge 4 commits into
Kernel-GL-HRK:Anton.Degtyarovfrom
antman88:10-ConcurrencyAndSynchronization
Open

antman88 wants to merge 4 commits into
Kernel-GL-HRK:Anton.Degtyarovfrom
antman88:10-ConcurrencyAndSynchronization

Conversation

@antman88

Copy link
Copy Markdown

Tasks of improving the driver MPU6050 were implemented:
added separate thread for reading data from MPU6050,
protected static data of the driver for the case of concurrent access and
limited interaction with MPU6050 in case of frequent requests.

Added base driver for mpu6050 and overlay
for i2c for auto loading the moudle

Signed-off-by: Anton Degtyarov <ad742452@gmail.com>
Moved interaction with MPU6050 into separate thread

Signed-off-by: Anton Degtyarov <ad742452@gmail.com>
Protected static data of the driver for the case of concurrent access.

Signed-off-by: Anton Degtyarov <ad742452@gmail.com>
Limited interaction with MPU6050 in case of frequent requests:
Defined validity interval - if the latest read data is older than this threshold
then new data reading is performed, otherwise previously read data is returned.

Signed-off-by: Anton Degtyarov <ad742452@gmail.com>
@antman88 antman88 added the ready The PR is ready for review (set by author). label Dec 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready The PR is ready for review (set by author).

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant