Hello all,
In esp32-hal-cpu.h there is a line
typedef void (* apb_change_cb_t) (void * arg, apb_change_ev_t ev_type, uint32_t old_apb, uint32_t new_apb);
I am having trouble understanding what this means. What I think I do understand is this is the way to change the apb rate.
and it returns a pointer to a call back type. So anytime you change the apb rate it will also execute a callback ?
Maybe some of you real programmers can help me out.
Thanks in advance
Having trouble figuring this callback out
-
- Posts: 828
- Joined: Mon Jul 22, 2019 3:20 pm
Re: Having trouble figuring this callback out
I think it is for signalling hardware in the hal that need to know when the apb frequency changes. If you want to change the system frequency, use setCpuFrequencyMhz().
Re: Having trouble figuring this callback out
Based on this declaration how would I call it from my program.
Who is online
Users browsing this forum: No registered users and 76 guests