Update support for entropy source with HARMONYv3

This commit is contained in:
kaleb-himes
2019-02-06 13:25:05 -07:00
parent f61d99526b
commit 9a67d2a869

View File

@@ -1541,7 +1541,12 @@ int wc_GenerateSeed(OS_Seed* os, byte* output, word32 sz)
#elif defined(MICROCHIP_PIC32)
#ifdef MICROCHIP_MPLAB_HARMONY
#define PIC32_SEED_COUNT _CP0_GET_COUNT
#ifdef MICROCHIP_MPLAB_HARMONY_3
#include "system/time/sys_time.h"
#define PIC32_SEED_COUNT SYS_TIME_CounterGet
#else
#define PIC32_SEED_COUNT _CP0_GET_COUNT
#endif
#else
#if !defined(WOLFSSL_MICROCHIP_PIC32MZ)
#include <peripheral/timer.h>