Hello Ganesh,
About the gpio clock , it is different between the KE series and KL .
For the KE02 chip , the clock of gpio is enable by default after reset , you can
directly use the GPIO. For example , if you want configure the PTD1 output 0, you
can directly configure it as this :
/* Configure pin as output */
/* GPIOA_PDDR: PDD|=0x02000000 */
GPIOA_PDDR |= GPIO_PDDR_PDD(0x02000000);
/* Set initialization value */
/* GPIOA_PDOR: PDO&=~0x02000000 */
GPIOA_PDOR &= (uint32_t)~(uint32_t)(GPIO_PDOR_PDO(0x02000000));
Hope it helps
Have a great day,
Alice Yang
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------