In this tutorial I've explained you about how to read an input in STM32L100RCT6 using Bare Metal Programming. Here I've used CMSIS Core and startup code.
amazon India link to buy ST-LINK V2 In-Circuit Programmer Debugger Emulator: https://amzn.to/3htHoE8
amazon India link to buy Sunrobotics ST-LINK V2 STM Programmer: https://amzn.to/3bTGvnv
If you want to buy stm32 discovery board here is the amazon india link: https://amzn.to/2GZ80Az
FB page : / embedotronics
#GPIOProgrammingSTM32 #BareMetalSTM32 #CMSISCore