Skip to content
Snippets Groups Projects
Commit 509e2b72 authored by patacongo's avatar patacongo
Browse files

Work around a CodeSourcery floating point bug

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3922 42af7a65-404d-4744-a932-0658087f49c3
parent f23f7fa3
No related branches found
No related tags found
No related merge requests found
......@@ -218,7 +218,7 @@ static void stm32_i2c_setclock(FAR struct stm32_i2c_priv_s *priv, uint32_t frequ
/* Update timing and control registers */
if (frequency < 400e3) {
if (frequency < 400000) {
/* Speed: 100 kHz
* Risetime: 1000 ns
......@@ -802,7 +802,7 @@ FAR struct i2c_dev_s * up_i2cinitialize(int port)
inst->ops = &stm32_i2c_ops;
inst->priv = priv;
inst->frequency = 100e3;
inst->frequency = 100000;
inst->address = 0;
inst->flags = 0;
......
......@@ -47,6 +47,11 @@ if [ -z "${PATH_ORIG}" ]; then
export PATH_ORIG="${PATH}"
fi
# This the Cygwin path to the location where I installed the RIDE
# toolchain under windows. You will also have to edit this if you install
# the RIDE toolchain in any other location
#export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/Raisonance/Ride/arm-gcc/bin"
# This the Cygwin path to the location where I installed the CodeSourcery
# toolchain under windows. You will also have to edit this if you install
# the CodeSourcery toolchain in any other location
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment