Skip to content
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

Logging improvements #344

Merged
merged 8 commits into from
Jun 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,21 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
## [Unreleased]
### Added
- Add util/atomic.h
- `Logger` class to centralize CI runner script logging (in particular, indentation)
- Explicit reporting of free bytes after compilation
- `interrupt.h` mock
- `#define` statements for analog pins `A0` - `A11`

### Changed
- `arduino_ci.rb` uses new `Logger`

### Deprecated

### Removed

### Fixed
- Fix phrasing of free-space check
- Handle unrecognized command line errors in a nicer way

### Security

Expand Down Expand Up @@ -52,7 +58,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
- Added a CI workflow to lint the code base
- Added a CI workflow to check for spelling errors
- Extraction of bytes usage in a compiled sketch is now calculated in a method: `ArduinoBackend.last_bytes_usage`
- Added ```nano_every``` platform to represent ```arduino:megaavr``` architecture
- Added `nano_every` platform to represent `arduino:megaavr` architecture
- Working directory is now printed in test runner output
- Explicitly include `irb` via rubygems

Expand Down
14 changes: 14 additions & 0 deletions cpp/arduino/ArduinoDefines.h
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,20 @@
#if defined(__AVR_ATmega328P__) || defined(__AVR_ATmega32U4__) || defined(__AVR_ATmega328__) || defined(__AVR_ATmega168__) || defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__) || defined(__SAM3X8E__) || defined(__SAMD21G18A__)
// Verified on these platforms, see https://github.com/Arduino-CI/arduino_ci/pull/341#issuecomment-1368118880
#define LED_BUILTIN 13

#define A0 14
#define A1 15
#define A2 16
#define A3 17
#define A4 18
#define A5 19
#define A6 20
#define A7 21
#define A8 22
#define A9 23
#define A10 24
#define A11 25

#endif

// Arduino defines this
Expand Down
7 changes: 7 additions & 0 deletions cpp/arduino/avr/interrupt.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#pragma once

#define _VECTOR(N) __vector_ ## N
#define SIGNAL ( vector )

void cli() {};
void sei() {};
Loading