index c27e2289bf6f461ad577050f9eda1ea87a223b5f..c8847eef1bdb162e8b537a47bd6ded23d79e399d 100644 (file)
#include <stdio.h>
#include <string.h>
#include "platform.h"
-#include "../include/types.h"
+#include "types.h"
+#include "ti/csl/csl_semAux.h"
/* NOR writer utility version */
char version[] = "01.00.00.02";
}
}
+void Osal_platformSpiCsEnter(void)
+{
+ /* Get the hardware semaphore.
+ *
+ * Acquire Multi core CPPI synchronization lock
+ */
+ while ((CSL_semAcquireDirect (3)) == 0);
+
+ return;
+}
+
+void Osal_platformSpiCsExit (void)
+{
+ /* Release the hardware semaphore
+ *
+ * Release multi-core lock.
+ */
+ CSL_semReleaseSemaphore (3);
+
+ return;
+}
+
/******************************************************************************
* Function: print_platform_errno
******************************************************************************/