diff options
author | Marti Bolivar <mbolivar@leaflabs.com> | 2012-06-02 20:26:10 -0400 |
---|---|---|
committer | Marti Bolivar <mbolivar@leaflabs.com> | 2012-06-02 20:31:52 -0400 |
commit | ff6a1e449f6e722ca33c8a0d4131574b6efc02f9 (patch) | |
tree | b1ecafd2f2c0acb37c349503bbf3a00f0c4e674a /wirish/wirish_digital.cpp | |
parent | 33b972e7e214e291bd62f83a0621fb87c267a9de (diff) | |
download | librambutan-ff6a1e449f6e722ca33c8a0d4131574b6efc02f9.tar.gz librambutan-ff6a1e449f6e722ca33c8a0d4131574b6efc02f9.zip |
Sort the rcc_clk_id enumerators semi-alphabetically.
Only semi-alphabetically because peripherals are kept together (so the
UARTs sort as if they were USARTs). Advantages:
- It lets us play numeric comparison and lookup-table hacks, as we now
have the property that the rcc_clk_ids for a given peripheral are a
contiguous range of integers.
- It will hopefully let the compiler emit faster/smaller code for
switches over a dev->clk_id.
- It's better intuitively.
Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
Diffstat (limited to 'wirish/wirish_digital.cpp')
0 files changed, 0 insertions, 0 deletions