update readme to explain floating point printf configuration

master
James Crosby 7 years ago
parent 3966fa750e
commit 2b8fd8872e

@ -11,3 +11,28 @@ probably not succeed without target-specific startup code).
See [CHANGELOG.md](CHANGELOG.md) for the changes associated with
each version.
## Configuring floating point support in `printf`
Floating point support in `printf` is enabled by default by this target
description. (Although derived targets may override this behaviour through the
[yotta config](http://yottadocs.mbed.com/reference/config.html) system.)
If you need to change the default behaviour (perhaps because the increase in
code-size is unacceptable to you), then you can do this in the `config` section
of a target description, or in an application's `config.json` file:
```JSON
"gcc": {
"printf-float": false
}
```
Or:
```JSON
"gcc": {
"printf-float": true
}
```

Loading…
Cancel
Save