first question:
In M3's program: why the comment is:
// Give C28 control of Port C pin 6
GPIOPinConfigureCoreSelect(LED_0_BASE, LED_0_PIN, GPIO_PIN_C_CORE_SELECT);
Give C28 control of Port C pin 6, but in the source code it is:
It should be understood that it should be Give C28 control of Port E? I don't understand this. This is the first question.
#define LED_0_PERIPH SYSCTL_PERIPH_GPIOE
#define LED_0_BASE GPIO_PORTE_BASE
#define LED_0_PIN GPIO_PIN_7
second question:
In the C28 program, the code is indeed:
#define LED_0_DIR_REG GpioG1CtrlRegs.GPADIR.bit.GPIO31
#define LED_0_DAT_REG GpioG1DataRegs.GPADAT.bit.GPIO31
struct GPIOG1_DATA_REGS {
union GPADAT_REG GPADAT; // GPIO A Data Register (GPIO0 to
// 31)
May I ask this GPIO A Data Register (GPIO0 to 31) and the program in M3:
// Give C28 control of Port C pin 6
GPIOPinConfigureCoreSelect(LED_0_BASE, LED_0_PIN, GPIO_PIN_C_CORE_SELECT);
GPIOPinConfigureCoreSelect(LED_0_BASE, LED_0_PIN, GPIO_PIN_C_CORE_SELECT);
What is the relationship between the two? How does C28 control the GPIO of m3?
thank god for guidance