Having trouble figuring this callback out
Posted: Fri Dec 04, 2020 10:17 pm
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
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