Enable High Level Support for PSoC 6 devices

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
PascalS
Level 4
Level 4
25 replies posted 10 replies posted 10 questions asked

Hi,

this week I switched from CYBLE-212006 module (PSoC 4) to the CYBLE-416045 module in PSoC Creator 4.2. I'm very surprised, that I can not use the old high level routines.

In PSoC 4 module I can write:

LED_3_green_Write(0);

But in PSoC 6 mudule I have to write:

Cy_GPIO_Pin_FastInit(LED_3_green_0_PORT, LED_3_green_0_NUM, CY_GPIO_DM_STRONG, 1, HSIOM_SEL_GPIO);

Cy_GPIO_Set(LED_3_green_0_PORT, LED_3_green_0_NUM);

That's just a very small example but when I try to setup the BLE module or an SPI interface, there are a lot of differences. And when I try to get a code example, I just get examples in the old style.

So is there a way to enable the high level routines?

Thanks!

0 Likes
1 Solution
DheerajK_81
Moderator
Moderator
Moderator
First comment on KBA First comment on blog 5 questions asked

Yes, PSoC 6 comes with a dual core architecture which comes with various complexities. PSoC 6 is completely based on the Peripheral Driver Library (PDL) to make this complexity go away. There is no seperate component based API documentation like you see in PSoC 4, it gets completely integrated into the PDL in PSoC 6.

The PDL implements a simple, consistent design based on three fundamental concepts like the code snippet you mentioned:

  • Base Hardware Address
  • Configuration Structure
  • Context Structure

I agree it might take time to get familiar with it, but once you get it, you've got it. To answer your question, there is no way to enable high level routines. The PDL format is the way to proceed. Find more information PDL 3.0 – Designed for Flexibility​.

Regards,

Dheeraj

View solution in original post

2 Replies
DheerajK_81
Moderator
Moderator
Moderator
First comment on KBA First comment on blog 5 questions asked

Yes, PSoC 6 comes with a dual core architecture which comes with various complexities. PSoC 6 is completely based on the Peripheral Driver Library (PDL) to make this complexity go away. There is no seperate component based API documentation like you see in PSoC 4, it gets completely integrated into the PDL in PSoC 6.

The PDL implements a simple, consistent design based on three fundamental concepts like the code snippet you mentioned:

  • Base Hardware Address
  • Configuration Structure
  • Context Structure

I agree it might take time to get familiar with it, but once you get it, you've got it. To answer your question, there is no way to enable high level routines. The PDL format is the way to proceed. Find more information PDL 3.0 – Designed for Flexibility​.

Regards,

Dheeraj

Thanks for your answer!

CHeers

0 Likes