@@ -294,23 +294,6 @@ static mp_obj_t pyb_standby(void) {
294294 return mp_const_none ;
295295}
296296
297- mp_obj_t pyb_usart_send (mp_obj_t data ) {
298- usart_tx_char (mp_obj_get_int (data ));
299- return mp_const_none ;
300- }
301-
302- mp_obj_t pyb_usart_receive (void ) {
303- return mp_obj_new_int (usart_rx_char ());
304- }
305-
306- mp_obj_t pyb_usart_status (void ) {
307- if (usart_rx_any ()) {
308- return mp_const_true ;
309- } else {
310- return mp_const_false ;
311- }
312- }
313-
314297char * strdup (const char * str ) {
315298 uint32_t len = strlen (str );
316299 char * s2 = m_new (char , len + 1 );
@@ -846,9 +829,6 @@ int main(void) {
846829 rt_store_attr (m , qstr_from_str_static ("mma_mode" ), (mp_obj_t )& pyb_mma_write_mode_obj );
847830 rt_store_attr (m , qstr_from_str_static ("hid" ), rt_make_function_1 (pyb_hid_send_report ));
848831 rt_store_attr (m , qstr_from_str_static ("time" ), rt_make_function_0 (pyb_rtc_read ));
849- rt_store_attr (m , qstr_from_str_static ("uout" ), rt_make_function_1 (pyb_usart_send ));
850- rt_store_attr (m , qstr_from_str_static ("uin" ), rt_make_function_0 (pyb_usart_receive ));
851- rt_store_attr (m , qstr_from_str_static ("ustat" ), rt_make_function_0 (pyb_usart_status ));
852832 rt_store_attr (m , qstr_from_str_static ("rand" ), rt_make_function_0 (pyb_rng_get ));
853833 rt_store_attr (m , qstr_from_str_static ("Led" ), rt_make_function_1 (pyb_Led ));
854834 rt_store_attr (m , qstr_from_str_static ("Servo" ), rt_make_function_1 (pyb_Servo ));
0 commit comments