main/task_user.c

changeset 44
e52d11b8f252
parent 43
70c99c2084dc
child 51
5035385299f6
equal deleted inserted replaced
43:70c99c2084dc 44:e52d11b8f252
48 const int TASK_USER_REFRESH = BIT3; ///< Refresh requested 48 const int TASK_USER_REFRESH = BIT3; ///< Refresh requested
49 49
50 50
51 /** 51 /**
52 * @brief Seconds timer callback. 52 * @brief Seconds timer callback.
53 * @param arg Arguments for the timer.
53 */ 54 */
54 void TimerCallback(void *arg); 55 void TimerCallback(void *arg);
55 56
56 57
57 /***************************************************************************/ 58 /***************************************************************************/
296 297
297 298
298 299
299 /** 300 /**
300 * @brief Clear the display and prepare the top of the display. 301 * @brief Clear the display and prepare the top of the display.
301 * @format The formatted data to display at the top. 302 * @param format The formatted data to display at the top.
302 */ 303 */
303 void screen_top(const char *format, ...) 304 void screen_top(const char *format, ...)
304 { 305 {
305 char buf[65]; 306 char buf[65];
306 va_list va_ptr; 307 va_list va_ptr;
756 /** 757 /**
757 * @brief Rotate subscreens numbers. 758 * @brief Rotate subscreens numbers.
758 * @param pos The new position, positive, negative or zero. 759 * @param pos The new position, positive, negative or zero.
759 * @param max The highest number. If already at the highest, select the lowest. 760 * @param max The highest number. If already at the highest, select the lowest.
760 * @param cursub The subscreen number by reference. This is updated with the new number. 761 * @param cursub The subscreen number by reference. This is updated with the new number.
762 * @param curoffset The offset in the list. This is updated with the new number.
761 * @return Returns true if a new number is selected, false if nothing changed. 763 * @return Returns true if a new number is selected, false if nothing changed.
762 */ 764 */
763 bool rotate_to_sub(rotary_encoder_position_t pos, int max, int *cursub, int *curoffset) 765 bool rotate_to_sub(rotary_encoder_position_t pos, int max, int *cursub, int *curoffset)
764 { 766 {
765 int sub = *cursub; 767 int sub = *cursub;

mercurial