File: test_atmega644_adc_test.c

package info (click to toggle)
simavr 1.6%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 20,268 kB
  • sloc: ansic: 362,806; makefile: 622; ruby: 70; python: 63
file content (15 lines) | stat: -rw-r--r-- 397 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "tests.h"

int main(int argc, char **argv) {
	tests_init(argc, argv);

	static const char *expected =
		"Read 8 ADC channels to test interrupts\r\n"
		"All done. Now reading the 1.1V value in pooling mode\r\n"
		"Read ADC value 0155 = 1098 mvolts -- ought to be 1098\r\n";
	tests_assert_uart_receive("atmega644_adc_test.axf", 100000,
				  expected, '0');

	tests_success();
	return 0;
}