参考 https://blog.openshift.com/using-subversion-with-openshift/ 1. 在www.openshift.com登录控制台,创建一个新应用,类型根据自己喜好而定,我比较熟悉python,所以选择python3.3,以下以python为例 2. 选择创建好的application,会有一个cartridges列表,在最下面有一个链接 Or, see the entire list of cartridges you can add 点击进去会显示cartridge 列表,在列表页的最下面,有一个添加用户自定义cartridge的选项,在输入框中填入 https://raw.github.com/mmcgrath-openshift/openshift-svn-cartridge/master/metadata/manifest.yml 然后点击next 3. 在接下来的页面中点击Add cartridge按钮就可以了。 svn服务器就在对应的application上添加好了,不过要访问的话需要用svn+ssh协议
按官方提供的stm32f0xx_i2c.c中的说明部分做完初始化... ============================================================================ ##### How to use this driver ##### ============================================================================ [..] (#) Enable peripheral clock using RCC_APB1PeriphClockCmd(RCC_APB1Periph_I2Cx, ENABLE) function for I2C1 or I2C2. (#) Enable SDA, SCL and SMBA (when used) GPIO clocks using RCC_AHBPeriphClockCmd() function. (#) Peripherals alternate function: (++) Connect the pin to the desired peripherals' Alternate Function (AF) using GPIO_PinAFConfig() function. (++) Configure the desired pin in alternate function by: ...
最近在一个项目中需要用到QSPI Flash,因为Micron的芯片采购不到,只好换成了Spansion(现在被Cypress收购)的,型号是S25FL256s, 没想到这个当年NOR Flash界的老大做产品居然挖了这么大一个坑,而且居然不在产品手册中告知,太无耻了。 事情是这样滴。在uboot和linux driver中把该型号支持上后,flash擦写都没有问题。于是满心欢喜的准备结项,然后问题来了。 启动过程中断电,。。。,居然岂不起来了。 没关系,可能是flash上的数据内容被破坏了,重新烧写一遍吧。 进入uboot, sf erase,。。。,Timeout? 好吧,看看flash还在不在 sf probe, flash ID居然变成了全FF,这是什么鬼? 于是开始了痛苦的排查过程,更痛苦的是,手上的10块样品被这种问题搞掉了7块了,都没得用了。 偶尔在Spansion的网站(http://core.spansion.com/article/how-do-you-avoid-corrupted-registers-in-flash-memory-during-power-loss/#.WRP1QWiGNEb)发现了这么一段话, Q: Regarding the Spansion S25FL-S flash memory device, I understand there are risks of corrupting the configuration and status registers if a power loss or system reset occurs when the system is modifying non-volatile and OTP bits. Are ther...