projects
/
fw
/
altos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
47004df
)
cortexelf-v1: Make bit flipping array constant
author
Keith Packard
<keithp@keithp.com>
Mon, 3 Apr 2017 18:36:52 +0000
(11:36 -0700)
committer
Keith Packard
<keithp@keithp.com>
Mon, 3 Apr 2017 18:36:52 +0000
(11:36 -0700)
Signed-off-by: Keith Packard <keithp@keithp.com>
src/cortexelf-v1/ao_flip_bits.5c
patch
|
blob
|
history
diff --git
a/src/cortexelf-v1/ao_flip_bits.5c
b/src/cortexelf-v1/ao_flip_bits.5c
index 26900893b330d74c24d1dc9540dda616034b1674..055d5299451aaac349fcf0e8d10343ffa60fffb9 100644
(file)
--- a/
src/cortexelf-v1/ao_flip_bits.5c
+++ b/
src/cortexelf-v1/ao_flip_bits.5c
@@
-9,7
+9,7
@@
int flip_bits(int a)
return result;
}
return result;
}
-printf ("static uint8_t ao_flip_bits[256] = {\n");
+printf ("static
const
uint8_t ao_flip_bits[256] = {\n");
for (int i = 0; i < 256; i++) {
printf (" 0x%02x,", flip_bits(i));
for (int i = 0; i < 256; i++) {
printf (" 0x%02x,", flip_bits(i));