6 #include "libpropeller/board/board_unit_tester.h"
36 static void setUp(
void) {
38 sut->
Start(Board::kPinMCP3208Data,
39 Board::kPinMCP3208Clock,
40 Board::kPinMCP3208Select,
kMode,
42 waitcnt(CLKFREQ / 100 + CNT);
45 static void tearDown(
void) {
51 static void test_3v3(
void) {
56 static void test_Ground(
void) {
61 static void test_3v3Over2(
void) {
65 static void test_5vOver2(
void) {
69 static void test_Average(
void) {
74 static void test_DAClow(
void) {
76 waitcnt(CLKFREQ / 100 + CNT);
80 static void test_DACHigh(
void) {
82 waitcnt(CLKFREQ / 10 + CNT);
88 static void test_DACMiddle(
void) {
89 sut->
Out(0xFFFF >> 1);
90 waitcnt(CLKFREQ / 100 + CNT);