CHOPSTX = ../chopstx
-CSRC = main.c call-rsa.c mcu-stm32f103.c \
+CSRC = main.c call-rsa.c \
usb_desc.c usb_ctrl.c \
usb-ccid.c openpgp.c ac.c openpgp-do.c flash.c \
bn.c mod.c \
CSRC += usb-msc.c
endif
+ifeq ($(CHIP),stm32f103)
+CSRC += mcu-stm32f103.c
+endif
+
###################################
CC = $(CROSS)gcc
LD = $(CROSS)gcc
* For GNU/Linux emulation, we can use C library.
*/
-typedef unsigned long int size_t;
-
-#include <stddef.h> /* NULL */
+#include <stddef.h> /* NULL and size_t */
#define malloc(size) gnuk_malloc (size)
#define free(p) gnuk_free (p)