{"id":24156268,"url":"https://github.com/dolfost/avr-cmake","last_synced_at":"2026-06-05T01:31:39.027Z","repository":{"id":245813912,"uuid":"819140307","full_name":"Dolfost/avr-cmake","owner":"Dolfost","description":"CMake template for avr projects","archived":false,"fork":false,"pushed_at":"2024-06-29T19:01:00.000Z","size":205,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-12T13:16:24.769Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Dolfost.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-06-23T22:23:29.000Z","updated_at":"2024-09-06T21:21:25.000Z","dependencies_parsed_at":"2024-06-24T10:29:07.238Z","dependency_job_id":null,"html_url":"https://github.com/Dolfost/avr-cmake","commit_stats":null,"previous_names":["dolfost/avr-cmake"],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dolfost%2Favr-cmake","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dolfost%2Favr-cmake/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dolfost%2Favr-cmake/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dolfost%2Favr-cmake/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Dolfost","download_url":"https://codeload.github.com/Dolfost/avr-cmake/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241439881,"owners_count":19963145,"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":[],"created_at":"2025-01-12T13:16:29.544Z","updated_at":"2025-03-02T00:18:04.039Z","avatar_url":"https://github.com/Dolfost.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"## CMake-avr\n\nThis repository represents an example of setting up\nan avr programming workflow with CMake build tool. \nRight now this repository contains blinker example. \nIt shows how to use static library `blink` with the \nmain `blinker` executable, making the executable\nas small as possible at the time.\n\nUser can change the build essentials at the top of [CMakeLists.txt][cmkaelists] with next variables:\n\nOption | Description | Default value |\n--- | --- | --\n|`PROG_TYPE`| Programator type. Used by `avrdude`. | `usbasp` |\n|`MCU` | Chip type. Used by the compiler and `avrdude`. | `atmega168a`|\n|`F_CPU`| Chip frequency. Used by compiler. | `1000000` |\n|`BAUD`| BAUD rate. Used by UART protocol. |`9600` |\n\nThe [CMakeLists.txt][cmkaelists] contains definitions for main executable `blinker` and some custom targets:\n- _strip_ interface for `avr-strip`\n- _hex_ interface for `avr-objcopy` .hex generation\n- _eeprom_ target to write eeprom to chip with `avr-objcopy`\n- _flash_ the `avrdude` link\n- _noflash_ the `avrdude` interface but with `-n` option (no instructions sent to chip)\n- _size_ calls the `avr-size` utility\n\nNote that You need to tell `cmake` where to find toolchain file at configure stage with\n```\ncmake -DCMAKE_TOOLCHAIN_FILE=avr.toolchain.cmake -B build\n```\nCMake 3.21 or later supports `--toolchain` option: \n```\ncmake --toolchain avr.toolchain.cmake -B build\n```\n---\n![blinker](images/blinker.jpg)\n\nHappy avr programming!\n\n[cmkaelists]: https://github.com/Dolfost/avr-cmake/blob/main/CMakeLists.txt\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdolfost%2Favr-cmake","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdolfost%2Favr-cmake","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdolfost%2Favr-cmake/lists"}