Skip to content
Snippets Groups Projects
Select Git revision
  • 128e627d4f00825fca423ff44b552e9a04c61f19
  • master default protected
  • add-utime-unix_time-expansion
  • add-monotonic-time
  • add-digiclk
  • genofire/rockets-state
  • genofire/ble-follow-py
  • plaetzchen/ios-workaround
  • blinkisync-as-preload
  • genofire/haule-ble-fs-deactive
  • schneider/max30001-pycardium
  • schneider/max30001-epicaridum
  • schneider/max30001
  • schneider/stream-locks
  • schneider/fundamental-test
  • schneider/ble-buffers
  • schneider/maxim-sdk-update
  • ch3/splashscreen
  • koalo/bhi160-works-but-dirty
  • koalo/wip/i2c-for-python
  • renze/safe_mode
  • v1.9
  • v1.8
  • v1.7
  • v1.6
  • v1.5
  • v1.4
  • v1.3
  • v1.2
  • v1.1
  • v1.0
  • release-1
  • bootloader-v1
  • v0.0
34 results

main.c

Blame
  • Forked from card10 / firmware
    1774 commits behind the upstream repository.
    main.c 529 B
    #include <stdio.h>
    #include "card10.h"
    #include "uart.h"
    #include "api/dispatcher.h"
    
    extern mxc_uart_regs_t * ConsoleUart;
    
    void epic_uart_write_str(char*str, intptr_t length)
    {
    	UART_Write(ConsoleUart, (uint8_t*)str, length);
    }
    
    char epic_uart_read_chr(void)
    {
    	return UART_ReadByte(ConsoleUart);
    }
    
    int main(void)
    {
    	card10_init();
    	card10_diag();
    
    	printf("Initializing dispatcher ...\n");
    	api_dispatcher_init();
    
    	printf("Staring core1 payload ...\n");
    	core1_start();
    
    	while(1) {
    		__WFE();
    		api_dispatcher_poll();
    	}
    }