-
Notifications
You must be signed in to change notification settings - Fork 193
Single compilation unit / In-line configuration #224
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
dc2428f
Start reducing number of compilation units (trivial cases, first)
tfry-git 2fa17a4
Move auto random seeding to hardware specific implementation files
tfry-git 74d2814
Move the remaining bits of mozzi_rand.cpp to other locations
tfry-git 1856897
Restore the plain "int" overloads to rand().
tfry-git 51ae09a
MozziGuts implementation is now included from MozziGuts.h (most impor…
tfry-git fec5394
Add - yet unused - macros for deprecation
tfry-git c9fcfd8
Move private headers to "internal", document that.
tfry-git ee4efe3
Include Mozzi.h/MozziHeadersOnly.h instead of MozziGuts.h, everywhere
tfry-git 832cf3a
Remove TimerZero-utility-lib, which is no longer used since quite som…
tfry-git 5e61065
Bye bye mozzi_config.h, hello inline configuration!
tfry-git c04b188
Merge branch 'devel/Mozzi2' into devel/single_compilation_unit
tfry-git f0bdae2
Bring back the groups that doxygen (1.9?) has dropped
tfry-git c9d7c2b
Convert external audio examples to in-line config
tfry-git 0eb96c6
Convert HIFI examples to in-line configuration
tfry-git 373daf8
Allow compilation of unsupported HIFI and STEREO examples to pass in …
tfry-git 9d64122
Fix HIFI compilation of STM32duino core
tfry-git b12d5db
Fix copyright info
tfry-git 353f91a
Fix typo
tfry-git File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| /* | ||
| * Mozzi.h | ||
| * | ||
| * Copyright 2024, Tim Barrass and the Mozzi team | ||
| * | ||
| * This file is part of Mozzi. | ||
| * | ||
| * Mozzi is licensed under a Creative Commons | ||
| * Attribution-NonCommercial-ShareAlike 4.0 International License. | ||
| * | ||
| */ | ||
|
|
||
| /** @ingroup core | ||
| * @file Mozzi.h | ||
| * | ||
| * This is the main include file in Mozzi. Almost all sketches using Mozzi will want to include this file @em exactly once. | ||
| * | ||
| * Should your sketch require \ref core Mozzi functions in more than one translation unit (i.e. you have more than one .cpp-file | ||
| * in your sketch itself), only *one* of these shall include this file, while any others shall include \ref MozziHeadersOnly instead. | ||
| * (Failing to heed this advice will lead to "duplicate definition" errors.) | ||
| */ | ||
|
|
||
| #ifndef MOZZI_H_ | ||
| #define MOZZI_H_ | ||
|
|
||
| #include "MozziGuts.h" | ||
|
|
||
| #endif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| /* | ||
| * MozziHeadersOnly.h | ||
| * | ||
| * Copyright 2024, Tim Barrass and the Mozzi team | ||
| * | ||
| * This file is part of Mozzi. | ||
| * | ||
| * Mozzi is licensed under a Creative Commons | ||
| * Attribution-NonCommercial-ShareAlike 4.0 International License. | ||
| * | ||
| */ | ||
|
|
||
| /** @ingroup core | ||
| * @file MozziHeadersOnly.h | ||
| * | ||
| * This file provides declarations of the \ref core Mozzi functions, but no implementation. Use this only, if you have more than one | ||
| * translation unit in your project (i.e. you have more than one .cpp-file in your sketch itself). Otherwise include \ref Mozzi.h, instead. | ||
| * | ||
| * (Failure to head this advice will lead to "symbol XY undefined" errors.). | ||
| */ | ||
|
|
||
| #ifndef MOZZI_HEADERS_ONLY_H_ | ||
| #define MOZZI_HEADERS_ONLY_H_ | ||
|
|
||
| #define _MOZZI_HEADER_ONLY | ||
| #include "MozziGuts.h" | ||
|
|
||
| #endif | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.