Skip to content

Instantly share code, notes, and snippets.

@ttsiodras
Last active March 4, 2024 01:56
Show Gist options
  • Save ttsiodras/c3e71b0db07ec2ca5a3d236fa6e98589 to your computer and use it in GitHub Desktop.
Save ttsiodras/c3e71b0db07ec2ca5a3d236fa6e98589 to your computer and use it in GitHub Desktop.
List of RTEMS APIs used by uPython codebase
$ find py/ leon-common/ extmod/ -type f -iname '*.[ch]' -exec grep -ow 'rtems_[a-zA-Z0-9_-]*' '{}' ';' | sort -u | grep -v _obj
rtems_attribute
rtems_build_name
rtems_clock_get
rtems_clock_time_value
rtems_id
rtems_interval
rtems_message_queue_broadcast
rtems_message_queue_create
rtems_message_queue_delete
rtems_message_queue_flush
rtems_message_queue_get_number_pending
rtems_message_queue_ident
rtems_message_queue_receive
rtems_message_queue_send
rtems_message_queue_urgent
rtems_name
rtems_queue
rtems_queue_broadcast
rtems_queue_delete
rtems_queue_flush
rtems_queue_get_number_pending
rtems_queue_locals_dict
rtems_queue_locals_dict_table
rtems_queue_obj_t
rtems_queue_print
rtems_queue_receive
rtems_queue_send
rtems_queue_submit
rtems_queue_type
rtems_queue_urgent
rtems_script_id
rtems_sem
rtems_semaphore_create
rtems_semaphore_delete
rtems_semaphore_flush
rtems_semaphore_ident
rtems_semaphore_obtain
rtems_semaphore_release
rtems_sem_delete
rtems_sem_flush
rtems_sem_locals_dict
rtems_sem_locals_dict_table
rtems_sem_obj_t
rtems_sem_obtain
rtems_sem_print
rtems_sem_release
rtems_sem_type
rtems_status_code
rtems_status_code_string
rtems_task_get_note
rtems_task_priority
rtems_task_set_note
rtems_task_wake_after
rtems_task_wake_when
rtems_time_of_day
rtems_timer
rtems_timer_cancel
rtems_timer_create
rtems_timer_delete
rtems_timer_fire_after
rtems_timer_ident
rtems_timer_reset
rtems_timer_service_routine
@ttsiodras
Copy link
Author

ttsiodras commented Apr 9, 2019

This list was generated from the sources of MicroPython, obtained from ESA's ESSR site, grep-ing only under the folders containing code (not tests - hence the 3 revisions of the find command). The exclusion of _obj suffixes is to avoid reporting global variables that uPython creates that start with rtems_ prefix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment