We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi everyone! I have an issue that how to configure pin A5 as a PRSTB reset pin, i have read datasheet and try it like this but did not work.
uint8_t _sdcc_external_startup(void) { PAC &= ~(1<<5); CLKMD |= (1<<0); EASY_PDK_INIT_SYSCLOCK_8MHZ(); //use 8MHz sysclock EASY_PDK_CALIBRATE_IHRC(F_CPU, 5000); //tune SYSCLK to 8MHz @ 4.000V return 0; //perform normal initialization } thank in advance.
The text was updated successfully, but these errors were encountered:
My guess is that EASY_PDK_INIT_SYSCLOCK_8MHZ() is overwriting CLKMD.PA5_PRSTB back to 0, thereby disabling the reset flag.
But, this issue/code example doesn't really have anything to do with this repo, and is also really old, so closing it.
Sorry, something went wrong.
No branches or pull requests
Hi everyone!
I have an issue that how to configure pin A5 as a PRSTB reset pin, i have read datasheet and try it like this but did not work.
uint8_t _sdcc_external_startup(void)
{
PAC &= ~(1<<5);
CLKMD |= (1<<0);
EASY_PDK_INIT_SYSCLOCK_8MHZ(); //use 8MHz sysclock
EASY_PDK_CALIBRATE_IHRC(F_CPU, 5000); //tune SYSCLK to 8MHz @ 4.000V
return 0; //perform normal initialization
}
thank in advance.
The text was updated successfully, but these errors were encountered: