Перенос на новую организацию GONEC

This commit is contained in:
cfif 2025-01-24 13:22:34 +03:00
commit 60ebdd93f8
2 changed files with 33 additions and 0 deletions

16
Inc/SpiPort.h Normal file
View File

@ -0,0 +1,16 @@
//
// Created by cfif on 028.09.22.
//
#ifndef SPIPORT_H
#define SPIPORT_H
#include "SpiPortIO.h"
#define SpiPortReceive(PORT_IO, DATA, TIMEOUT) (PORT_IO)->receive((PORT_IO)->env,DATA,TIMEOUT)
#define SpiPortTransmit(PORT_IO, DATA, TIMEOUT) (PORT_IO)->transmit((PORT_IO)->env,DATA,TIMEOUT)
#define SpiPortChipSelect(PORT_IO, TIMEOUT) (PORT_IO)->chipSelect((PORT_IO)->env,TIMEOUT)
#define SpiPortChipRelease(PORT_IO, TIMEOUT) (PORT_IO)->chipRelease((PORT_IO)->env,TIMEOUT)
#endif //SPIPORT_H

17
modular.json Normal file
View File

@ -0,0 +1,17 @@
{
"dep": [
{
"type": "git",
"provider": "GONEC",
"repo": "SpiPortInterface"
}
],
"cmake": {
"inc_dirs": [
"Inc"
],
"srcs": [
"Src/**.c"
]
}
}