Skip to content

Add support for Uno R4 Minima + WIFI #595

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions ArduCAM/ArduCAM.h
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@
2017/11/27 V4.1.2 by Max Add support for Feather M0
2018/10/15 V4.1.2 by Lee Add support for NRF52
2018/10/15 V4.1.2 by Lee Add support for TEENSYDUINO
2024/09/28 V4.1.3 by Keeeal Add support for Uno R4 Minima + WIFI
--------------------------------------*/

#ifndef ArduCAM_H
Expand Down Expand Up @@ -306,6 +307,21 @@
#define regsize uint32_t
#endif

#if defined (ARDUINO_UNOR4_MINIMA) || defined (ARDUINO_UNOR4_WIFI)
#define cbi(reg, bitmask) *reg &= ~bitmask
#define sbi(reg, bitmask) *reg |= bitmask

#define pulse_high(reg, bitmask) sbi(reg, bitmask); cbi(reg, bitmask);
#define pulse_low(reg, bitmask) cbi(reg, bitmask); sbi(reg, bitmask);

#define cport(port, data) port &= data
#define sport(port, data) port |= data

#define fontbyte(x) cfont.font[x]
#define regtype volatile uint16_t
#define regsize uint16_t
#endif


/****************************************************/
/* Sensor related definition */
Expand Down