-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathArduinoHal.h
29 lines (19 loc) · 948 Bytes
/
ArduinoHal.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*
* This file is part of the Arducam SPI Camera project.
*
* Copyright 2021 Arducam Technology co., Ltd. All Rights Reserved.
*
* This work is licensed under the MIT license, see the file LICENSE for details.
*
*/
#ifndef __ARDUINOHAL_H
#define __ARDUINOHAL_H
#include "ArducamSpi.h"
#define arducamSpiBegin() arducamSpiBegin()
#define arducamSpiTransfer(val) arducamSpiTransfer(val) // SPI communication sends a byte
#define arducamSpiCsPinHigh(pin) arducamSpiCsHigh(pin) //Set the CS pin of SPI to high level
#define arducamSpiCsPinLow(pin) arducamSpiCsLow(pin) //Set the CS pin of SPI to low level
#define arducamCsOutputMode(pin) arducamSpiCsOutputMode(pin)
#define arducamDelayMs(val) arducamDelayMs(val) // Delay Ms
#define arducamDelayUs(val) arducamDelayUs(val) //Delay Us
#endif /*__ARDUINOHAL_H*/