Skip to content
Snippets Groups Projects
Select Git revision
  • 8ef77cdbd0b222513bdaaa6bebbc42d145b5b35d
  • master default protected
  • blink_multi_rocket
  • blink_rocket
  • msgctl/gfx_rle
  • msgctl/faultscreen
  • msgctl/textbuffer_api
  • schneider/bonding
  • schneider/bootloader-update-9a0d158
  • schneider/bsec
  • rahix/bma
  • rahix/bhi
  • schleicher-test
  • schneider/schleicher-test
  • freertos-btle
  • ch3/api-speed-eval2
  • schneider/mp-for-old-bl
  • ch3/leds-api
  • ch3/genapi-refactor
  • ch3/dual-core
  • dualcore
  • v0.0
22 results

Dockerfile

Blame
  • Forked from card10 / firmware
    Source project has a limited visibility.
    • q3k's avatar
      8ef77cdb
      ci: implement lint & Annoyatron · 8ef77cdb
      q3k authored
      We want to run a linter on CI submission.
      
      We also want to display nice error messages to the user. Thus,
      annoyatron is born.
      
      The flow is as follows:
       - a MR is submitted and triggers the 'lint' pipeline
       - annoyatron gets pinged over https that an MR requires attention
       - annoyatron starts running and waits until the MR's pipeline run
         succeeds or fails
       - the lint jobs either succeeds or fails
       - annoyatron notices the pipeline passed, and inspects its results to
         see if the lint pipeline failed or not.
       - annoyatron posts a comment, if necessary
      8ef77cdb
      History
      ci: implement lint & Annoyatron
      q3k authored
      We want to run a linter on CI submission.
      
      We also want to display nice error messages to the user. Thus,
      annoyatron is born.
      
      The flow is as follows:
       - a MR is submitted and triggers the 'lint' pipeline
       - annoyatron gets pinged over https that an MR requires attention
       - annoyatron starts running and waits until the MR's pipeline run
         succeeds or fails
       - the lint jobs either succeeds or fails
       - annoyatron notices the pipeline passed, and inspects its results to
         see if the lint pipeline failed or not.
       - annoyatron posts a comment, if necessary
    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();
    	}
    }