aboutsummaryrefslogtreecommitdiff
path: root/libraries
diff options
context:
space:
mode:
Diffstat (limited to 'libraries')
-rw-r--r--libraries/libcli/Makefile1
-rw-r--r--libraries/libhal/Makefile2
-rw-r--r--libraries/libprof/README.md (renamed from libraries/libprof/README.txt)16
-rw-r--r--libraries/libtfm/Makefile2
-rw-r--r--libraries/mbed/Makefile2
-rw-r--r--libraries/mbed/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_CRYPTECH_ALPHA/stm32f4xx_hal_msp.c4
-rw-r--r--libraries/mbed/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_CRYPTECH_ALPHA/stm32f4xx_it.c6
7 files changed, 23 insertions, 10 deletions
diff --git a/libraries/libcli/Makefile b/libraries/libcli/Makefile
index ec79b37..cd1d3b6 100644
--- a/libraries/libcli/Makefile
+++ b/libraries/libcli/Makefile
@@ -12,6 +12,7 @@ CFLAGS += \
-DDO_SOCKET=0 \
-DDO_TAB_COMPLETION=1 \
-DDO_TELNET=0
+CFLAGS += -Wno-unused-parameter
all: libcli.a
diff --git a/libraries/libhal/Makefile b/libraries/libhal/Makefile
index bf870b9..72225e1 100644
--- a/libraries/libhal/Makefile
+++ b/libraries/libhal/Makefile
@@ -1,4 +1,6 @@
vpath %.c ${LIBHAL_SRC}
vpath %.h ${LIBHAL_SRC}
+CFLAGS += -Wno-missing-field-initializers -Wno-unused-parameter -Wno-sign-compare
+
include ${LIBHAL_SRC}/Makefile
diff --git a/libraries/libprof/README.txt b/libraries/libprof/README.md
index f0bacc7..d464644 100644
--- a/libraries/libprof/README.txt
+++ b/libraries/libprof/README.md
@@ -5,7 +5,7 @@ Origin
------
This code was copied from https://github.com/ErichStyger/mcuoneclipse.git,
-directory Examples/KDS/FRDM-K64F120M/FRDM-K64F_Profiling/Profiling, commit
+directory `Examples/KDS/FRDM-K64F120M/FRDM-K64F_Profiling/Profiling`, commit
9b7eedddd8b24968128582aedc63be95b61f782c, dated Mon Jan 9 16:56:17 2017 +0100.
References
@@ -13,11 +13,9 @@ References
I recommend reading both of these to understand how the profiling code works.
-[1]: https://mcuoneclipse.com/2015/08/23/tutorial-using-gnu-profiling-gprof-with-arm-cortex-m/
-"Tutorial: Using GNU Profiling (gprof) with ARM Cortex-M"
+1. [Tutorial: Using GNU Profiling (gprof) with ARM Cortex-M](https://mcuoneclipse.com/2015/08/23/tutorial-using-gnu-profiling-gprof-with-arm-cortex-m/)
-[2]: http://bgamari.github.io/posts/2014-10-31-semihosting.html
-"Semihosting with ARM, GCC, and OpenOCD"
+2. [Semihosting with ARM, GCC, and OpenOCD](http://bgamari.github.io/posts/2014-10-31-semihosting.html)
How to build
------------
@@ -35,8 +33,8 @@ How to run
You need to start OpenOCD on the host, and enable semihosting, at least
before you try to use it as a remote file system.
-I recommend executing the following in the projects/hsm directory, so that
-gmon.out ends up in the same directory as hsm.elf.
+I recommend executing the following in the `projects/hsm` directory, so that
+`gmon.out` ends up in the same directory as `hsm.elf`.
Start the debugger:
@@ -60,8 +58,8 @@ whatever will be exercising the hsm. Afterwards, in the console, type
`profile stop`.
After invoking `profile stop`, it can take several minutes to write
-gmon.out over OpenOCD to the host.
+`gmon.out` over OpenOCD to the host.
-In the projects/hsm directory, run gprof to analyse the gmon.out file:
+In the `projects/hsm` directory, run `gprof` to analyse the `gmon.out` file:
$ gprof hsm.elf >gprof.txt
diff --git a/libraries/libtfm/Makefile b/libraries/libtfm/Makefile
index 5be45f4..b50421c 100644
--- a/libraries/libtfm/Makefile
+++ b/libraries/libtfm/Makefile
@@ -41,7 +41,7 @@ CFLAGS := $(subst ${STM32_CFLAGS_OPTIMIZATION},${STM32_LIBTFM_CFLAGS_OPTIMIZATIO
CFLAGS += -DTFM_ARM -Dasm=__asm__ -Wa,-mimplicit-it=thumb
CFLAGS += -I${LIBTFM_SRC}/tomsfastmath/src/headers
CFLAGS += -DFP_MAX_SIZE="(${BITS}*2+(8*DIGIT_BIT))"
-CFLAGS += -Wall -W -Wshadow
+CFLAGS += -Wall -W -Wshadow -Wno-uninitialized
TARGETS := $(notdir ${HDR} ${LIB})
diff --git a/libraries/mbed/Makefile b/libraries/mbed/Makefile
index 9d68e92..873359d 100644
--- a/libraries/mbed/Makefile
+++ b/libraries/mbed/Makefile
@@ -1,6 +1,8 @@
CC=arm-none-eabi-gcc
AR=arm-none-eabi-ar
+CFLAGS += -Wno-unused-parameter
+
###########################################
vpath %.c targets/cmsis/TARGET_STM/TARGET_STM32F4 targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_CRYPTECH_DEV_BRIDGE
diff --git a/libraries/mbed/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_CRYPTECH_ALPHA/stm32f4xx_hal_msp.c b/libraries/mbed/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_CRYPTECH_ALPHA/stm32f4xx_hal_msp.c
index fa08bb5..f64e6ce 100644
--- a/libraries/mbed/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_CRYPTECH_ALPHA/stm32f4xx_hal_msp.c
+++ b/libraries/mbed/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_CRYPTECH_ALPHA/stm32f4xx_hal_msp.c
@@ -87,19 +87,23 @@ void HAL_RNG_MspDeInit(RNG_HandleTypeDef* hrng)
void HAL_SRAM_MspInit(SRAM_HandleTypeDef* hsram)
{
+ hsram = hsram;
}
void HAL_SRAM_MspDeInit(SRAM_HandleTypeDef* hsram)
{
+ hsram = hsram;
}
void HAL_SDRAM_MspInit(SDRAM_HandleTypeDef* hsdram)
{
+ hsdram = hsdram;
}
void HAL_SDRAM_MspDeInit(SDRAM_HandleTypeDef* hsdram)
{
+ hsdram = hsdram;
}
void HAL_UART_MspInit(UART_HandleTypeDef* huart)
diff --git a/libraries/mbed/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_CRYPTECH_ALPHA/stm32f4xx_it.c b/libraries/mbed/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_CRYPTECH_ALPHA/stm32f4xx_it.c
index b8b6fce..81b27cb 100644
--- a/libraries/mbed/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_CRYPTECH_ALPHA/stm32f4xx_it.c
+++ b/libraries/mbed/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_CRYPTECH_ALPHA/stm32f4xx_it.c
@@ -150,6 +150,7 @@ __weak void HAL_UART1_RxCpltCallback(UART_HandleTypeDef *huart)
/* NOTE: This function Should not be modified, when the callback is needed,
the HAL_UART1_RxCpltCallback could be implemented in the user file
*/
+ huart = huart;
}
__weak void HAL_UART2_RxCpltCallback(UART_HandleTypeDef *huart)
@@ -157,6 +158,7 @@ __weak void HAL_UART2_RxCpltCallback(UART_HandleTypeDef *huart)
/* NOTE: This function Should not be modified, when the callback is needed,
the HAL_UART2_RxCpltCallback could be implemented in the user file
*/
+ huart = huart;
}
/**
@@ -182,6 +184,7 @@ __weak void HAL_UART1_RxHalfCpltCallback(UART_HandleTypeDef *huart)
/* NOTE: This function Should not be modified, when the callback is needed,
the HAL_UART1_RxHalfCpltCallback could be implemented in the user file
*/
+ huart = huart;
}
__weak void HAL_UART2_RxHalfCpltCallback(UART_HandleTypeDef *huart)
@@ -189,10 +192,13 @@ __weak void HAL_UART2_RxHalfCpltCallback(UART_HandleTypeDef *huart)
/* NOTE: This function Should not be modified, when the callback is needed,
the HAL_UART2_RxHalfCpltCallback could be implemented in the user file
*/
+ huart = huart;
}
void HAL_UART_ErrorCallback(UART_HandleTypeDef *huart)
{
+ huart = huart;
+
/* I dunno, just trap it for now */
Error_Handler();
}