-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpti.c
32 lines (27 loc) · 1.13 KB
/
pti.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/***********************************************************************************************//**
* \file pti.c
* \brief Functions and data related to PTI
***************************************************************************************************
* <b> (C) Copyright 2017 Silicon Labs, http://www.silabs.com</b>
***************************************************************************************************
* This file is licensed under the Silabs License Agreement. See the file
* "Silabs_License_Agreement.txt" for details. Before using this software for
* any purpose, you must agree to the terms of that agreement.
**************************************************************************************************/
#include "pti.h"
#include "rail.h"
#if defined(HAL_CONFIG)
#include "bsphalconfig.h"
#else
#include "bspconfig.h"
#endif
uint8_t configEnablePti(void)
{
RAIL_PtiConfig_t ptiConfig = RAIL_PTI_CONFIG;
RAIL_Status_t status;
status = RAIL_ConfigPti(RAIL_EFR32_HANDLE, &ptiConfig);
if (RAIL_STATUS_NO_ERROR == status) {
status = RAIL_EnablePti(RAIL_EFR32_HANDLE, true);
}
return (uint8_t)status;
}