peek and poke

Give it a try, it costs you nothing !
Post Reply
barneyb
Posts: 10
Joined: Sat Jun 12, 2021 7:00 am
Has thanked: 5 times
Been thanked: 1 time

peek and poke

Post by barneyb »

Hi peek and poke would be handy if possible, these features make basic complete for me, helped me out lots with registers in the past. Many thanks
AndyGadget
Posts: 63
Joined: Mon Feb 15, 2021 1:44 pm
Has thanked: 24 times
Been thanked: 54 times

Re: peek and poke

Post by AndyGadget »

What would you be hoping to acheive with this, Barney?
To me it looks like the high-level commands have got it pretty well covered.
Command register reference : [External Link Removed for Guests]
barneyb
Posts: 10
Joined: Sat Jun 12, 2021 7:00 am
Has thanked: 5 times
Been thanked: 1 time

Re: peek and poke

Post by barneyb »

Hi Andy just moving back to esp8266 after using other mcus, which i inplemted peek,poke in the embedded os, i found it useful in accessing interrupt, power mode,saving and wdt registers and peeking around to see what registers get set on bootstrapped devices Thank you for the link
cicciocb
Site Admin
Posts: 309
Joined: Mon Feb 03, 2020 1:15 pm
Location: Toulouse
Has thanked: 85 times
Been thanked: 197 times
Contact:

Re: peek and poke

Post by cicciocb »

Hi barneyb,
yes it could be possible to implement these functions.
However, these should be adapted to the memory access mode (8, 16 or 32 bits access).

Do you have a real practical example of what you would like to do with these functions?
barneyb
Posts: 10
Joined: Sat Jun 12, 2021 7:00 am
Has thanked: 5 times
Been thanked: 1 time

Re: peek and poke

Post by barneyb »

hi cicciocb and thank you for bringing life to basic on latter day mcus, i can see me using many features in the rtc_cntl registers, turning wifi off,using pad state to wake it up, i do use low power clocks and watchdog timer wakeups for low consumption on gadgets operating on solar. 32bit deref pointers would be magic.
thank you barney
barneyb
Posts: 10
Joined: Sat Jun 12, 2021 7:00 am
Has thanked: 5 times
Been thanked: 1 time

Re: peek and poke

Post by barneyb »

i would also use poke and peek over easynet (saves flashing) during early development of a gadget, mini live system(poke relay1; 1 peek switch1) see how long the pump needs to run etc. i do not know if annex is subroutine threaded or not if so a return on interrupt vectors, peeking flag set for interrupt multitaking (if memory is reaching its limits with bluetooth etc).
just some thoughts and forgive my ramblings.
all the best barney
cicciocb
Site Admin
Posts: 309
Joined: Mon Feb 03, 2020 1:15 pm
Location: Toulouse
Has thanked: 85 times
Been thanked: 197 times
Contact:

Re: peek and poke

Post by cicciocb »

Hi,
it should not be hard to implement peek and poke.

I'll add in the todo list
Post Reply