Skip to content

Commit

Permalink
Fix typo in comments and bad libary.properties link.
Browse files Browse the repository at this point in the history
  • Loading branch information
Trusty77 committed Jun 19, 2019
1 parent 60a9f36 commit b26fef4
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 3 deletions.
Binary file modified DIO2.zip
Binary file not shown.
Binary file modified History/DIO2.1.5.1.zip
Binary file not shown.
16 changes: 16 additions & 0 deletions VStudio/DIO2.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,23 @@
#include "Arduino.h"
//#include "ArduiEmulator.hpp"


// Definitions specific for selected board
#if defined(__AVR_ATmega2560__)
#include "../board/mega/pins2_arduino.h"
#else
#if defined(__AVR_ATmega328P__)
#include "../board/nano/pins2_arduino.h"
#else
#if defined(__AVR_ATmega32U4__)
#include "../board/leonardo/pins2_arduino.h"
#else
#include "../board/standard/pins2_arduino.h"
#endif
#endif
#endif

//#include "../board/mega/pins2_arduino.h"

extern void pinMode2(uint8_t pin, uint8_t mode);
extern void digitalWrite2(uint8_t pin, uint8_t val);
Expand Down
2 changes: 1 addition & 1 deletion VStudio/DIO2.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>_DEBUG;_LIB;VISUALSTUDIO;ARDUINO_AVR_MEGA2560;_DIO2_EXPORTING;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>_DEBUG;_LIB;VISUALSTUDIO;_DIO2_EXPORTING;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
<AdditionalIncludeDirectories>$(VisualStudioDir)\..\Arduino\ArduiEmulatorWin\ArduiEmulatorLib</AdditionalIncludeDirectories>
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ maintainer=Thierry Paris - Locoduino
sentence=Fast digital input/output functions.
paragraph=From a work of Jan Dolinay
category=Device Control
url=https://github.com/Locoduino.org/DIO2
url=https://github.com/Locoduino/DIO2
architectures=avr,sam,esp32,STM32F1
2 changes: 1 addition & 1 deletion src/DIO2.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ static inline void digitalWrite2f(GPIO_pin_t pin, uint8_t value);
#define GPIO2_USE_INLINE_FUNCTIONS 0
#endif

// Note: ATOMIC_BLOCK is macro in AVR Libc, but it cannot be used in current Arduino verison
// Note: ATOMIC_BLOCK is macro in AVR Libc, but it cannot be used in current Arduino version
// (1.0.5-r2), because the compiler options are not set to support C99 standard.
// That is why there is our own version for now
#define GPIO2_ATOMIC_BEGIN { uint8_t matom_oldSREG = SREG; cli();
Expand Down

0 comments on commit b26fef4

Please sign in to comment.