16 #include "lib_mcu/uart/uart_lib.h" 72 fdevopen((
int (*)(
char, FILE*))(
uart_putchar),(
int (*)(FILE*))uart_getchar);
294 if( *str1 != pgm_read_byte_near((
unsigned int)str2))
320 #else // AVRGCC does not support point to PGM space 321 c=pgm_read_byte_near((
unsigned int)str++);
325 c=pgm_read_byte_near((
unsigned int)str++);
378 d4 = (U16)(value >> 12) & 0x0F;
379 d3 = (U16)(value >> 8) & 0x0F;
380 d2 = (U16)(value >> 4) & 0x0F;
381 d1 = (U16)(value) & 0x0F;
void convert_param1(void)
convert param1 to binaire.
#define MSG_ER_CMD_NOT_FOUND
U8 bin_to_ascii(U8 c)
This function returns the ascii value of a quartet.
volatile Bool ushell_active
void ushell_task_init(void)
This function initializes the hardware/software ressources required for ushell task.
void mci_set_speed(U16 speed)
U8 ascii_to_bin(U8 c)
This function returns the binary value of an ascii digit.
U16 mci_get_measured_current(void)
Get the current measured in the motor.
U8 code str_get_status0[]
U8 mystrncmp(U8 *str1, U8 code *str2, U8 i)
compares two strings located in flash code area.
void convert_param2(void)
convert param2 to binaire.
void print_msg(U8 code *str)
Display an ASCII code string.
Bool mci_direction
User Input parameter to set motor direction.
U16 debug_get_value2(void)
void mci_stop(void)
mci_stop stop the motor And reset the speed measured value.
void mci_run(void)
mci_run run the motor with parameter
Bool mci_run_stop
User Input parameter to launch or stop the motor.
U8 code str_get_status1[]
U16 debug_get_value1(void)
S16 speed_error
Error calculation.
void build_cmd(void)
get the full command line to be interpreted.
U8 mci_get_measured_speed(void)
Measured of speed.
void parse_cmd(void)
decodes full command line into command type and arguments
void print_hex16(U16 value)
Display an U16 with hexa form.
void ushell_task(void)
Entry point of the explorer task management.
U8 code msg_er_cmd_not_found[]