Skip to content

Commit

Permalink
Merge pull request #344 from ianfixes/2023-01-18_logging
Browse files Browse the repository at this point in the history
Logging improvements
  • Loading branch information
ianfixes authored Jun 7, 2023
2 parents 4358f3a + 781b873 commit 1fd5446
Show file tree
Hide file tree
Showing 6 changed files with 527 additions and 248 deletions.
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

0 comments on commit 1fd5446

Please sign in to comment.