mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2025-04-25 17:39:14 -04:00

- Move GPIO functions to gpio.c and gpio.h - Move string handling functions for debug to lib.c and lib.h - Add config.h and move config defines there - Add debug print functionality via FPGA with framing protocol - Add Flash Code and Flash Data functions to flash.c and flash.h
19 lines
495 B
C
19 lines
495 B
C
#ifndef __CONFIG_H__
|
|
#define __CONFIG_H__
|
|
|
|
#define USE_DEBUG_PRINT /* Enable to print debug messages */
|
|
#define DEBUG_PRINT_SW /* Enable to print debug messages via FPGA */
|
|
//#define DEBUG_PRINT_HW /* Enable to print debug messages via UART0 */
|
|
|
|
#define USE_NUM_U8
|
|
//#define USE_NUM_U32
|
|
|
|
//#define DEBUG_SETUP /* Enable to debug USB setup flow (printStrSetup,printNumU8HexSetup) */
|
|
|
|
#define USE_NUM_U8HEX
|
|
#define USE_NUM_U16HEX
|
|
//#define USE_NUM_U32HEX
|
|
//#define USE_NEGATIVE_NUMS
|
|
|
|
#endif
|