Instead of splitting the changes across Makefile and ao_pins.h, put
them both in Makefile to simplify enabling profiling.
Signed-off-by: Keith Packard <keithp@keithp.com>
#
#PROFILE=ao_profile.c
+#PROFILE_DEF=-DAO_PROFILE=1
# ao_hmc5883.c
PRODUCT_DEF=-DMEGAMETRUM
IDPRODUCT=0x0023
-CFLAGS = $(PRODUCT_DEF) $(STM_CFLAGS) -Os -g
+CFLAGS = $(PRODUCT_DEF) $(STM_CFLAGS) $(PROFILE_DEF) -Os -g
PROG=megametrum-v0.1-$(VERSION).elf
* Profiling Viterbi decoding
*/
+#ifndef AO_PROFILE
#define AO_PROFILE 0
+#endif
#endif /* _AO_PINS_H_ */