Просмотр исходного кода

added settings for LWIP and FreeRTOS

kkitayam 5 лет назад
Родитель
Сommit
eab214e07c
2 измененных файлов с 12 добавлено и 4 удалено
  1. 10 4
      hw/bsp/gr_citrus/board.mk
  2. 2 0
      hw/bsp/gr_citrus/gr_citrus.c

+ 10 - 4
hw/bsp/gr_citrus/board.mk

@@ -1,6 +1,5 @@
 CFLAGS += \
   -nostartfiles \
-  -nostdinc \
   -ffunction-sections \
   -fdata-sections \
   -mcpu=rx610 \
@@ -17,10 +16,17 @@ else
 OPTLIBINC=$(shell dirname `which rx-elf-gcc`)../rx-elf/optlibinc
 endif
 
-# mcu driver cause following warnings
-CFLAGS += -isystem $(OPTLIBINC)
+ifeq ($(RX_NEWLIB),0)
+# setup for optlib
+CFLAGS += -nostdinc \
+  -isystem $(OPTLIBINC) \
+  -DLWIP_NO_INTTYPES_H
 
-LIBS += -loptm -loptc
+LIBS += -loptc -loptm
+else
+# setup for newlib
+LIBS += -lm
+endif
 
 MCU_DIR = hw/mcu/renesas/rx63n
 

+ 2 - 0
hw/bsp/gr_citrus/gr_citrus.c

@@ -218,4 +218,6 @@ uint32_t board_millis(void)
 {
   return system_ticks;
 }
+#else
+uint32_t SystemCoreClock = 96000000;
 #endif