commit 9e1f03bf017bfef00de86ec057e2015fc6ffd9e5 Author: cfif Date: Mon Jun 2 13:26:42 2025 +0300 Init diff --git a/Inc/SpiPort.h b/Inc/SpiPort.h new file mode 100644 index 0000000..6fd71df --- /dev/null +++ b/Inc/SpiPort.h @@ -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 diff --git a/modular.json b/modular.json new file mode 100644 index 0000000..1f2e9b7 --- /dev/null +++ b/modular.json @@ -0,0 +1,17 @@ +{ + "dep": [ + { + "type": "git", + "provider": "Smart_Components_Aurus", + "repo": "SpiPortInterface" + } + ], + "cmake": { + "inc_dirs": [ + "Inc" + ], + "srcs": [ + "Src/**.c" + ] + } +} \ No newline at end of file