{"id":21107506,"url":"https://github.com/cjhdev/avr_bits","last_synced_at":"2025-10-30T11:15:00.280Z","repository":{"id":148216335,"uuid":"157889152","full_name":"cjhdev/avr_bits","owner":"cjhdev","description":"Useful firmware components for use with avr-libc","archived":false,"fork":false,"pushed_at":"2018-12-02T15:05:56.000Z","size":40,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-21T03:42:35.997Z","etag":null,"topics":["atmega328p","avr-gcc","avr-libc"],"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/cjhdev.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":"2018-11-16T15:53:25.000Z","updated_at":"2018-12-02T15:05:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"d6d7704a-9db4-4f27-9b70-3bb92423d776","html_url":"https://github.com/cjhdev/avr_bits","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cjhdev%2Favr_bits","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cjhdev%2Favr_bits/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cjhdev%2Favr_bits/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cjhdev%2Favr_bits/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cjhdev","download_url":"https://codeload.github.com/cjhdev/avr_bits/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243551445,"owners_count":20309346,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["atmega328p","avr-gcc","avr-libc"],"created_at":"2024-11-20T00:40:17.303Z","updated_at":"2025-10-30T11:14:55.239Z","avatar_url":"https://github.com/cjhdev.png","language":"C","readme":"AVRBits\n=======\n\nA collection of useful things in C to complement existing avr-libc features.\n\nThe style will appeal to people that prefer:\n\n- standard types\n- enum instead of macros where appropriate\n- code that works correctly between mainloop and interrupt\n- code that works correctly with system clock prescaler\n\n## Supported Targets\n\n- ATMEGA328p\n\n## Modules\n\nSome modules depend on others (e.g. uart uses fifo).\n\n### pin\n\n- read and write pins using Arduino pin naming conventions\n- set/clear pin change interrupt handlers\n\n### fifo\n\n- byte oriented FIFO\n- variable buffer size set at initialisation time\n- works between interrupt and mainloop\n\n### semaphore\n\n- non-blocking semaphores (i.e. flags)\n- works between interrupt and mainloop\n\n### spi\n\n- master mode only\n- bit rate and mode settings\n- configures pins as required\n\ncompile options:\n\n- F_CPU (system clock in Hz)\n\n### uart\n\n- baud rate setting\n- buffered tx and rx\n- put/get from interrupt and mainloop\n- tx_empty/rx_ready handlers\n- depends on fifo\n\ncompile options:\n\n- F_CPU (system clock in Hz)\n- UART_TX_SIZE (tx buffer size)\n- UART_RX_SIZE (rx buffer size)\n\n### rccal\n\n- hardware dependent RC oscillator calibration\n- uses TC2 (32768Hz async mode) to calibrate RC using TC0 (io clock)\n\n## License\n\nAVRBits has an MIT license.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcjhdev%2Favr_bits","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcjhdev%2Favr_bits","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcjhdev%2Favr_bits/lists"}