diff options
author | Fredrik Thulin <fredrik@thulin.net> | 2016-11-21 11:45:58 +0100 |
---|---|---|
committer | Fredrik Thulin <fredrik@thulin.net> | 2016-11-21 14:14:09 +0100 |
commit | e7f5fdebef90d0be01edeabd4ea260138ed1fbd0 (patch) | |
tree | 2396c0328e3bbee3f8286fe3c0b443bef4c76d58 /src/cc20rng/stm_init.h | |
parent | c4678339908e413cbc6751cf863267807acafc85 (diff) |
add RNG using ChaCha20 as CSPRNG
Diffstat (limited to 'src/cc20rng/stm_init.h')
-rw-r--r-- | src/cc20rng/stm_init.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/cc20rng/stm_init.h b/src/cc20rng/stm_init.h new file mode 100644 index 0000000..d58c254 --- /dev/null +++ b/src/cc20rng/stm_init.h @@ -0,0 +1,18 @@ +#ifndef __STM_INIT_H +#define __STM_INIT_H + +#include "stm32f4xx_hal.h" + +#define LED_PORT GPIOB +#define LED_RED GPIO_PIN_12 +#define LED_YELLOW GPIO_PIN_13 +#define LED_GREEN GPIO_PIN_14 +#define LED_BLUE GPIO_PIN_15 + +extern UART_HandleTypeDef huart1; +extern UART_HandleTypeDef huart2; +extern DMA_HandleTypeDef hdma_tim; + +extern void stm_init(uint32_t *buf0, uint16_t counters); + +#endif /* __STM_INIT_H */ |