Infrared4Arduino 1.2.3
Loading...
Searching...
No Matches
NoBoard.h
Go to the documentation of this file.
1/*
2Copyright (C) 2020 Bengt Martensson.
3
4This program is free software: you can redistribute it and/or modify
5it under the terms of the GNU General Public License as published by
6the Free Software Foundation; either version 3 of the License, or (at
7your option) any later version.
8
9This program is distributed in the hope that it will be useful, but
10WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12General Public License for more details.
13
14You should have received a copy of the GNU General Public License along with
15this program. If not, see http://www.gnu.org/licenses/.
16 */
17
18#pragma once
19
20#include "Board.h"
21
22#define CURRENT_CLASS NoBoard
23
24#define HAS_FLASH_READ 0
25#define HAS_HARDWARE_PWM 0
26#define HAS_SAMPLING 0
27#define HAS_INPUT_CAPTURE 0
28
29class NoBoard : public Board {
30#define PWM_PIN Board::NO_PIN
31public:
32 NoBoard() {};
33
34private:
35 void timerEnableIntr() {
36 };
37
38 void timerDisableIntr() {
39 };
40
41 void timerEnablePwm() {
42 };
43
44 void timerDisablePwm() {
45 };
46
47 void timerConfigHz(frequency_t hz __attribute__ ((unused)), dutycycle_t dutyCycle __attribute__ ((unused))) {
48 };
49
50 void timerConfigNormal() {
51 };
52};
int8_t dutycycle_t
Type for duty cycle in percent.
Definition: InfraredTypes.h:36
uint32_t frequency_t
Type for modulation frequency in Hz.
Definition: InfraredTypes.h:31
This class serves as an HAL (Hardware Abstraction Layer).
Definition: Board.h:33
NoBoard()
Definition: NoBoard.h:32