mirror of
https://github.com/meekrosoft/fff
synced 2026-01-23 00:15:59 +01:00
Migrate build to CMake and standard github workflows
Replace makefiles with CMakeLists.txt. This will allow for IDE and platform agnostic builds of FFF. Update the CI for FFF to use github workflows which don't depend on MS VC. The workflow added will verify the pull requests sent to master buy running 'buildandtest' which mirrors the developer workflow. Signed-off-by: Yuval Peress <peress@google.com>
This commit is contained in:
6
examples/weak_linking/include/bus.h
Normal file
6
examples/weak_linking/include/bus.h
Normal file
@@ -0,0 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include "error.h"
|
||||
|
||||
bool bus_read_write( uint8_t dev, uint8_t registry, uint8_t* buffer, int len, bool assume_echo );
|
||||
bool bus_write( uint8_t dev, uint8_t registry, const uint8_t* buffer, int len, bool assume_echo );
|
||||
5
examples/weak_linking/include/display.h
Normal file
5
examples/weak_linking/include/display.h
Normal file
@@ -0,0 +1,5 @@
|
||||
#pragma once
|
||||
#include "error.h"
|
||||
|
||||
bool display_init();
|
||||
void display_update( const char* info );
|
||||
7
examples/weak_linking/include/error.h
Normal file
7
examples/weak_linking/include/error.h
Normal file
@@ -0,0 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
void runtime_error( const char* msg );
|
||||
char* runtime_error_nice_print( const char* msg );
|
||||
6
examples/weak_linking/include/sensor.h
Normal file
6
examples/weak_linking/include/sensor.h
Normal file
@@ -0,0 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include "error.h"
|
||||
|
||||
bool sensor_init();
|
||||
float sensor_read();
|
||||
Reference in New Issue
Block a user