| 28 | } |
| 29 | |
| 30 | void Ft_printf(const char *fmt, ...) |
| 31 | { |
| 32 | va_list args; |
| 33 | size_t i; |
| 34 | size_t length; |
| 35 | #ifdef NEED_CLOSE_ISR |
| 36 | IRQ_DISABLE(); |
| 37 | #endif |
| 38 | va_start(args, fmt); |
| 39 | |
| 40 | length = Vsprintf_pFun(print_buffer, fmt, args); |
| 41 | va_end(args); |
| 42 | for (i = 0; i < length; i++) |
| 43 | { |
| 44 | outbyte(print_buffer[i]); |
| 45 | } |
| 46 | |
| 47 | #ifdef NEED_CLOSE_ISR |
| 48 | IRQ_ENABLE(); |
| 49 | #endif |
| 50 | } |
| 51 | |
| 52 | char *Ft_itoa(int num, char *str, int radix) |
| 53 | { |
no test coverage detected