Changed chip_type to type name to ChipType to reflect changes in stm32.h
Changed "typename" to "class" in templates.
1. Corrected TextBuffer constructor - added buffer initialization with zero char.
2. Replaced <stdint.h> include to <cstdint>.