File tree 2 files changed +4
-0
lines changed
raspberrypi/bindings/cyw43 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change 35
35
//|
36
36
//| They are fixed by the hardware so they cannot be constructed on demand. Instead, use
37
37
//| ``samd.clock`` to reference the desired clock."""
38
+ //|
38
39
39
40
STATIC void samd_clock_print (const mp_print_t * print , mp_obj_t self_in , mp_print_kind_t kind ) {
40
41
samd_clock_obj_t * self = MP_OBJ_TO_PTR (self_in );
@@ -92,6 +93,7 @@ MP_PROPERTY_GETTER(samd_clock_frequency_obj,
92
93
93
94
//| calibration: int
94
95
//| """Clock calibration. Not all clocks can be calibrated."""
96
+ //|
95
97
STATIC mp_obj_t samd_clock_get_calibration (mp_obj_t self_in ) {
96
98
samd_clock_obj_t * self = MP_OBJ_TO_PTR (self_in );
97
99
return mp_obj_new_int_from_uint (clock_get_calibration (self -> type , self -> index ));
Original file line number Diff line number Diff line change 38
38
//| Cannot be constructed at runtime, but may be the type of a pin object
39
39
//| in `board`. A `CywPin` can be used as a DigitalInOut, but not with other
40
40
//| peripherals such as `PWMOut`."""
41
+ //|
41
42
const mp_obj_type_t cyw43_pin_type = {
42
43
{ & mp_type_type },
43
44
.flags = MP_TYPE_FLAG_EXTENDED ,
@@ -57,6 +58,7 @@ const mp_obj_type_t cyw43_pin_type = {
57
58
//| Besides this value, there appears to be no other public documentation
58
59
//| of the values that can be used.
59
60
//| """
61
+ //|
60
62
STATIC mp_obj_t cyw43_set_power_management (const mp_obj_t value_in ) {
61
63
mp_int_t value = mp_obj_get_int (value_in );
62
64
cyw43_wifi_pm (& cyw43_state , value );
You can’t perform that action at this time.
0 commit comments