Skip to content

Commit ca47da6

Browse files
dustin-crossmanKyle Kearney
authored andcommitted
Backport #12422: Cypress Asset Update
- Update psoc6pdl to version 1.4.1.2240 - Update psoc6 core_lib to version 1.1.1.11109. - Update psoc6hal to 1.1.1.11145. - Store RTC century and RTC state information in persistent BREG register.
1 parent a15ed11 commit ca47da6

File tree

306 files changed

+19618
-3340
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

306 files changed

+19618
-3340
lines changed

targets/TARGET_Cypress/TARGET_PSOC6/psoc6csp/core_lib/include/cy_result.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
********************************************************************************
1010
* \copyright
11-
* Copyright 2018-2019 Cypress Semiconductor Corporation
11+
* Copyright 2018-2020 Cypress Semiconductor Corporation
1212
* SPDX-License-Identifier: Apache-2.0
1313
*
1414
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -69,7 +69,7 @@ typedef uint32_t cy_rslt_t;
6969

7070
/** \cond INTERNAL */
7171
/** Mask for the bit at position "x" */
72-
#define CY_BIT_MASK(x) ((1U << (x)) - 1U)
72+
#define CY_BIT_MASK(x) ((1UL << (x)) - 1U)
7373

7474
/** Bit position of the result type */
7575
#define CY_RSLT_TYPE_POSITION (16U)

targets/TARGET_Cypress/TARGET_PSOC6/psoc6csp/core_lib/include/cy_utils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
********************************************************************************
88
* \copyright
9-
* Copyright 2018-2019 Cypress Semiconductor Corporation
9+
* Copyright 2018-2020 Cypress Semiconductor Corporation
1010
* SPDX-License-Identifier: Apache-2.0
1111
*
1212
* Licensed under the Apache License, Version 2.0 (the "License");
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<version>1.1.1.11109</version>

targets/TARGET_Cypress/TARGET_PSOC6/psoc6csp/hal/include/cyhal.h

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*
1919
********************************************************************************
2020
* \copyright
21-
* Copyright 2018-2019 Cypress Semiconductor Corporation
21+
* Copyright 2018-2020 Cypress Semiconductor Corporation
2222
* SPDX-License-Identifier: Apache-2.0
2323
*
2424
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -35,7 +35,13 @@
3535
*******************************************************************************/
3636

3737
/**
38-
* \defgroup group_hal HAL Drivers
38+
* \addtogroup group_hal HAL Drivers
39+
* This section documents the drivers which form the stable API of the Cypress HAL.
40+
* In order to remain portable across platforms and HAL versions, applications should
41+
* rely only on functionality documented in this section.
42+
* \{
43+
* \defgroup group_result Result Type
44+
* \}
3945
*/
4046

4147
#pragma once
@@ -46,10 +52,12 @@
4652
#include "cyhal_adc.h"
4753
#include "cyhal_crc.h"
4854
#include "cyhal_dac.h"
55+
#include "cyhal_dma.h"
4956
#include "cyhal_flash.h"
5057
#include "cyhal_gpio.h"
5158
#include "cyhal_hwmgr.h"
5259
#include "cyhal_i2c.h"
60+
#include "cyhal_ezi2c.h"
5361
#include "cyhal_interconnect.h"
5462
#include "cyhal_lptimer.h"
5563
#include "cyhal_pwm.h"

targets/TARGET_Cypress/TARGET_PSOC6/psoc6csp/hal/include/cyhal_adc.h

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*
1010
********************************************************************************
1111
* \copyright
12-
* Copyright 2018-2019 Cypress Semiconductor Corporation
12+
* Copyright 2018-2020 Cypress Semiconductor Corporation
1313
* SPDX-License-Identifier: Apache-2.0
1414
*
1515
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -29,8 +29,21 @@
2929
* \addtogroup group_hal_adc ADC (Analog to Digital Converter)
3030
* \ingroup group_hal
3131
* \{
32-
* High level interface for interacting with the Cypress ADC.
32+
* High level interface for interacting with the analog to digital converter (ADC).
3333
*
34+
* Each ADC instance supports one or more selectable channels, each
35+
* of which can perform conversions on a different pin.
36+
* See the device datasheet for details about which pins support ADC conversion.
37+
*
38+
* In order to use the ADC, first call cyhal_adc_init to initialize an ADC instance.
39+
* Then call cyhal_adc_channel_init to initialize one or more channels associated with
40+
* that instance.
41+
*
42+
* All channels are single-ended.
43+
* The values returned by the read API are relative to the ADC's voltage range, which
44+
* is device specific.
45+
*
46+
* \defgroup group_hal_adc_common Common
3447
* \defgroup group_hal_adc_functions ADC Functions
3548
* \defgroup group_hal_adc_channel_functions ADC Channel Functions
3649
*/
@@ -59,12 +72,6 @@ extern "C" {
5972
/** No channels available */
6073
#define CYHAL_ADC_RSLT_NO_CHANNELS (CY_RSLT_CREATE(CY_RSLT_TYPE_ERROR, CYHAL_RSLT_MODULE_ADC, 3))
6174

62-
63-
/**
64-
* \addtogroup group_hal_adc_functions
65-
* \{
66-
*/
67-
6875
/** Initialize ADC peripheral
6976
*
7077
* @param[out] obj The adc object to initialize
@@ -84,13 +91,6 @@ cy_rslt_t cyhal_adc_init(cyhal_adc_t *obj, cyhal_gpio_t pin, const cyhal_clock_d
8491
*/
8592
void cyhal_adc_free(cyhal_adc_t *obj);
8693

87-
/** \} group_hal_adc_functions */
88-
89-
/**
90-
* \addtogroup group_hal_adc_channel_functions
91-
* \{
92-
*/
93-
9494
/** Initialize a single-ended ADC channel.
9595
*
9696
* Configures the pin used by ADC.
@@ -116,8 +116,6 @@ void cyhal_adc_channel_free(cyhal_adc_channel_t *obj);
116116
*/
117117
uint16_t cyhal_adc_read_u16(const cyhal_adc_channel_t *obj);
118118

119-
/** \} group_hal_adc_channel_functions */
120-
121119
#if defined(__cplusplus)
122120
}
123121
#endif

targets/TARGET_Cypress/TARGET_PSOC6/psoc6csp/hal/include/cyhal_analog_common.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
********************************************************************************
99
* \copyright
10-
* Copyright 2018-2019 Cypress Semiconductor Corporation
10+
* Copyright 2018-2020 Cypress Semiconductor Corporation
1111
* SPDX-License-Identifier: Apache-2.0
1212
*
1313
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -29,13 +29,13 @@
2929
extern "C" {
3030
#endif
3131

32-
/**
32+
/**
3333
* Initialize the programmable analog. This utilizes reference counting to avoid
3434
* repeatedly initializing the analog subsystem when multiple analog blocks are in use
3535
* */
3636
void cyhal_analog_init();
3737

38-
/**
38+
/**
3939
* Uninitialize the programmable analog. This utilizes reference counting to avoid
4040
* disabling the analog subsystem until all blocks which require it have been freed.
4141
*/

targets/TARGET_Cypress/TARGET_PSOC6/psoc6csp/hal/include/cyhal_crc.h

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
* \file cyhal_crc.h
33
*
44
* \brief
5-
* Provides a high level interface for interacting with the Cypress CRC accelerator.
5+
* Provides a high level interface for interacting with the Cypress CRC accelerator.
66
* This interface abstracts out the chip specific details. If any chip specific
77
* functionality is necessary, or performance is critical the low level functions
88
* can be used directly.
99
*
1010
********************************************************************************
1111
* \copyright
12-
* Copyright 2018-2019 Cypress Semiconductor Corporation
12+
* Copyright 2018-2020 Cypress Semiconductor Corporation
1313
* SPDX-License-Identifier: Apache-2.0
1414
*
1515
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -29,8 +29,15 @@
2929
* \addtogroup group_hal_crc CRC (Cyclic Redundancy Check)
3030
* \ingroup group_hal
3131
* \{
32-
* High level interface for interacting with the Cypress CRC.
32+
* High level interface for interacting with the cyclic redundancy check (CRC), which provides hardware
33+
* accelerated CRC computations.
34+
* The CRC APIs are structured to enable usage in situations where the entire input data
35+
* set is not available in memory at one time. Therefore, each conversion consists of three steps:
36+
* * A single call to cyhal_crc_start, to initialize data structures for this computation
37+
* * One or more calls to cyhal_crc_compute, to provide chunks of data.
38+
* * A single call to cyhal_crc_finish, to finalize the computation and retrieve the result.
3339
*
40+
* Many of the algorithm parameters can be customized; see crc_algorithm_t for more details.
3441
*/
3542

3643
#pragma once

targets/TARGET_Cypress/TARGET_PSOC6/psoc6csp/hal/include/cyhal_crc_impl.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
/***************************************************************************//**
1+
/***************************************************************************//**
22
* \file cyhal_crc_impl.h
33
*
44
* Description:
5-
* Provides a high level interface for interacting with the Cypress CRC accelerator.
5+
* Provides a high level interface for interacting with the Cypress CRC accelerator.
66
* This is a wrapper around the lower level PDL API.
77
*
88
********************************************************************************
99
* \copyright
10-
* Copyright 2018-2019 Cypress Semiconductor Corporation
10+
* Copyright 2018-2020 Cypress Semiconductor Corporation
1111
* SPDX-License-Identifier: Apache-2.0
1212
*
1313
* Licensed under the Apache License, Version 2.0 (the "License");

targets/TARGET_Cypress/TARGET_PSOC6/psoc6csp/hal/include/cyhal_crypto_common.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
* \file cyhal_crypto_common.h
33
*
44
* Description:
5-
* This file provides common defines, addresses, and functions required by drivers
5+
* This file provides common defines, addresses, and functions required by drivers
66
* using the Crypto block.
77
*
88
********************************************************************************
99
* \copyright
10-
* Copyright 2018-2019 Cypress Semiconductor Corporation
10+
* Copyright 2018-2020 Cypress Semiconductor Corporation
1111
* SPDX-License-Identifier: Apache-2.0
1212
*
1313
* Licensed under the Apache License, Version 2.0 (the "License");

targets/TARGET_Cypress/TARGET_PSOC6/psoc6csp/hal/include/cyhal_dac.h

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*
1010
********************************************************************************
1111
* \copyright
12-
* Copyright 2018-2019 Cypress Semiconductor Corporation
12+
* Copyright 2018-2020 Cypress Semiconductor Corporation
1313
* SPDX-License-Identifier: Apache-2.0
1414
*
1515
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -29,8 +29,13 @@
2929
* \addtogroup group_hal_dac DAC (Digital to Analog Converter)
3030
* \ingroup group_hal
3131
* \{
32-
* High level interface for interacting with the Cypress DAC.
32+
* High level interface for interacting with the digital to analog converter (DAC).
3333
*
34+
* This block drives a pin with a firmware configurable voltage. See the device datasheet
35+
* for details on which pins support DAC output.
36+
*
37+
* The cyhal_dac_write and cyhal_dac_read APIs are defined relative to the DAC's output
38+
* voltage range, which is device dependent.
3439
*/
3540

3641
#pragma once

0 commit comments

Comments
 (0)