Post links and attach files for documentation here, also chat about these docs freely

User avatar
By RichardS
#803 My guess is gpio_init() is already called for you, I would think its done already higher up in code....

OR make a at+gpioinit AT command that only does the init(), then try the set and clrs

I need to read the code again in sample to know....

R.
User avatar
By rudi
#808
admin wrote:
I need to read the code again in sample to know....



txs in advance,
this would be great ;-)
best wishes
rudi
;-)
User avatar
By RichardS
#809 Try:

#define GPIO_SET(pin) gpio_output_set(1<<pin,0,1<<pin,0);
#define GPIO_CLR(pin) gpio_output_set(0,1<<pin,1<<pin,0);

void gpio_output_set(uint32 set_mask,uint32 clear_mask,uint32 enable_mask,uint32 disable_mask);

Richard.
User avatar
By rudi
#810
admin wrote:Try:

#define GPIO_SET(pin) gpio_output_set(1<<pin,0,1<<pin,0);
#define GPIO_CLR(pin) gpio_output_set(0,1<<pin,1<<pin,0);

void gpio_output_set(uint32 set_mask,uint32 clear_mask,uint32 enable_mask,uint32 disable_mask);

Richard.


Hi Richard, txs for help.
for pin i will try..
pin GPIO0 : BIT0
pin GPIO1 : BIT1
pin GPIO2 : BIT2

Code: Select all#define GPIO_SET(BIT2) gpio_output_set(1<<BIT2,0,1<<BIT2,0);
#define GPIO_CLR(BIT2) gpio_output_set(0,1<<BIT2,1<<BIT2,0);


do i mean corect?

Do i need to set the PIN_FUNCTION_SELECT too?
Do you know this too?

best thank in advance - gi´ve them all a try at evening.
Best wishes!
rudi
;-)