STM32 Microcontroller- GPIO Driver Development (Part-1)
GPIO Driver Development There are two files which we need to consider before developing any peripheral. 1.Driver file 2.Application file Driver File This is a header file which contains Microcontroller specific details such as: *The base addresses of various memories present in the microcontroller such as (Flash, SRAM1, SRAM2, ROM, etc). *The base addresses of various bus domains such as (AHBx domain, APBx domain). *The base addresses of various peripherals present in different bus domains of the microcontroller. *Clock Management macros(i.e, clock enable and clock disable micros) *Interrupts definition. *Peripheral Register definition structures. *Peripheral Register bit definition Define Base Addresses of various memories in the header file #define FLASH_BASEADDR 0x0800 0000U #define SRAM1_BASEADDR 0x2000 0000U #define SRAM2_BASEADDR 0x2000 1C00U #define ROM_BASEADDR ...