stm32_flash: Add BKPSRAM section.
authorsjlongland <sjlongland@01035d8c-6547-0410-b346-abe4f91aad63>
Mon, 28 Sep 2015 10:43:36 +0000 (10:43 +0000)
committersjlongland <sjlongland@01035d8c-6547-0410-b346-abe4f91aad63>
Mon, 28 Sep 2015 10:43:36 +0000 (10:43 +0000)
commit018d47d8bebdcfa86f1cbb4247702d68eddfeaa1
tree30ec17446fedd97f1d7452c12aae326f0afb85b3
parentdf18fccad028e91f0fd66bacb85be510fbb18423
stm32_flash: Add BKPSRAM section.

This is taken from the datasheet.  We can place variables in there by
declaring them in the C code like this:

/*!
 * User preferences
 */
static struct prefs_t {
    /*! Serial number */
    uint64_t serial;
    /*! Menu frequency */
    uint16_t menu_freq;
    /*! Menu speed */
    uint8_t menu_speed;
    /*! Menu volume (attenuation) */
    uint8_t menu_vol;
    /*! Default operating mode */
    uint8_t op_mode;
} prefs __attribute__((section(".bkpsram")));

git-svn-id: https://svn.code.sf.net/p/freetel/code@2408 01035d8c-6547-0410-b346-abe4f91aad63
codec2-dev/stm32/stm32_flash.ld