Skip to content

Commit

Permalink
chore(docs) adde mcp2515 + code(boiler) code boilerplate
Browse files Browse the repository at this point in the history
  • Loading branch information
iomonad committed Oct 24, 2023
1 parent 42bb911 commit 986c567
Show file tree
Hide file tree
Showing 5 changed files with 67 additions and 2 deletions.
10 changes: 10 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
CC = ufbt

all:
$(CC) build
install:
$(CC) launch
debug:
$(CC) blackmagic BLACKMAGIC=
clean:
$(CC) -c
2 changes: 0 additions & 2 deletions canutils.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
*/

#include <furi.h>
#include <furi_hal_spi.h>
#include <furi_hal_spi_config.h>

#include <scene.h>
#include <canutils.h>
Expand Down
Binary file not shown.
29 changes: 29 additions & 0 deletions mcp2515.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/*
* MIT License
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*
* (C) Author: iomonad <[email protected]>
*/

#include <furi.h>
#include <furi_hal_spi.h>
#include <furi_hal_spi_config.h>

#include <mcp2515.h>
28 changes: 28 additions & 0 deletions mcp2515.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/*
* MIT License
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*
* (C) Author: iomonad <[email protected]>
*/

#ifndef __MCP2515_H__
#define __MCP2515_H__

#endif // __MCP2515_H__

0 comments on commit 986c567

Please sign in to comment.