{"id":20563391,"url":"https://github.com/pilotak/nomutexcan","last_synced_at":"2026-03-01T22:04:35.848Z","repository":{"id":91903470,"uuid":"211300030","full_name":"pilotak/NoMutexCAN","owner":"pilotak","description":"Mbed library for reading CAN bus in ISR","archived":false,"fork":false,"pushed_at":"2019-09-27T11:21:13.000Z","size":2,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-10T04:33:00.626Z","etag":null,"topics":["can","can-bus","mbed","mbed-os-library","mutex"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pilotak.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-09-27T11:01:02.000Z","updated_at":"2023-05-24T08:17:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"5b1b390f-e115-4767-8107-0f69a8392ebf","html_url":"https://github.com/pilotak/NoMutexCAN","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pilotak/NoMutexCAN","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pilotak%2FNoMutexCAN","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pilotak%2FNoMutexCAN/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pilotak%2FNoMutexCAN/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pilotak%2FNoMutexCAN/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pilotak","download_url":"https://codeload.github.com/pilotak/NoMutexCAN/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pilotak%2FNoMutexCAN/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29986242,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-01T21:06:37.093Z","status":"ssl_error","status_checked_at":"2026-03-01T21:05:45.052Z","response_time":124,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["can","can-bus","mbed","mbed-os-library","mutex"],"created_at":"2024-11-16T04:18:04.331Z","updated_at":"2026-03-01T22:04:30.837Z","avatar_url":"https://github.com/pilotak.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NoMutexCAN\nStandard mbed CAN library doesn't allow you to read messages in ISR. And when you try to use EventQueue (`can.attach(eQueue.event(canListen), CAN::RxIrq);`) it will give you `ISR overflow error` so the only chance is to override mutex, that's what this library do.\n\n```cpp\n#include \"mbed.h\"\n#include \"NoMutexCAN.h\"\n\nCircularBuffer\u003cCANMessage, 32\u003e queue;\nNoMutexCAN can(PB_8, PB_9);\n\nvoid canListen() {  // ISR\n    CANMessage msg;\n\n    if (can.read(msg)) {\n        queue.push(msg);\n    }\n}\n\nint main(void) {\n    can.frequency(250000);\n    can.mode(CAN::Normal);\n\n    can.attach(\u0026canListen, CAN::RxIrq);\n\n    while (1) {\n        while (!queue.empty()) {\n            CANMessage msg;\n            queue.pop(msg);\n            printf(\"ID: %X\\n\", msg.id);\n        }\n    }\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpilotak%2Fnomutexcan","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpilotak%2Fnomutexcan","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpilotak%2Fnomutexcan/lists"}