Question
Saving a Float to BKP Register
Posted on May 28, 2013 at 12:58
Hi,
I'm fairly new to the world of microcontrollers. I'm using the STM32F103ZG on the MCBSTM32E development board and am saving user-defined inputs to the BKP registers. Most inputs are positvie, small integers. However, I need to save a floating point input. The BKP write function in the STM library, BKP_WriteBackupRegister, is configured to accept uint16_t and I'm pretty sure it's not as simple as creating a copy of that routine and declaring the Data parameter to be float. What's the best way to save a float to a BKP register? Thanks in advance, Lisa