I’m trying to get the crystal clock signal on GPIO0 but it doesn’t seem to work for me !
I added this function to set the mode on GPIO0
[code]#define GPIO_PIN0_CRYCLK 0x00000008UL
void dwt_setcrystalsingalmode( void )
{
uint32 gpio_mode = dwt_read32bitoffsetreg(GPIO_CTRL_ID, GPIO_MODE_OFFSET);
gpio_mode &= ~(GPIO_MSGP7_MASK);
gpio_mode |= GPIO_PIN0_CRYCLK;
dwt_write32bitoffsetreg(GPIO_CTRL_ID, GPIO_MODE_OFFSET, gpio_mode);
gpio_mode = dwt_read32bitoffsetreg(GPIO_CTRL_ID, GPIO_MODE_OFFSET);
}
[/code]
And while in spi low speed (2 Mbps) I configure the init the mdoule then the GPIO0
if (dwt_initialise(DWT_LOADUCODE) == DWT_SUCCESS )
{
dwt_setcrystalsingalmode();
while(1);
}
It doesn’t seem to change anything on the GPIO0 output ! am I misisng something ?