@@ -33,8 +33,11 @@ extern "C" {
33
33
* This function is called directly by core_util_critical_section_enter on
34
34
* first entrance to a critical section.
35
35
*
36
- * The default behavior of this function is to save the current state of
37
- * interrupts before disabling them.
36
+ * There is a default implementation of this function which will save the
37
+ * current state of interrupts before disabling them. This implementation can
38
+ * be found in mbed_critical_section_api.c. This behaviour is can be overridden
39
+ * on a per platform basis by providing a different implementation within the
40
+ * correct targets directory.
38
41
*
39
42
* The function is only called once per critical section by
40
43
* core_util_critical_section_enter. When implementing this function for a
@@ -49,8 +52,11 @@ void hal_critical_section_enter(void);
49
52
* This function is called directly by core_util_critical_section_exit on the
50
53
* final exit from a critical section.
51
54
*
52
- * The default behavior of this function is to restore the state of interrupts
53
- * as they were prior to entering this critical section.
55
+ * There is a default implementation of this function, it will restore the
56
+ * state of the interrupts as they were prior to entering this critical
57
+ * section, this implementation can be found in mbed_critical_section_api.c.
58
+ * This behavior is overridable by providing a different function
59
+ * implementation within the correct targets directory.
54
60
*
55
61
* This function is only called once per critical section. When implemented
56
62
* for a specific platform it must restore any state that was saved upon
0 commit comments