diff --git a/tests/Makefile.test b/tests/Makefile.test index 1804ba1c..f0257870 100644 --- a/tests/Makefile.test +++ b/tests/Makefile.test @@ -25,5 +25,9 @@ make FQBN=Infineon:xmc:XMC4700_Relax_Kit PORT=COM28 test_wire_connected2_slavepi ## UART # 2 boards -make FQBN=Infineon:xmc:XMC4700_Relax_Kit PORT=COM71 test_uart_connected2_tx monitor -make FQBN=Infineon:xmc:XMC4700_Relax_Kit PORT=COM28 test_uart_connected2_rx monitor \ No newline at end of file +make FQBN=arduino-git:xmc:XMC4700_Relax_Kit PORT=/dev/ttyACM0 test_uart_connected2_tx monitor +make FQBN=arduino-git:xmc:XMC4700_Relax_Kit PORT=/dev/ttyACM1 test_uart_connected2_rx monitor + +## AnalogIO + +make FQBN=arduino-git:xmc:XMC4700_Relax_Kit PORT=/dev/ttyACM0 test_analogio_adc monitor diff --git a/tests/test_config.h b/tests/test_config.h new file mode 100644 index 00000000..0e1377d2 --- /dev/null +++ b/tests/test_config.h @@ -0,0 +1,26 @@ +/** + * @file test_config.h + * @brief Configuration file for board-specific test pin definitions. + * + * This header file contains the definitions of the pins used for testing + * purposes on the specific board. + */ +#ifndef TEST_CONFIG_H +#define TEST_CONFIG_H + +#include + +// Digital I/O test pins +const uint8_t TEST_DIGITALIO_OUTPUT = 4; // IO0 +const uint8_t TEST_DIGITALIO_INPUT = 2; // IO1 + +// Analog I/O test pins +#define TEST_PIN_ANALOG_IO_VREF A0 // Pin connected to VREF +#define TEST_PIN_ANALOG_IO_DIVIDER A1 // Pin connected to voltage divider +#define TEST_PIN_ANALOG_IO_GND A2 // Pin connected to GND +#define TEST_PIN_ANALOG_IO_DAC 53 // DAC output pin, siehe pins_arduino.h, entspricht A3 (P14.8) +#define TEST_PIN_ANALOG_IO_DAC_INPUT A3 + +#define ADC_RESOLUTION 1023 // 10-bit ADC resolution + +#endif // TEST_CONFIG_H \ No newline at end of file