Blinky code for STM32F429I-DISC1

#include "stm32f4xx.h"
			
void myDelay(int value)
{
	while(value>0)
		value--;
}

int main(void)
{
	RCC->AHB1ENR |= RCC_AHB1ENR_GPIOCEN;

	//pc2 output mode
	GPIOC->MODER |= GPIO_MODER_MODER2_0;

	while(1)
	{
		GPIOC->ODR |=  GPIO_ODR_ODR_2;

		myDelay(500000);

		GPIOC->ODR &= ~GPIO_ODR_ODR_2;

		myDelay(500000);
	}
}

LED blink using STM32F769I discovery board

#include "stm32f7xx.h"

void myDelay(int value)
{
	volatile int i,j;
	
	for(i =0;i< value;i++){
		j++;
	}
}

int main(void)
{
	
	//Enable the GPIO clock using AHB and RCC (PIN : PJ 3)
	RCC->AHB1ENR |= RCC_AHB1ENR_GPIOJEN;
	
	//Set mode register to OUTPUT mode for pin D7
	GPIOJ->MODER |= GPIO_MODER_MODER3_0;
	
	//SET OTYPER TO PUSH-PULL
//	GPIOJ->OTYPER &= ~(GPIO_OTYPER_OT_3);
	
	//SET OSPEEDR
	//GPIOJ->OSPEEDR |= GPIO_OSPEEDER_OSPEEDR3_0;
	
	//PUPDR
//	GPIOJ->PUPDR &= ~(GPIO_PUPDR_PUPDR3); //~(11) = NO pullup/pulldown
	
	while(1)
	{
			//turn on led 
		GPIOJ->ODR |= GPIO_ODR_ODR_3;

		//WAIT
		myDelay(40000);
		
		GPIOJ->ODR &= ~ GPIO_ODR_ODR_3;
		
		myDelay(40000);
		
	}
}