Andrew R
/
Apple_Mbed_Studio
Apple Mbed Studio ready 15 Nov 2022
Pindef1114.h@0:3110d82c59ff, 22 months ago (annotated)
- Committer:
- andrewcrussell
- Date:
- Tue Nov 15 11:32:21 2022 +0000
- Revision:
- 0:3110d82c59ff
Apple final build Nov 15 2022
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
andrewcrussell | 0:3110d82c59ff | 1 | /************************************ Pinfef1114.h *******************************/ |
andrewcrussell | 0:3110d82c59ff | 2 | /****************** for the RC5 preamplifier copntroller program ****************/ |
andrewcrussell | 0:3110d82c59ff | 3 | DigitalOut FWD1(dp1); // these are the motor 'H' bridge drive signals |
andrewcrussell | 0:3110d82c59ff | 4 | DigitalOut REV1(dp2); // when the volume controll motor is not being driven |
andrewcrussell | 0:3110d82c59ff | 5 | // they are all OFF |
andrewcrussell | 0:3110d82c59ff | 6 | |
andrewcrussell | 0:3110d82c59ff | 7 | DigitalOut muteout(dp13); // drives the mute relay via a mosfet or transistor |
andrewcrussell | 0:3110d82c59ff | 8 | //DigitalOut muteind(dp18); |
andrewcrussell | 0:3110d82c59ff | 9 | InterruptIn mute_int(dp11); // mute p/button interrupt |
andrewcrussell | 0:3110d82c59ff | 10 | DigitalIn mute(dp11); // mute input from associated pushbutton |
andrewcrussell | 0:3110d82c59ff | 11 | |
andrewcrussell | 0:3110d82c59ff | 12 | DigitalOut stby_pa(dp25); // power amplifier standby control which follows the premap |
andrewcrussell | 0:3110d82c59ff | 13 | // but with suitable delays |
andrewcrussell | 0:3110d82c59ff | 14 | |
andrewcrussell | 0:3110d82c59ff | 15 | InterruptIn rc5int(dp17); // this is the R/C interrupt triggered by the IRx data out |
andrewcrussell | 0:3110d82c59ff | 16 | DigitalIn rc5dat(dp17); // data is read in from here - its coming from the IRx data out |
andrewcrussell | 0:3110d82c59ff | 17 | |
andrewcrussell | 0:3110d82c59ff | 18 | |
andrewcrussell | 0:3110d82c59ff | 19 | InterruptIn select_int(dp28); // select rotary encoder interrupt - we use the 'A' O/P to generate the interrupt |
andrewcrussell | 0:3110d82c59ff | 20 | DigitalIn sela(dp28); // select input rotary enc input A |
andrewcrussell | 0:3110d82c59ff | 21 | DigitalIn selb(dp27); // select input rotary enc input B |
andrewcrussell | 0:3110d82c59ff | 22 | |
andrewcrussell | 0:3110d82c59ff | 23 | DigitalIn stdby(dp26); // standby function p/button input |
andrewcrussell | 0:3110d82c59ff | 24 | InterruptIn stdby_int(dp26); // standby p/button interrupt in |
andrewcrussell | 0:3110d82c59ff | 25 | |
andrewcrussell | 0:3110d82c59ff | 26 | |
andrewcrussell | 0:3110d82c59ff | 27 | //InterruptIn tone_pb(dp15); |
andrewcrussell | 0:3110d82c59ff | 28 | //DigitalIn tone(dp15); |
andrewcrussell | 0:3110d82c59ff | 29 | //DigitalOut tone(dp25); // can only be turned on and off at this stage by the r/control |
andrewcrussell | 0:3110d82c59ff | 30 | |
andrewcrussell | 0:3110d82c59ff | 31 | DigitalOut muteLED (dp14); //illumionates whn output is muted |
andrewcrussell | 0:3110d82c59ff | 32 | DigitalIn recloop_in(dp14); // record loop p/button input |
andrewcrussell | 0:3110d82c59ff | 33 | DigitalOut recloop_out(dp16); // drives record loop LED |
andrewcrussell | 0:3110d82c59ff | 34 | DigitalOut recloop_rly(dp10); |
andrewcrussell | 0:3110d82c59ff | 35 | |
andrewcrussell | 0:3110d82c59ff | 36 | BusOut select_drv(dp11, dp4, dp5, dp6, dp9, dp10); //these are the select relay drivers |
andrewcrussell | 0:3110d82c59ff | 37 | // note that we do not explicitly define the input select output ports because we just move the active |
andrewcrussell | 0:3110d82c59ff | 38 | // output port bit around in a continuos loop with each depress of the select button. Drive the associated |
andrewcrussell | 0:3110d82c59ff | 39 | // input relays via a mosfet or transistor |
andrewcrussell | 0:3110d82c59ff | 40 | |
andrewcrussell | 0:3110d82c59ff | 41 | // DigitalOut myled(LED1); // for test purposes only - on the mbed module - comment out when not used |
andrewcrussell | 0:3110d82c59ff | 42 | // DigitalOut myled2(LED2); |
andrewcrussell | 0:3110d82c59ff | 43 | // DigitalOut sync(p29); //this is a sync pin that is toggled during IR read - used for debug only |
andrewcrussell | 0:3110d82c59ff | 44 | |
andrewcrussell | 0:3110d82c59ff | 45 | |
andrewcrussell | 0:3110d82c59ff | 46 | |
andrewcrussell | 0:3110d82c59ff | 47 | |
andrewcrussell | 0:3110d82c59ff | 48 |