Setting GPIO with API

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

cross mob
j_connor
Level 1
Level 1
First question asked Welcome!

Hi,

I am working on a project where porting SMT32+ChibiOS software into PSOC4+FreeRTOS
I have CY8CKIT-046 Pioneer kit which is based on PSOC 4200L
I did extensive research and my only IDE option is PSOC Creator (MTB doesn't support PSOC 4200)

The problem that I am facing right now is that setting up interrupts on GPIO
https://www.cypress.com/file/127121/download
I read this document thoroughly and looks like my only option is to set each GPIO pin with GUI

However, I prefer to configure it by code.

On ChibiOS, I was able to configure it like this

palSetPadMode(GPIOD, 1, PAL_MODE_INPUT_PULLDOWN);
palSetPadMode(GPIOB, 0, PAL_MODE_OUTPUT_PUSHPULL);
palSetPad(GPIOB, 0);
palReadPort(GPIOD);

Can I do something like this on PSOC Creator?

 

Thanks,

0 Likes
1 Solution
ncbs
Moderator
Moderator
Moderator
500 replies posted 50 likes received 250 sign-ins
0 Likes
1 Reply
ncbs
Moderator
Moderator
Moderator
500 replies posted 50 likes received 250 sign-ins
0 Likes