{"id":31754618,"url":"https://github.com/eagletrt/libpal-sw","last_synced_at":"2026-07-10T16:32:11.756Z","repository":{"id":316899065,"uuid":"1026356344","full_name":"eagletrt/libpal-sw","owner":"eagletrt","description":"Peripheral Abstraction Layer (PAL) library, suited for all embedded devices","archived":false,"fork":false,"pushed_at":"2026-05-22T20:15:08.000Z","size":242,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-05-22T20:45:18.366Z","etag":null,"topics":["embedded","library","platformio","platformio-library","sw"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eagletrt.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-07-25T18:37:22.000Z","updated_at":"2025-07-25T18:39:55.000Z","dependencies_parsed_at":"2025-09-27T13:24:10.396Z","dependency_job_id":"a884d2a4-f7d1-46b4-8f8a-3caf1626a1da","html_url":"https://github.com/eagletrt/libpal-sw","commit_stats":null,"previous_names":["eagletrt/libpal-sw"],"tags_count":0,"template":false,"template_full_name":"eagletrt/libstm32-sw-template","purl":"pkg:github/eagletrt/libpal-sw","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eagletrt%2Flibpal-sw","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eagletrt%2Flibpal-sw/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eagletrt%2Flibpal-sw/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eagletrt%2Flibpal-sw/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eagletrt","download_url":"https://codeload.github.com/eagletrt/libpal-sw/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eagletrt%2Flibpal-sw/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35337280,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-10T02:00:06.465Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["embedded","library","platformio","platformio-library","sw"],"created_at":"2025-10-09T18:21:48.776Z","updated_at":"2026-07-10T16:32:11.752Z","avatar_url":"https://github.com/eagletrt.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Peripheral Abstraction Layer (P.A.L.)\nThe Peripheral Abstraction Layer library implements the logic needed to abstract a generic communication peripheral and its operations especially in embedded projects.\nIt provides a unified interface for managing message reception and transmission.\n\nThe library does not operate independently; it requires a software layer to interact with the underlying hardware, which will henceforth be referred to as the \"driver\".\nDrivers must implement low-level operations such as transmission, reception, serialization, and critical section control, while application logic interacts with a simple API.\n\n## Application Usage\n\nTo use PAL each peripheral may use one or multiple handlers that needs to be initialized.\nThe handler requires at least a callback to send the messages and optionally another one for the deserialization.\n\nPAL uses two buffers: one for message transmission and one for message reception.\nTo send a message add it to the TX buffer and execute the routine.\nWhen a message is received it can be added to the RX buffer so it can be later deserializer inside the routine.\n\n\u003e [!WARNING]\n\u003e If using the default deserializer, ensure that the destination buffer is big enough to avoid a potential buffer overflow.\n\n## Driver Setup\nDrivers act as the bridge between the hardware and PAL.\n\nA driver must:\n- Add the received message to the RX buffer of PAL;\n- Implement the low-level function to serialize and transmit the message to the correct peripheral;\n- Properly handle errors returned by PAL;\n\n## Examples\nFor more info check the [examples](./examples/) folder.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feagletrt%2Flibpal-sw","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feagletrt%2Flibpal-sw","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feagletrt%2Flibpal-sw/lists"}