summaryrefslogtreecommitdiffstats
path: root/src/occ_gpe0/firdata/fir_data_collect.c
diff options
context:
space:
mode:
authorDouglas Gilbert <dgilbert@us.ibm.com>2018-05-22 13:34:16 -0500
committerMartha Broyles <mbroyles@us.ibm.com>2018-05-29 14:30:07 -0400
commit5c01b5476e8fe89951611141cc780796bce52962 (patch)
treedf5b778c95acd02e2ef863e81eb77fe40bb2bada /src/occ_gpe0/firdata/fir_data_collect.c
parentaa97e176b1be739697a3375ed471a6ddce9734e7 (diff)
downloadtalos-occ-5c01b5476e8fe89951611141cc780796bce52962.tar.gz
talos-occ-5c01b5476e8fe89951611141cc780796bce52962.zip
captureFir: Add delay and sbefifo reset
Change-Id: Ieb71ecd8a90579293a3c9875275f4add8ac0c713 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/59397 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Zane C. Shelley <zshelle@us.ibm.com> Reviewed-by: Martha Broyles <mbroyles@us.ibm.com>
Diffstat (limited to 'src/occ_gpe0/firdata/fir_data_collect.c')
-rw-r--r--src/occ_gpe0/firdata/fir_data_collect.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/occ_gpe0/firdata/fir_data_collect.c b/src/occ_gpe0/firdata/fir_data_collect.c
index cf1de9d..63b46eb 100644
--- a/src/occ_gpe0/firdata/fir_data_collect.c
+++ b/src/occ_gpe0/firdata/fir_data_collect.c
@@ -31,6 +31,7 @@
#include <gpe_export.h>
extern gpe_shared_data_t * G_gpe_shared_data;
+extern void busy_wait(uint32_t t_microseconds);
/*
* Function Specification
@@ -54,6 +55,8 @@ void fir_data_collect(void)
uint8_t *l_pBuf = (uint8_t*) G_gpe_shared_data->fir_heap_buffer_ptr;
uint32_t l_pBufSize = FIR_HEAP_SECTION_SIZE;
+ busy_wait(2000000); // wait two seconds
+
l_rc = FirData_captureCsFirData(l_hBuf,
l_hBufSize,
l_pBuf,
OpenPOWER on IntegriCloud