The current source tree consists of STMicro's old firmware library, which is not released under the open source compatible terms. However, the latest STM32CubeF1 reimplements the peripheral routines and releases them under BSD 3-Clause ("BSD New" or "BSD Simplified") license as following:
/* COPYRIGHT(c) 2014 STMicroelectronics
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
* 3. Neither the name of STMicroelectronics nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*/
After my initial work of migration to stm32cubef1, both demos/blink_flash and demos/button work as expected.
Thank you for reporting this. I will look into it when I can. Feel free to submit what you have worked on - I can merge it into the repository and/or use it as a reference.
The current source tree consists of STMicro's old firmware library, which is not released under the open source compatible terms. However, the latest STM32CubeF1 reimplements the peripheral routines and releases them under BSD 3-Clause ("BSD New" or "BSD Simplified") license as following:
After my initial work of migration to
stm32cubef1
, bothdemos/blink_flash
anddemos/button
work as expected.