[add] comments

This commit is contained in:
stijn
2021-04-06 15:05:44 +02:00
parent 41c080d5b7
commit d136064b94
16 changed files with 1784 additions and 2135 deletions

View File

@@ -6,8 +6,24 @@
*/
/************************************************************************/
/* init the ultrasonic sensor driver */
/************************************************************************/
void ultrasonic_init();
/************************************************************************/
/* send a pulse from the ultrasonic sensor */
/************************************************************************/
void ultrasonic_send_pulse();
/************************************************************************/
/* get the value of the timer which equals time taken for sound to */
/* turn */
/************************************************************************/
uint16_t ultrasonic_get_timer_dist();
/************************************************************************/
/* handle for the interrupt */
/************************************************************************/
void ultrasonic_handle_interrupt();
/************************************************************************/
/* set a event for when the ultrasonic has a new value. */
/************************************************************************/
void set_value_trigger_event(void (*value_set_event_p)(uint16_t));