/* * Translate HAL error codes to strings. */ #include #include #include #include #include #include "cryptech.h" #define DEFINE_HAL_ERROR(_code_,_text_) \ case _code_: return _text_; const char *hal_error_string(const hal_error_t code) { switch (code) { HAL_ERROR_LIST; default: return "Unknown HAL error code"; } } #undef DEFINE_HAL_ERROR git'>
aboutsummaryrefslogblamecommitdiff
blob: acf272060bbaf007bc3301a71e1f4189239bf819 (plain) (tree)
1
2
3
4
5
6
7
8
9

               
                                                                                                 
 




                              
                                        
                                                                 
                                          




                      

                   
TEST = cli-test

OBJS = crc32.o test_sdram.o mgmt-cli.o mgmt-dfu.c mgmt-fpga.c mgmt-misc.c mgmt-show.c mgmt-test.c

CFLAGS += -I$(LIBCLI_DIR)
LIBS += $(LIBCLI_DIR)/libcli.a

all: $(TEST:=.elf)

%.elf: %.o $(BOARD_OBJS) $(OBJS) $(LIBS)
	$(CC) $(CFLAGS) $^ -o $@ -T$(LDSCRIPT) -g -Wl,-Map=$*.map
	$(OBJCOPY) -O binary $*.elf $*.bin
	$(SIZE) $*.elf

clean:
	rm -f *.o
	rm -f *.elf
	rm -f *.bin
	rm -f *.map