Merge pull request #2074 from kaleb-himes/HARMONYv3-ZD4785

Update support for entropy source with HARMONYv3
This commit is contained in:
David Garske 2019-03-13 09:36:01 -07:00 committed by GitHub
commit 41bc83c5ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1546,7 +1546,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>