датчик температуры перешёл на АЦП1

This commit is contained in:
seklyuts 2024-08-23 10:31:40 +03:00
parent d573366b75
commit a1debcfc47
4 changed files with 10 additions and 7 deletions

View File

@ -93,12 +93,12 @@ void GpioInit(void)
InputXbarRegs.INPUT4SELECT = GPIO_FaultPWMpin;//xint1
GpioCtrlRegs.GPIO_Bttonclik_MUX.bit.GPIO_Bttonclik = 0;//Buttons Clik
GpioCtrlRegs.GPIO_Bttonclik_GMUX.bit.GPIO_Bttonclik = 0;
GpioCtrlRegs.GPIO_Bttonclik_DIR.bit.GPIO_Bttonclik = 0;
GpioDataRegs.GPIO_Bttonclik_DAT.bit.GPIO_Bttonclik = 0;
GpioCtrlRegs.GPIO_Bttonclik_SEL.bit.GPIO_Bttonclik = 2;
GpioCtrlRegs.GPIO_Bttonclik_GMUX.bit.GPIO_Bttonclik = 0;
GpioCtrlRegs.GPIO_Bttonclik_DIR.bit.GPIO_Bttonclik = 0;
GpioDataRegs.GPIO_Bttonclik_DAT.bit.GPIO_Bttonclik = 0;
GpioCtrlRegs.GPIO_Bttonclik_SEL.bit.GPIO_Bttonclik = 2;
InputXbarRegs.INPUT6SELECT = GPIO_Bttonclikpin;//xint3
InputXbarRegs.INPUT6SELECT = GPIO_Bttonclikpin;//xint3
GpioCtrlRegs.GPAMUX2.bit.GPIO20 = 1;//EQEP

View File

@ -51,6 +51,8 @@
#define CONNECT_CLB1(x) EALLOW; DevCfgRegs.CPUSEL15.bit.CLB1 = x; EDIS
#define CONNECT_CLB2(x) EALLOW; DevCfgRegs.CPUSEL15.bit.CLB2 = x; EDIS
#define CONNECT_ADCA(x) EALLOW; DevCfgRegs.CPUSEL11.bit.ADC_A = x; EDIS
void InitPerif(void)
{
@ -127,6 +129,7 @@ void InitPerif(void)
CONNECT_SPIC(TO_CPU2);
CONNECT_CLB1(TO_CPU2);
CONNECT_CLB2(TO_CPU2);
CONNECT_ADCA(TO_CPU2);
Cpu1toCpu2IpcRegs.CPU1TOCPU2IPCBOOTMODE = 0x5A00C803; //str 716
Cpu1toCpu2IpcRegs.CPU1TOCPU2IPCSET.bit.IPC0 = 1;

View File

@ -33,7 +33,7 @@ void main(void)
rele_run();
// Gpio_rainbow(diod);
// AdcRun();
AdcRun();
BissClkgenRun();
}
}

View File

@ -81,7 +81,7 @@ static uint16_t diod = 0;
fault_read_ports();
}else{
buttonsDisp();
ScreenDisp();
//ScreenDisp();
}
}