update
This commit is contained in:
parent
87c7ba9fe8
commit
c54a05270c
18 changed files with 13 additions and 1222 deletions
1043
TestTHB2.uvprojx
1043
TestTHB2.uvprojx
File diff suppressed because it is too large
Load diff
|
|
@ -21,7 +21,7 @@ PHY_WR_BLK_SIZE = 0x2000
|
|||
|
||||
__progname__ = 'PHY6222 Utility'
|
||||
__filename__ = 'rdwr_phy6222.py'
|
||||
__version__ = "29.12.23"
|
||||
__version__ = "03.01.24"
|
||||
|
||||
def ParseHexFile(hexfile):
|
||||
try:
|
||||
|
|
@ -381,13 +381,7 @@ class phyflasher:
|
|||
raddr = 0x00005414
|
||||
print ('---- Segments Table -------------------------------------')
|
||||
for ihp in hp:
|
||||
if ihp[0] == 0x1fff0000:
|
||||
faddr = 0x00005000
|
||||
raddr = faddr
|
||||
elif ihp[0] == 0x1fff1838:
|
||||
faddr = 0x00005414
|
||||
raddr = faddr
|
||||
elif (ihp[0] & 0x1fff0000) == 0x1fff0000:
|
||||
if (ihp[0] & 0x1fff0000) == 0x1fff0000:
|
||||
faddr = raddr
|
||||
raddr += (len(ihp[1])+3) & 0xfffffffc
|
||||
elif (ihp[0] & (~(MAX_FLASH_SIZE-1))) == 0x11000000:
|
||||
|
|
|
|||
|
|
@ -210,8 +210,8 @@ static void hal_init(void)
|
|||
.rd_instr = XFRD_FCMD_READ_DUAL
|
||||
};
|
||||
hal_spif_cache_init(cfg);
|
||||
LOG_INIT();
|
||||
hal_gpio_init();
|
||||
LOG_INIT();
|
||||
hal_fs_init(0x1103C000,2);
|
||||
hal_adc_init();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ PHY_WR_BLK_SIZE = 0x2000
|
|||
|
||||
__progname__ = 'PHY6222 Utility'
|
||||
__filename__ = 'rdwr_phy6222.py'
|
||||
__version__ = "29.12.23"
|
||||
__version__ = "03.01.24"
|
||||
|
||||
def ParseHexFile(hexfile):
|
||||
try:
|
||||
|
|
@ -381,13 +381,7 @@ class phyflasher:
|
|||
raddr = 0x00005414
|
||||
print ('---- Segments Table -------------------------------------')
|
||||
for ihp in hp:
|
||||
if ihp[0] == 0x1fff0000:
|
||||
faddr = 0x00005000
|
||||
raddr = faddr
|
||||
elif ihp[0] == 0x1fff1838:
|
||||
faddr = 0x00005414
|
||||
raddr = faddr
|
||||
elif (ihp[0] & 0x1fff0000) == 0x1fff0000:
|
||||
if (ihp[0] & 0x1fff0000) == 0x1fff0000:
|
||||
faddr = raddr
|
||||
raddr += (len(ihp[1])+3) & 0xfffffffc
|
||||
elif (ihp[0] & (~(MAX_FLASH_SIZE-1))) == 0x11000000:
|
||||
|
|
|
|||
|
|
@ -1,16 +1,9 @@
|
|||
/**************************************************************************************************
|
||||
*******
|
||||
**************************************************************************************************/
|
||||
|
||||
/**************************************************************************************************
|
||||
Filename: OSAL_SimpleBLEPeripheral.c
|
||||
Revised:
|
||||
Revision:
|
||||
|
||||
Description: This file contains function that allows user setup tasks
|
||||
|
||||
|
||||
|
||||
**************************************************************************************************/
|
||||
|
||||
/**************************************************************************************************
|
||||
|
|
@ -123,5 +116,3 @@ void osalInitTasks( void )
|
|||
SimpleBLEPeripheral_Init( taskID++ );
|
||||
}
|
||||
#endif
|
||||
/*********************************************************************
|
||||
*********************************************************************/
|
||||
|
|
|
|||
|
|
@ -1,7 +1,3 @@
|
|||
/**************************************************************************************************
|
||||
*******
|
||||
**************************************************************************************************/
|
||||
|
||||
/**************************************************************************************************
|
||||
Filename: SimpleBLEPeripheral_Main.c
|
||||
Revised:
|
||||
|
|
@ -53,6 +49,3 @@ int app_main(void)
|
|||
CALL-BACKS
|
||||
**************************************************************************************************/
|
||||
|
||||
|
||||
/*************************************************************************************************
|
||||
**************************************************************************************************/
|
||||
|
|
|
|||
|
|
@ -1,50 +1,3 @@
|
|||
/**************************************************************************************************
|
||||
|
||||
Phyplus Microelectronics Limited confidential and proprietary.
|
||||
All rights reserved.
|
||||
|
||||
IMPORTANT: All rights of this software belong to Phyplus Microelectronics
|
||||
Limited ("Phyplus"). Your use of this Software is limited to those
|
||||
specific rights granted under the terms of the business contract, the
|
||||
confidential agreement, the non-disclosure agreement and any other forms
|
||||
of agreements as a customer or a partner of Phyplus. You may not use this
|
||||
Software unless you agree to abide by the terms of these agreements.
|
||||
You acknowledge that the Software may not be modified, copied,
|
||||
distributed or disclosed unless embedded on a Phyplus Bluetooth Low Energy
|
||||
(BLE) integrated circuit, either as a product or is integrated into your
|
||||
products. Other than for the aforementioned purposes, you may not use,
|
||||
reproduce, copy, prepare derivative works of, modify, distribute, perform,
|
||||
display or sell this Software and/or its documentation for any purposes.
|
||||
|
||||
YOU FURTHER ACKNOWLEDGE AND AGREE THAT THE SOFTWARE AND DOCUMENTATION ARE
|
||||
PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED,
|
||||
INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF MERCHANTABILITY, TITLE,
|
||||
NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL
|
||||
PHYPLUS OR ITS SUBSIDIARIES BE LIABLE OR OBLIGATED UNDER CONTRACT,
|
||||
NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR OTHER
|
||||
LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES
|
||||
INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE
|
||||
OR CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT
|
||||
OF SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES
|
||||
(INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS.
|
||||
|
||||
**************************************************************************************************/
|
||||
|
||||
|
||||
/**************************************************************
|
||||
* COPYRIGHT(c)2018, Phy+.
|
||||
* All rights reserved.
|
||||
*
|
||||
*
|
||||
* Module Name: battery
|
||||
* File name: battery.c
|
||||
* Brief description:
|
||||
* battery module
|
||||
* Author: Eagle.Lao
|
||||
* Data: 2018-02-27
|
||||
* Revision:V0.01
|
||||
|
||||
****************************************************************/
|
||||
#include "types.h"
|
||||
#include "adc.h"
|
||||
#include "battery.h"
|
||||
|
|
|
|||
|
|
@ -1,45 +1,8 @@
|
|||
/**************************************************************************************************
|
||||
|
||||
Phyplus Microelectronics Limited confidential and proprietary.
|
||||
All rights reserved.
|
||||
|
||||
IMPORTANT: All rights of this software belong to Phyplus Microelectronics
|
||||
Limited ("Phyplus"). Your use of this Software is limited to those
|
||||
specific rights granted under the terms of the business contract, the
|
||||
confidential agreement, the non-disclosure agreement and any other forms
|
||||
of agreements as a customer or a partner of Phyplus. You may not use this
|
||||
Software unless you agree to abide by the terms of these agreements.
|
||||
You acknowledge that the Software may not be modified, copied,
|
||||
distributed or disclosed unless embedded on a Phyplus Bluetooth Low Energy
|
||||
(BLE) integrated circuit, either as a product or is integrated into your
|
||||
products. Other than for the aforementioned purposes, you may not use,
|
||||
reproduce, copy, prepare derivative works of, modify, distribute, perform,
|
||||
display or sell this Software and/or its documentation for any purposes.
|
||||
|
||||
YOU FURTHER ACKNOWLEDGE AND AGREE THAT THE SOFTWARE AND DOCUMENTATION ARE
|
||||
PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED,
|
||||
INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF MERCHANTABILITY, TITLE,
|
||||
NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL
|
||||
PHYPLUS OR ITS SUBSIDIARIES BE LIABLE OR OBLIGATED UNDER CONTRACT,
|
||||
NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR OTHER
|
||||
LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES
|
||||
INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE
|
||||
OR CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT
|
||||
OF SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES
|
||||
(INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS.
|
||||
|
||||
**************************************************************************************************/
|
||||
|
||||
|
||||
/**************************************************************
|
||||
*
|
||||
* Module Name: battery
|
||||
* File name: battery.h
|
||||
* Brief description:
|
||||
* battery module
|
||||
* Author: Eagle.Lao
|
||||
* Revision:V0.01
|
||||
|
||||
****************************************************************/
|
||||
|
||||
#ifndef _BATTERY_HEAD_FILE
|
||||
|
|
|
|||
|
|
@ -1,15 +1,3 @@
|
|||
/**************************************************************************************************
|
||||
*******
|
||||
**************************************************************************************************/
|
||||
|
||||
/**************************************************************************************************
|
||||
Filename: gpio_demo.c
|
||||
Revised: $Date $
|
||||
Revision: $Revision $
|
||||
|
||||
|
||||
**************************************************************************************************/
|
||||
|
||||
/*********************************************************************
|
||||
INCLUDES
|
||||
*/
|
||||
|
|
@ -241,5 +229,3 @@ uint16_t cli_demo_light_ctrl(uint32_t argc, uint8_t* argv[])
|
|||
mode = CLI_strtoi(argv[0], CLI_strlen(argv[0]), 16);
|
||||
return 0;
|
||||
}
|
||||
/*********************************************************************
|
||||
*********************************************************************/
|
||||
|
|
|
|||
|
|
@ -1,7 +1,3 @@
|
|||
/**************************************************************************************************
|
||||
*******
|
||||
**************************************************************************************************/
|
||||
|
||||
/**************************************************************************************************
|
||||
Filename: gpio_demo.h
|
||||
Revised: $Date $
|
||||
|
|
@ -32,8 +28,7 @@ extern "C"
|
|||
*/
|
||||
uint16 HalPeripheral_ProcessEvent( uint8 task_id, uint16 events );
|
||||
void HalPeripheral_Init(uint8 task_id);
|
||||
/*********************************************************************
|
||||
*********************************************************************/
|
||||
/********************************************************************/
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,3 @@
|
|||
/**************************************************************************************************
|
||||
*******
|
||||
**************************************************************************************************/
|
||||
|
||||
/**************************************************************************************************
|
||||
Filename: sbpProfile_ota.c
|
||||
Revised:
|
||||
|
|
@ -9,8 +5,6 @@
|
|||
|
||||
Description: This file contains the Simple GATT profile sample GATT service
|
||||
profile for use with the BLE sample application.
|
||||
|
||||
|
||||
**************************************************************************************************/
|
||||
|
||||
/*********************************************************************
|
||||
|
|
@ -455,5 +449,3 @@ bStatus_t simpleProfile_Notify( uint8 param, uint8 len, void *value )
|
|||
}
|
||||
|
||||
|
||||
/*********************************************************************
|
||||
*********************************************************************/
|
||||
|
|
|
|||
|
|
@ -1,7 +1,3 @@
|
|||
/**************************************************************************************************
|
||||
*******
|
||||
**************************************************************************************************/
|
||||
|
||||
/**************************************************************************************************
|
||||
Filename: sbpProfile_ota.h
|
||||
Revised:
|
||||
|
|
@ -124,9 +120,9 @@ extern bStatus_t SimpleProfile_SetParameter( uint8 param, uint8 len, void *value
|
|||
*/
|
||||
extern bStatus_t SimpleProfile_GetParameter( uint8 param, void *value );
|
||||
|
||||
/*********************************************************************/
|
||||
|
||||
extern bStatus_t simpleProfile_Notify( uint8 param, uint8 len, void *value );
|
||||
/*********************************************************************
|
||||
*********************************************************************/
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,3 @@
|
|||
/**************************************************************************************************
|
||||
*******
|
||||
**************************************************************************************************/
|
||||
|
||||
/**************************************************************************************************
|
||||
Filename: simpleBLEperipheral.h
|
||||
Revised:
|
||||
|
|
|
|||
|
|
@ -1,14 +1,10 @@
|
|||
/**************************************************************************************************
|
||||
*******
|
||||
**************************************************************************************************/
|
||||
|
||||
/**************************************************************************************************
|
||||
Filename: simpleBLEPeripheral.c
|
||||
Revised:
|
||||
Revision:
|
||||
|
||||
Description: This file contains the Simple BLE Peripheral sample application
|
||||
|
||||
|
||||
|
||||
**************************************************************************************************/
|
||||
/*********************************************************************
|
||||
|
|
@ -637,5 +633,3 @@ static void simpleProfileChangeCB( uint8 paramID )
|
|||
}
|
||||
#endif
|
||||
|
||||
/*********************************************************************
|
||||
*********************************************************************/
|
||||
|
|
|
|||
|
|
@ -1,9 +1,3 @@
|
|||
/**************************************************************************************************
|
||||
*******
|
||||
**************************************************************************************************/
|
||||
|
||||
|
||||
|
||||
/*********************************************************************
|
||||
INCLUDES
|
||||
*/
|
||||
|
|
@ -386,6 +380,3 @@ void TH_HandleConnStatusCB( uint16 connHandle, uint8 changeType )
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
/*********************************************************************
|
||||
*********************************************************************/
|
||||
|
|
|
|||
|
|
@ -1,7 +1,3 @@
|
|||
/**************************************************************************************************
|
||||
*******
|
||||
**************************************************************************************************/
|
||||
|
||||
|
||||
#ifndef _THSERVICE_H_
|
||||
#define _THSERVICE_H_
|
||||
|
|
|
|||
|
|
@ -204,7 +204,7 @@ int hal_gpio_pin_init(gpio_pin_e pin,gpio_dir_t type)
|
|||
if(type == GPIO_OUTPUT)
|
||||
{
|
||||
AP_GPIO->swporta_ddr |= BIT(pin);
|
||||
//m_gpioCtx.pin_assignments[pin] = GPIO_PIN_ASSI_OUT;
|
||||
m_gpioCtx.pin_assignments[pin] = GPIO_PIN_ASSI_OUT;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
|
|
@ -353,7 +353,7 @@ int hal_pwrmgr_RAM_retention_set(void)
|
|||
|
||||
int hal_pwrmgr_LowCurrentLdo_enable(void)
|
||||
{
|
||||
#ifdef CFG_SRAM_RETENTION_LOW_CURRENT_LDO_ENABLE
|
||||
#ifdef CFG_SRAM_RETENTION_LOW_CURRENT_LDO_ENABLE
|
||||
uint32_t retention_flag;
|
||||
hal_flash_read(0x1100181c,(uint8_t*)&retention_flag,4);
|
||||
|
||||
|
|
@ -363,9 +363,9 @@ int hal_pwrmgr_LowCurrentLdo_enable(void)
|
|||
}
|
||||
|
||||
return PPlus_SUCCESS;
|
||||
#else
|
||||
#else
|
||||
return PPlus_ERR_FORBIDDEN;
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
|
||||
int hal_pwrmgr_LowCurrentLdo_disable(void)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue