Skip to content

Commit 62def00

Browse files
committed
tests/test_config.h: Define SPI sync for xmc1x.
Signed-off-by: zhanglinjing <Linjing.Zhang@infineon.com>
1 parent b90390f commit 62def00

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

tests/test_config.h

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ static const float test_pwm_frequencies[] = {1, 50, 5000, 50000};
3939
#define TEST_PIN_DIGITAL_IO_OUTPUT 4
4040
#define TEST_PIN_DIGITAL_IO_INPUT 25
4141
#define TEST_PIN_PULSE 6
42-
#define TEST_PIN_SYNC_IO 5 // IO_1
43-
42+
#define TEST_PIN_SYNC_SPI 5
43+
#define TEST_PIN_SYNC_IO 4 // IO_1
4444
#define PWM_FREQUENCY_HZ 490 // PWM Frequency in Hz
4545
#define TEST_PIN_ANALOG_IO_VREF A2 // Pin connected to Vdd
4646
#define TEST_PIN_ANALOG_IO_DIVIDER A1 // Pin connected to voltage divider
@@ -49,9 +49,10 @@ static const float test_pwm_frequencies[] = {1, 50, 5000, 50000};
4949
#define TEST_ADC_RESOLUTION 10 // ADC resolution
5050
static const float test_pwm_frequencies[] = {1, 50, 5000, 20000};
5151
#elif defined(KIT_XMC11_BOOT_001)
52-
#define TEST_PIN_DIGITAL_IO_OUTPUT 3 // IO_4
53-
#define TEST_PIN_DIGITAL_IO_INPUT 2 // IO_3
54-
#define TEST_PIN_PULSE 6 // IO_2
52+
#define TEST_PIN_DIGITAL_IO_OUTPUT 3 // IO_4
53+
#define TEST_PIN_DIGITAL_IO_INPUT 2 // IO_3
54+
#define TEST_PIN_PULSE 6 // IO_2
55+
#define TEST_PIN_SYNC_SPI 5
5556
#define TEST_PIN_SYNC_IO 4 // IO_1
5657
#define PWM_FREQUENCY_HZ 490 // PWM Frequency in Hz
5758
#define TEST_PIN_ANALOG_IO_VREF A2 // Pin connected to Vdd

0 commit comments

Comments
 (0)