Skip to content
Open
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
65 changes: 39 additions & 26 deletions config/project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -194,17 +194,6 @@ unit-test:
query: onewire_DS18x20_board == '1:1'
working_dir: extras/arduino-core-tests

unit-test-iic-pingpong-1400:
- description: Compiling, flashing and monitoring I2C pingpong slave unit test.
command: make test_wire_connected2_slavepingpong
query: iic_ping_pong_multiple_boards_slave == '2:1'
working_dir: extras/arduino-core-tests

- description: Compiling, flashing and monitoring I2C pingpong master unit test.
command: make test_wire_connected2_masterpingpong
query: iic_ping_pong_multiple_boards_master == '2:1'
working_dir: extras/arduino-core-tests

unit-test-digital-io-1400:
- description: Compiling, flashing and monitoring digital IO unit test.
command: make test_digitalio_single
Expand Down Expand Up @@ -241,27 +230,51 @@ unit-test:
query: analogio_pwm_single_board == '2:1'
working_dir: extras/arduino-core-tests

unit-test-iic-1400:
- description: Compiling, flashing and monitoring timer unit test.
command: make test_wire_connected1_pingpong
query: iic_ping_pong_single_board == '2:1'
# unit-test-iic-1400:
# - description: Compiling, flashing and monitoring timer unit test.
# command: make test_wire_connected1_pingpong
# query: iic_ping_pong_single_board == '2:1'
# working_dir: extras/arduino-core-tests

unit-test-iic-pingpong-1400:
- description: Compiling, flashing and monitoring I2C pingpong slave unit test.
command: make test_wire_connected2_slavepingpong
query: iic_ping_pong_multiple_boards_slave == '2:1'
working_dir: extras/arduino-core-tests

- description: Compiling, flashing and monitoring I2C pingpong master unit test.
command: make test_wire_connected2_masterpingpong
query: iic_ping_pong_multiple_boards_master == '2:1'
working_dir: extras/arduino-core-tests

unit-test-pulse-1400:
- description: Compiling, flashing and monitoring pulse board1 unit test.
command: make test_pulse_board1
query: adv_io_pulse_board1 == '2:1'
working_dir: extras/arduino-core-tests

- description: Compiling, flashing and monitoring pulse board2 unit test.
command: make test_pulse_board2
query: adv_io_pulse_board2 == '2:1'
working_dir: extras/arduino-core-tests

unit-test-can-single-1400-2go:
unit-test-spi-single-pingpong-1400:
- description: Compiling, flashing and monitoring SPI pingpong single_board.
command: make test_spi_connected1_loopback
query: spi_ping_pong_single_board == '2:1'
working_dir: extras/arduino-core-tests

unit-test-onewire-DS18x20-1400:
- description: Compiling, flashing and monitoring OneWire sensor DS18B20 data.
command: make test_onewire_DS18x20
query: onewire_DS18x20_board == '2:1'
working_dir: extras/arduino-core-tests

unit-test-can-1400-2go:
- description: Compiling, flashing and monitoring CAN unit test.
command: make test_can_single
query: can_single_board == '1:1'
working_dir: extras/arduino-core-tests

unit-test-can-multi-1400-2go:
- description: Compiling, flashing and monitoring can node 1 test.
command: make test_can_connected2_node1
query: can_multiple_boards_node1 == '1:1'
working_dir: extras/arduino-core-tests

- description: Compiling, flashing and monitoring can node 2 test.
command: make test_can_connected2_node2
query: can_multiple_boards_node2 == '1:1'
working_dir: extras/arduino-core-tests


23 changes: 12 additions & 11 deletions config/user.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,15 @@ unit-test:
- unit-test-uart-4700
- unit-test-spi-single-pingpong-4700
- unit-test-onewire-DS18x20-4700
- unit-test-can-single-1400-2go
- unit-test-can-multi-1400-2go


# - unit-test-digital-io-1400
# - unit-test-tone-1400
# - unit-test-interrupts-1400
# - unit-test-random-1400
# - unit-test-time-1400
# - unit-test-analog-io-pwm-1400
# - unit-test-analog-io-adc-1400
- unit-test-can-1400-2go
- unit-test-digital-io-1400
- unit-test-tone-1400
- unit-test-iic-pingpong-1400
- unit-test-interrupts-1400
- unit-test-random-1400
- unit-test-spi-single-pingpong-1400
- unit-test-pulse-1400
- unit-test-time-1400
- unit-test-onewire-DS18x20-1400
# - unit-test-analog-io-adc-1400
# - unit-test-analog-io-pwm-1400
2 changes: 1 addition & 1 deletion extras/arduino-core-api
Submodule arduino-core-api updated 86 files
+2 −2 README.md
+2 −2 api/ArduinoAPI.h
+25 −11 api/HardwareSPI.h
+19 −1 test/.gitignore
+12 −2 test/CMakeLists.txt
+0 −17,802 test/external/catch/v2.13.1/include/catch.hpp
+0 −17,970 test/external/catch/v2.13.9/include/catch.hpp
+1 −1 test/src/CanMsg/test_CanExtendedId.cpp
+1 −1 test/src/CanMsg/test_CanMsg.cpp
+1 −1 test/src/CanMsg/test_CanMsg_CopyCtor.cpp
+1 −1 test/src/CanMsg/test_CanStandardId.cpp
+1 −1 test/src/CanMsg/test_isExtendedId.cpp
+1 −1 test/src/CanMsg/test_isStandardId.cpp
+1 −1 test/src/CanMsg/test_operator_assignment.cpp
+1 −1 test/src/CanMsg/test_printTo.cpp
+1 −1 test/src/CanMsgRingbuffer/test_available.cpp
+1 −1 test/src/Common/test_makeWord.cpp
+1 −1 test/src/Common/test_map.cpp
+1 −1 test/src/Common/test_max.cpp
+1 −1 test/src/Common/test_min.cpp
+1 −1 test/src/IPAddress/test_IPAddress.cpp
+1 −1 test/src/IPAddress/test_IPAddress6.cpp
+1 −1 test/src/IPAddress/test_fromString.cpp
+1 −1 test/src/IPAddress/test_fromString6.cpp
+1 −1 test/src/IPAddress/test_operator_assignment.cpp
+1 −1 test/src/IPAddress/test_operator_comparison.cpp
+1 −1 test/src/IPAddress/test_operator_comparison6.cpp
+1 −1 test/src/IPAddress/test_operator_parentheses.cpp
+1 −1 test/src/IPAddress/test_operator_parentheses6.cpp
+1 −1 test/src/IPAddress/test_printTo.cpp
+1 −1 test/src/IPAddress/test_printTo6.cpp
+1 −1 test/src/IPAddress/test_toString.cpp
+1 −1 test/src/Print/test_availableForWrite.cpp
+1 −1 test/src/Print/test_clearWriteError.cpp
+1 −1 test/src/Print/test_getWriteError.cpp
+2 −1 test/src/Print/test_print.cpp
+1 −1 test/src/Print/test_println.cpp
+1 −1 test/src/Ringbuffer/test_available.cpp
+1 −1 test/src/Ringbuffer/test_availableForStore.cpp
+1 −1 test/src/Ringbuffer/test_clear.cpp
+1 −1 test/src/Ringbuffer/test_isFull.cpp
+1 −1 test/src/Ringbuffer/test_peek.cpp
+1 −1 test/src/Ringbuffer/test_read_char.cpp
+1 −1 test/src/Ringbuffer/test_store_char.cpp
+1 −1 test/src/Stream/test_find.cpp
+1 −1 test/src/Stream/test_findUntil.cpp
+1 −1 test/src/Stream/test_getTimeout.cpp
+4 −1 test/src/Stream/test_parseFloat.cpp
+1 −1 test/src/Stream/test_parseInt.cpp
+1 −1 test/src/Stream/test_readBytes.cpp
+1 −1 test/src/Stream/test_readBytesUntil.cpp
+1 −1 test/src/Stream/test_readString.cpp
+1 −1 test/src/Stream/test_readStringUntil.cpp
+1 −1 test/src/Stream/test_setTimeout.cpp
+1 −1 test/src/String/StringPrinter.h
+1 −1 test/src/String/test_String.cpp
+3 −3 test/src/String/test_characterAccessFunc.cpp
+1 −1 test/src/String/test_compareTo.cpp
+1 −1 test/src/String/test_comparisonFunc.cpp
+1 −1 test/src/String/test_concat.cpp
+1 −1 test/src/String/test_indexOf.cpp
+1 −1 test/src/String/test_isEmpty.cpp
+1 −1 test/src/String/test_lastIndexOf.cpp
+1 −1 test/src/String/test_length.cpp
+5 −3 test/src/String/test_move.cpp
+1 −1 test/src/String/test_operators.cpp
+1 −1 test/src/String/test_remove.cpp
+1 −1 test/src/String/test_replace.cpp
+1 −1 test/src/String/test_substring.cpp
+1 −1 test/src/String/test_toDouble.cpp
+1 −1 test/src/String/test_toFloat.cpp
+1 −1 test/src/String/test_toInt.cpp
+1 −1 test/src/String/test_toLowerCase.cpp
+1 −1 test/src/String/test_toUpperCase.cpp
+1 −1 test/src/String/test_trim.cpp
+2 −1 test/src/WCharacter/test_isAscii.cpp
+2 −1 test/src/WCharacter/test_isControl.cpp
+2 −1 test/src/WCharacter/test_isDigit.cpp
+2 −1 test/src/WCharacter/test_isHexadecimalDigit.cpp
+2 −1 test/src/WCharacter/test_isLowerCase.cpp
+2 −1 test/src/WCharacter/test_isPunct.cpp
+2 −1 test/src/WCharacter/test_isSpace.cpp
+2 −1 test/src/WCharacter/test_isUpperCase.cpp
+2 −1 test/src/WCharacter/test_isWhitespace.cpp
+2 −1 test/src/WCharacter/test_toAscii.cpp
+0 −12 test/src/main.cpp
2 changes: 1 addition & 1 deletion extras/arduino-devops
Submodule arduino-devops updated 41 files
+7 −2 .github/workflows/compile-examples.yml
+6 −1 .github/workflows/release.yml
+46 −0 .github/workflows/verify-extlib.yml
+1 −0 .gitignore
+20 −0 .readthedocs.yaml
+57 −1 README.md
+80 −24 arduino-ci.py
+544 −0 arduino-extlib.py
+7 −7 config/ci-config-matrix-ifx-lib.yml
+28 −0 docs/Makefile
+70 −0 docs/_templates/layout.html
+35 −0 docs/compile-examples/description.rst
+160 −0 docs/compile-examples/getting-started.rst
+8 −0 docs/compile-examples/index.rst
+87 −0 docs/conf.py
+ docs/img/arduino-logo.png
+ docs/img/compile-examples-wflow-ga-run-success.png
+ docs/img/compile-matrix-diag.png
+ docs/img/ifx_logo_white_green_s.png
+ docs/img/release-from-ga-select-version.png
+ docs/img/release-from-ga-wflow.png
+ docs/img/release-from-release-new-release.png
+ docs/img/release-from-release-tag.png
+ docs/img/release-wflow-success.png
+44 −0 docs/index.rst
+35 −0 docs/make.bat
+10 −0 docs/overview/content.rst
+31 −0 docs/overview/motivation.rst
+30 −0 docs/overview/requirements.rst
+55 −0 docs/overview/usage.rst
+38 −0 docs/release/description.rst
+204 −0 docs/release/getting-started.rst
+11 −0 docs/release/index.rst
+9 −0 docs/requirements.txt
+299 −0 docs/scripts/arduino-ci.rst
+68 −0 docs/scripts/arduino-cli-install.rst
+379 −0 docs/scripts/arduino-extlib.rst
+227 −0 docs/scripts/arduino-packager.rst
+376 −0 docs/scripts/arduino-release.rst
+179 −0 docs/scripts/pckg-install-local.rst
+16 −16 tests/ino-ci-xmc-core.test
2 changes: 1 addition & 1 deletion extras/makers-devops
22 changes: 17 additions & 5 deletions tests/test_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@

#define SPI_TRANSFER_DELAY_US 2000
// Test Pin Definitions
#define TEST_PIN_DIGITAL_IO_OUTPUT 3 // IO_4
#define TEST_PIN_DIGITAL_IO_INPUT 2 // IO_3
#define TEST_PIN_SYNC_IO 4 // IO_1
#define TEST_PIN_PULSE 5 // IO_2
#define TEST_PIN_SPI_SSEL 10 // IO_0
#define TEST_PIN_SYNC_IO 4 // IO_1
#define TEST_PIN_SPI_SSEL 10 // IO_0
#define TEST_PIN_ONEWIRE 7

#if defined(KIT_XMC47_RELAX)
#define TEST_PIN_DIGITAL_IO_OUTPUT 3 // IO_4
#define TEST_PIN_DIGITAL_IO_INPUT 2 // IO_3
#define TEST_PIN_PULSE 5 // IO_2
#define PWM_FREQUENCY_HZ 490 // PWM Frequency in Hz
#define TEST_PIN_ANALOG_IO_VREF A2 // Pin connected to Vdd
#define TEST_PIN_ANALOG_IO_DIVIDER A1 // Pin connected to voltage divider
Expand All @@ -35,6 +35,18 @@
#define TEST_PIN_ANALOG_IO_DAC 53
#define TEST_PIN_ANALOG_IO_DAC_INPUT A3

#elif defined(KIT_XMC1400_ARDUINO)
#define TEST_PIN_DIGITAL_IO_OUTPUT 4
#define TEST_PIN_DIGITAL_IO_INPUT 25
#define TEST_PIN_PULSE 6

#define PWM_FREQUENCY_HZ 490 // PWM Frequency in Hz
#define TEST_PIN_ANALOG_IO_VREF A2 // Pin connected to Vdd
#define TEST_PIN_ANALOG_IO_DIVIDER A1 // Pin connected to voltage divider
#define TEST_PIN_ANALOG_IO_GND A0 // Pin connected to Ground
#define TEST_ADC_MAX_VALUE 1023
#define TEST_ADC_RESOLUTION 10 // ADC resolution

#elif defined(KIT_XMC14_2GO)
#define PWM_FREQUENCY_HZ 490 // PWM Frequency in Hz
#define TEST_PIN_ANALOG_IO_VREF A0 // Pin connected to Vdd
Expand Down
10 changes: 5 additions & 5 deletions variants/XMC1400/config/KIT_XMC1400_ARDUINO/pins_arduino.h
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,10 @@ extern uint8_t SCK;
#define LED3 26
#define LED_BUILTIN LED1

#define EXT_INTR_0 3
#define EXT_INTR_1 25
#define EXT_INTR_0 25
#define EXT_INTR_1 3

#define digitalPinToInterrupt(p) ((p) == 3 ? 0 : ((p) == 25 ? 1 : -1))
#define digitalPinToInterrupt(p) ((p) == 25 ? 0 : ((p) == 3 ? 1 : -1))

/* Mapping interrupt handlers. Notice that XMC1400 can have interrupt handlers working in 3 modes,
the defines below assumes the mode A. For details refer to assembly file and reference manual.
Expand Down Expand Up @@ -180,8 +180,8 @@ bool gpio_current_value[NUM_DIGITAL] = {false};
;

const XMC_PIN_INTERRUPT_t mapping_interrupt[] = {
/* 0 */ {CCU40, CCU40_CC41, 1, 1, CCU40_IN1_U0C1_DX2INS},
/* 1 */ {CCU40, CCU40_CC40, 0, 0, CCU40_IN0_U0C0_DX2INS}};
/* 0 */ {CCU40, CCU40_CC40, 0, 0, CCU40_IN0_U0C0_DX2INS},
/* 1 */ {CCU40, CCU40_CC41, 1, 1, CCU40_IN1_U0C1_DX2INS}};
const uint8_t NUM_INTERRUPT = (sizeof(mapping_interrupt) / sizeof(XMC_PIN_INTERRUPT_t));

/* Mapping of Arduino Pins to PWM4 channels as pin and index in PWM4 channel
Expand Down
Loading