How to control GPIOs on stm32f100

I want to realize the function of temperature control by controlling the PB14 pin of STM32F100,it would be nice if there were some reference codes.