Skip to content
Snippets Groups Projects
Select Git revision
  • ccf8d648638af01e353f7ca94a61adf589263ccf
  • master default protected
  • add-joust
  • blinkisync-as-preload
  • genofire/rockets-state
  • genofire/leds_rgb_get_state
  • genofire/ble-follow-py
  • genofire/haule-ble-fs-deactive
  • hauke/ble-cleanups
  • plaetzchen/ios-workaround
  • schneider/max30001-pycardium
  • schneider/max30001-epicaridum
  • schneider/max30001
  • schneider/stream-locks
  • ios-workarounds
  • schneider/fundamental-test
  • schneider/ble-buffers
  • schneider/maxim-sdk-update
  • rahix/simple_menu
  • ch3/splashscreen
  • koalo/bhi160-works-but-dirty
  • v1.7
  • v1.6
  • v1.5
  • v1.4
  • v1.3
  • v1.2
  • v1.1
  • v1.0
  • release-1
  • bootloader-v1
  • v0.0
32 results

core1.c

Blame
  • Forked from card10 / firmware
    1746 commits behind the upstream repository.
    core1.c 416 B
    #include "board.h"
    #include "gpio.h"
    #include "mxc_delay.h"
    
    static const __attribute__((unused)) gpio_cfg_t motor_pin = {PORT_0, PIN_8, GPIO_FUNC_OUT, GPIO_PAD_NONE};
    
    int main(void)
    {
    	// Enable rxev on core1
    	MXC_GCR->evten |= 0x20;
    	for (int i = 0; 1; i++) {
    		__asm volatile("wfe");
    		printf("core1: Hello! %d\n", i);
    
    #if 0
    		GPIO_OutSet(&motor_pin);
    		mxc_delay(30000);
    		GPIO_OutClr(&motor_pin);
    #endif
    	}
    }