forked from rogerclarkmelbourne/Arduino_STM32
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Update from main repo #1
Merged
Merged
Conversation
This file contains 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
Tested with Naze32 @72MHz & BMP280 working at 1.2Mhz It doesn't break existing code
…ne __always_inline in USBComposite library
program terminates. Recent versions of GCC use __cxa_atexit to register exit handlers which call these object destructors. With the -fno-use-cxa-atexit command line option, GCC uses atexit instead (same functionality, but only up to 32 exit handlers can be registered). Since the Arduino main process can not return, and calls to exit() simply call an infinite loop - so all of this is completely irrelevant. No exit handlers are ever called. By removing the unused __cxa_atexit functionality we save a bit of space, and enable further cleanups (in later commits).
main() never exits. The subsequent call to exit() links in the libc exit symbol and all that it calls (including free() and a few others. Removing this saves around 2k of flash.
Fixed a float constant so double precision multiply is not linked in
Corrected class definition
fix unresolved variable
corrected ADC interrupt
Currently HardwareSerial uart does not check if a framing error (parity error or invalid stop bit) has occured and simply forward the received byte to the caller. This results in spurious invalid data being received e.g. when the uart pin is left floating or when a connected device is reset. This confuses apps using uart, and cause apps to abort with errors. this fix checks received bytes for framing error (parity error or stop bit errors) and discards them if a framing error occured
This function is used in some projects (Marlin) and require to be defined
- use const for ff variable to avoid unused variable on each SPI.h include - move the spi_this refs where its used... - and also the 3 others ones : STM32F1\libraries\SPI\src\SPI.cpp:784:12 warning: enumeration value 'RCC_AHB' not handled in switch [-Wswitch] STM32F1\libraries\SPI\src\SPI.cpp:392:5: warning: this 'while' clause does not guard... [-Wmisleading-indentation] Sample use : https://travis-ci.org/MarlinFirmware/Marlin/jobs/564740480
Remove errant "init" of extern I merge this PR as it is, and keep the variable declaration, it may be used eventually in the future.
Added missing extern C to STM32ADC helper files
solves #661
[bugfix] Restore overflowed memory copy
Code cleanup and removed compiler warnings about while loops. Another commit of SPI.h will follow to complete the PR.
Completes #656 . Makes sure that the function is truly inlined.
SPI: fix annoying unused variables warnings
Update SingleChannelSingleConversion.ino
Fixed float constant so double precision multiply is not linked in
HardwareSerial handling for framing or parity error
The HardTimerAsEncoder.ino example got stuck on an ASSERT_FAULT.
Fix for possible break of DFU functionality
some additional changes for #557
Remove uncallable libc call
Handle strchr_P alias for AVR code compat
Add -fno-use-cxa-atexit compiler option to reduce unused code.
Avoid duplicate inline which newer gcc rejects
Add frequency to hardware i2c
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
No description provided.