Other Parts Discussed in Thread: SYSCONFIG
Tool/software: TI-RTOS
Hi,
We use the project_zero to develop our application on latest SDK(syscfg_preview version).
We would like add the input pin(DIO11) into project_zero, but we always got high level for DIO11(we already connect DIO11 to ground). please see the following photo.
For SYS_CFG setting, please refer to following photo:
For modification code:
+/* Pin driver handles */
+static PIN_Handle QRMInputPinHandle;
+static PIN_State QRMInputPinState;
+
+
+PIN_Config QRMInputPinTable[] = {
+ QRM_SYS_ON_DET | PIN_INPUT_EN | PIN_PULLUP | PIN_IRQ_NEGEDGE,
+ PIN_TERMINATE
+};
static void ProjectZero_init(void)
{
+
+
+ QRMInputPinHandle = PIN_open(&QRMInputPinState, QRMInputPinTable);
+ if(!QRMInputPinHandle)
+ {
+ Log_error0("Error initializing QRM input pins");
+ Task_exit();
+ }
+
+
+ uint32_t IoInit = PIN_getInputValue(QRM_SYS_ON_DET);
+
+
+ if(IoInit)
+ {
+ Log_info0("High");
+
+ }
+ else
+ {
+ Log_info0("Low");
+ }
+
}
Do you have any suggestions to us?
Thank.
BR
Trevor





