This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

请问RM48HDK(L952)开发板LED灯不亮,是程序问题还是硬件问题?

Other Parts Discussed in Thread: TMS570LS0432

#define hetREG1 ((hetBASE_t *)0xFFF7B800U)
#define hetPORT1 ((gioPORT_t *)0xFFF7B84CU)
void gioSetDirection(gioPORT_t *port, uint32_t dir)
{
port->DIR = dir;
}
void gioSetBit(gioPORT_t *port, uint32_t bit, uint32_t value)
{
if (value != 0)
{
port->DSET = 1 << bit;
}
else
{
port->DCLR = 1 << bit;
}
}
int main(void)
{
hetREG1->GCR = 0x01000001;
hetREG1->PULDIS = 0x00000000;
gioSetDirection(hetPORT1,0xFFFFFFFF);
gioSetBit(hetPORT1,0,1);
gioSetBit(hetPORT1,17,1);
gioSetBit(hetPORT1,18,1);
gioSetBit(hetPORT1,25,1);
gioSetBit(hetPORT1,29,1);
gioSetBit(hetPORT1,31,1);
while(1);
}