Skip to content
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
2 changes: 1 addition & 1 deletion config/user.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ unit-test:
- unit-test-time-1400
- unit-test-onewire-DS18x20-1400
- unit-test-analog-io-adc-1400
# - unit-test-analog-io-pwm-1400
- unit-test-analog-io-pwm-1400
6 changes: 4 additions & 2 deletions tests/test_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

#define TEST_PIN_ANALOG_IO_DAC 53
#define TEST_PIN_ANALOG_IO_DAC_INPUT A3

static const float test_pwm_frequencies[] = {1, 50, 5000, 50000};
#elif defined(KIT_XMC1400_ARDUINO)
#define TEST_PIN_DIGITAL_IO_OUTPUT 4
#define TEST_PIN_DIGITAL_IO_INPUT 25
Expand All @@ -47,7 +47,7 @@
#define TEST_PIN_ANALOG_IO_GND A0 // Pin connected to Ground
#define TEST_ADC_MAX_VALUE 1023
#define TEST_ADC_RESOLUTION 10 // ADC resolution

static const float test_pwm_frequencies[] = {1, 50, 5000, 20000};
#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 All @@ -60,6 +60,8 @@ extern XMCSPIClass SPI;

// TODO: Need definition of PSOC6 for spi slave test. It should be managed more effectively.
#if defined(ARDUINO_ARCH_PSOC6)
static const float test_pwm_frequencies[] = {1, 50, 5000, 50000};

// Test Pin Definitions
#define TEST_PIN_SYNC_IO 4 // IO_1
#define TEST_PIN_SPI_SSEL 3 // IO_0
Expand Down
Loading