3333//| class Clock:
3434//| """Identifies a clock on the microcontroller.
3535//|
36- //| They are fixed by the hardware so they cannot be constructed on demand. Instead, use
37- //| ``samd.clock`` to reference the desired clock."""
38- //|
36+ //| They are fixed by the hardware so they cannot be constructed on demand. Instead, use
37+ //| ``samd.clock`` to reference the desired clock."""
3938
4039STATIC void samd_clock_print (const mp_print_t * print , mp_obj_t self_in , mp_print_kind_t kind ) {
4140 samd_clock_obj_t * self = MP_OBJ_TO_PTR (self_in );
@@ -45,7 +44,6 @@ STATIC void samd_clock_print(const mp_print_t *print, mp_obj_t self_in, mp_print
4544
4645//| enabled: bool
4746//| """Is the clock enabled? (read-only)"""
48- //|
4947STATIC mp_obj_t samd_clock_get_enabled (mp_obj_t self_in ) {
5048 samd_clock_obj_t * self = MP_OBJ_TO_PTR (self_in );
5149 return mp_obj_new_bool (clock_get_enabled (self -> type , self -> index ));
@@ -58,7 +56,6 @@ MP_PROPERTY_GETTER(samd_clock_enabled_obj,
5856
5957//| parent: Union[Clock, None]
6058//| """Clock parent. (read-only)"""
61- //|
6259STATIC mp_obj_t samd_clock_get_parent (mp_obj_t self_in ) {
6360 samd_clock_obj_t * self = MP_OBJ_TO_PTR (self_in );
6461 uint8_t p_type , p_index ;
@@ -83,7 +80,6 @@ MP_PROPERTY_GETTER(samd_clock_parent_obj,
8380
8481//| frequency: int
8582//| """Clock frequency in Herz. (read-only)"""
86- //|
8783STATIC mp_obj_t samd_clock_get_frequency (mp_obj_t self_in ) {
8884 samd_clock_obj_t * self = MP_OBJ_TO_PTR (self_in );
8985 return mp_obj_new_int_from_uint (clock_get_frequency (self -> type , self -> index ));
@@ -96,7 +92,6 @@ MP_PROPERTY_GETTER(samd_clock_frequency_obj,
9692
9793//| calibration: int
9894//| """Clock calibration. Not all clocks can be calibrated."""
99- //|
10095STATIC mp_obj_t samd_clock_get_calibration (mp_obj_t self_in ) {
10196 samd_clock_obj_t * self = MP_OBJ_TO_PTR (self_in );
10297 return mp_obj_new_int_from_uint (clock_get_calibration (self -> type , self -> index ));
0 commit comments