comparison examples/gpioAnalogLoopbackTest/render.cpp @ 310:02c4ca0e3718 prerelease

Renamed pinModeFrame -> pinMode
author andrewm
date Fri, 27 May 2016 18:29:20 +0100
parents 1feb9c23ac57
children 493a07f6ec09
comparison
equal deleted inserted replaced
309:6b717992c8d2 310:02c4ca0e3718
32 gAnalogOutCh, gDigitalInACh, gAnalogOutCh, 0, gDigitalOutCh, gDigitalInDCh, gDigitalOutCh, 0); 32 gAnalogOutCh, gDigitalInACh, gAnalogOutCh, 0, gDigitalOutCh, gDigitalInDCh, gDigitalOutCh, 0);
33 rt_printf("Running test with %d analog channels and a buffer size of %d\n", 33 rt_printf("Running test with %d analog channels and a buffer size of %d\n",
34 context->analogChannels, context->audioFrames); 34 context->analogChannels, context->audioFrames);
35 35
36 for(unsigned int n = 0; n < context->digitalFrames; n++){ 36 for(unsigned int n = 0; n < context->digitalFrames; n++){
37 pinModeFrame(context, n, gDigitalInACh, INPUT); 37 pinMode(context, n, gDigitalInACh, INPUT);
38 pinModeFrame(context, n, gDigitalInDCh, INPUT); 38 pinMode(context, n, gDigitalInDCh, INPUT);
39 pinModeFrame(context, n, gDigitalOutCh, OUTPUT); 39 pinMode(context, n, gDigitalOutCh, OUTPUT);
40 } 40 }
41 switch (context->analogChannels){ 41 switch (context->analogChannels){
42 case 2: 42 case 2:
43 gAnalogOutLoopDelay = context->audioFrames*2 + 3; 43 gAnalogOutLoopDelay = context->audioFrames*2 + 3;
44 gDigitalOutLoopDelay = context->audioFrames*2 + 2; 44 gDigitalOutLoopDelay = context->audioFrames*2 + 2;