Skip to content

Commit 1fd5446

Browse files
authored
Merge pull request #344 from ianfixes/2023-01-18_logging
Logging improvements
2 parents 4358f3a + 781b873 commit 1fd5446

File tree

6 files changed

+527
-248
lines changed

6 files changed

+527
-248
lines changed

CHANGELOG.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,21 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
88
## [Unreleased]
99
### Added
1010
- Add util/atomic.h
11+
- `Logger` class to centralize CI runner script logging (in particular, indentation)
12+
- Explicit reporting of free bytes after compilation
13+
- `interrupt.h` mock
14+
- `#define` statements for analog pins `A0` - `A11`
1115

1216
### Changed
17+
- `arduino_ci.rb` uses new `Logger`
1318

1419
### Deprecated
1520

1621
### Removed
1722

1823
### Fixed
1924
- Fix phrasing of free-space check
25+
- Handle unrecognized command line errors in a nicer way
2026

2127
### Security
2228

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

cpp/arduino/ArduinoDefines.h

+14
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,20 @@
9292
#if defined(__AVR_ATmega328P__) || defined(__AVR_ATmega32U4__) || defined(__AVR_ATmega328__) || defined(__AVR_ATmega168__) || defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__) || defined(__SAM3X8E__) || defined(__SAMD21G18A__)
9393
// Verified on these platforms, see https://github.com/Arduino-CI/arduino_ci/pull/341#issuecomment-1368118880
9494
#define LED_BUILTIN 13
95+
96+
#define A0 14
97+
#define A1 15
98+
#define A2 16
99+
#define A3 17
100+
#define A4 18
101+
#define A5 19
102+
#define A6 20
103+
#define A7 21
104+
#define A8 22
105+
#define A9 23
106+
#define A10 24
107+
#define A11 25
108+
95109
#endif
96110

97111
// Arduino defines this

cpp/arduino/avr/interrupt.h

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#pragma once
2+
3+
#define _VECTOR(N) __vector_ ## N
4+
#define SIGNAL ( vector )
5+
6+
void cli() {};
7+
void sei() {};

0 commit comments

Comments
 (0)