перенос отладки по UART на другие пины
This commit is contained in:
parent
793d9c775a
commit
e9242414a3
@ -35,17 +35,17 @@ void FRMUartInit(void)
|
||||
// GPIO_SetupPinMux() - Sets the GPxMUX1/2 and GPyMUX1/2 register bits
|
||||
// GPIO_SetupPinOptions() - Sets the direction and configuration of the GPIOS
|
||||
// These functions are found in the f2838x_gpio.c file.
|
||||
EALLOW;
|
||||
GpioCtrlRegs.GPAPUD.bit.GPIO28 = 1; // Disable pull-up
|
||||
GpioCtrlRegs.GPAPUD.bit.GPIO29 = 0;
|
||||
// EALLOW;
|
||||
// GpioCtrlRegs.GPCPUD.bit.GPIO85 = 1; // Disable pull-up
|
||||
// GpioCtrlRegs.GPCPUD.bit.GPIO84 = 0;
|
||||
|
||||
GpioCtrlRegs.GPAMUX2.bit.GPIO28 = 1; //
|
||||
GpioCtrlRegs.GPAMUX2.bit.GPIO29 = 1; //
|
||||
EDIS;
|
||||
// GPIO_SetupPinMux(28, GPIO_MUX_CPU1, 1);
|
||||
// GPIO_SetupPinOptions(28, GPIO_INPUT, GPIO_PUSHPULL);
|
||||
// GPIO_SetupPinMux(29, GPIO_MUX_CPU1, 1);
|
||||
GPIO_SetupPinOptions(29, GPIO_OUTPUT, GPIO_ASYNC);
|
||||
// GpioCtrlRegs.GPCMUX2.bit.GPIO85 = 11; //
|
||||
// GpioCtrlRegs.GPCMUX2.bit.GPIO84 = 11; //
|
||||
// EDIS;
|
||||
GPIO_SetupPinMux(85, GPIO_MUX_CPU1, 11);
|
||||
GPIO_SetupPinOptions(85, GPIO_INPUT, GPIO_PUSHPULL);
|
||||
GPIO_SetupPinMux(84, GPIO_MUX_CPU1, 11);
|
||||
GPIO_SetupPinOptions(84, GPIO_OUTPUT, GPIO_ASYNC);
|
||||
//
|
||||
// Note: Clocks were turned on to the SCIA peripheral
|
||||
// in the InitSysCtrl() function
|
||||
|
Loading…
Reference in New Issue
Block a user