ArduinoCore-avr
ArduinoCore-avr copied to clipboard
The Official Arduino AVR core
In order to let people use Timer0 with all its functions, mark this with the attribute 'weak', so they can redefine this function with their own code.
avr-gcc uses 16-bit type for the pointers. Therefore for when PGM data moves above 64k, it can't be read with pgm_read_word(name). It can be fixed by retrieving full data address...
### Justification: Peek is insufficient to glean data in the serial queue, it is often needed to look at the last character in the buffer. ### Implementation: Added peekLast() method...
It seems inappropriate that `u8`, `u16`, and `u32` are leaked from `USBAPI.h`, which in turn is included in `Arduino.h`, and thus polluting the global namespace: https://github.com/arduino/ArduinoCore-avr/blob/42fa4a1ea1b1b11d1cc0a60298e529d37f9d14bd/cores/arduino/USBAPI.h#L29-L31 If you try to...
``` /home/haba/.arduino15/packages/arduino/hardware/avr/1.8.5/cores/arduino/new.cpp: In function 'void* operator new(std::size_t, std::nothrow_t)': /home/haba/.arduino15/packages/arduino/hardware/avr/1.8.5/cores/arduino/new.cpp:59:60: warning: unused parameter 'tag' [-Wunused-parameter] void * operator new(std::size_t size, const std::nothrow_t tag) noexcept { ^~~ /home/haba/.arduino15/packages/arduino/hardware/avr/1.8.5/cores/arduino/new.cpp: In function 'void* operator...
Minimal repro demo: ```C++ struct InfoEntry { bool Value; constexpr InfoEntry(bool Value) : Value(Value) {} }; struct InfoDict { InfoEntry Entry[1]; constexpr InfoDict(InfoEntry Entry):Entry({Entry}){} //constexpr InfoDict(InfoEntry Entry):Entry{Entry}{} //This line is...
ATmega8/16/32 all have a shared UCSRC/UBRRH register, and the high bit selects which one is being targeted.
Commit 48bcef5a15f1b17aee877bdb8cf77c6b45faaa6e appears to have been an attempt to fix issue arduino/Arduino#1477. Contrary to what that issue says that problem was not exclusive to when two Arduinos are connected and...
hi.... something that set me itchy sometimes is the inability to change the hardcoded `\r\n` line endings in println()... additionally with adding an EXTRA BYTE to every println() (maybe not...
Hello, i've found that it's impossible to call attachInterrupt from class. Eg. from class constructor. And i've found it very annoying. Lots of people are complaining about this across the...