New HAL and SimpleMAC for STM32W108.
This commit is contained in:
parent
c9af578eab
commit
eb588f1aec
89 changed files with 1503 additions and 1883 deletions
44
cpu/stm32w108/e_stdio/src/test_mes.c
Normal file
44
cpu/stm32w108/e_stdio/src/test_mes.c
Normal file
|
@ -0,0 +1,44 @@
|
|||
|
||||
#define FLOATING
|
||||
#define PRINT
|
||||
#define SCANF
|
||||
|
||||
|
||||
int main() {
|
||||
|
||||
char ent_char ;
|
||||
float flottant ;
|
||||
|
||||
#ifndef FLOATING
|
||||
#ifdef PRINT
|
||||
ent_char='a';
|
||||
#endif
|
||||
|
||||
#ifdef SCANF
|
||||
scanf("%c" , &ent_char);
|
||||
#endif
|
||||
|
||||
#ifdef PRINT
|
||||
printf("%c\n", ent_char);
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
#else
|
||||
#ifdef PRINT
|
||||
flottant = 1.456789;
|
||||
#endif
|
||||
|
||||
#ifdef SCANF
|
||||
scanf("%f" , &flottant);
|
||||
#endif
|
||||
|
||||
#ifdef PRINT
|
||||
printf("%f\n", flottant);
|
||||
#endif
|
||||
|
||||
#endif
|
||||
return 0;
|
||||
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue