File tree Expand file tree Collapse file tree 2 files changed +6
-22
lines changed
examples/basic/hello-world Expand file tree Collapse file tree 2 files changed +6
-22
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ else ifeq ($(CPU_CORE),cortex-m3)
3838else ifeq ($(CPU_CORE),cortex-m33)
3939 CPU_ARCH := armv8m
4040 FEATURES_PROVIDED += cortexm_stack_limit
41- RUST_TARGET = thumbv8m.main-none-eabi
41+ # RUST_TARGET = thumbv8m.main-none-eabi
4242else ifeq ($(CPU_CORE),cortex-m4)
4343 CPU_ARCH := armv7m
4444 RUST_TARGET = thumbv7em-none-eabi
Original file line number Diff line number Diff line change 1616 * @}
1717 */
1818
19- #include "multicore.h"
20- #include "periph_cpu.h"
2119#include <stdio.h>
22- #include "periph/gpio.h"
2320
24- #define PIN_14 14u
25- #define PIN_15 15u
21+ int main (void )
22+ {
23+ puts ("Hello World!" );
2624
27- void * core1_main (void * arg ) {
28- (void )arg ;
29- gpio_init (PIN_14 , GPIO_OUT );
30- while (1 ) {
31- gpio_set (PIN_14 );
32- gpio_clear (PIN_14 );
33- }
34- return NULL ;
35- }
25+ printf ("You are running RIOT on a(n) %s board.\n" , RIOT_BOARD );
26+ printf ("This board features a(n) %s CPU.\n" , RIOT_CPU );
3627
37- int main (void ) {
38- core1_init (core1_main , NULL );
39- gpio_init (PIN_15 , GPIO_OUT );
40- while (1 ) {
41- gpio_set (PIN_15 );
42- gpio_clear (PIN_15 );
43- }
4428 return 0 ;
4529}
You can’t perform that action at this time.
0 commit comments