Skip to content

Commit

Permalink
Avr dedicated header file, should be specified.
Browse files Browse the repository at this point in the history
  • Loading branch information
baorepo committed Mar 30, 2020
1 parent bea2f9d commit dc03e48
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 16 deletions.
17 changes: 1 addition & 16 deletions .travis.yml
Expand Up @@ -24,6 +24,7 @@ before_install:
cd "${TRAVIS_BUILD_DIR}"
}
- installLibrary Seeed-Studio/CAN_BUS_Shield
- installLibrary arduino-libraries/SD
- buildExampleSketch() { arduino-cli compile --warnings all --fqbn $BOARD $PWD/examples/$1 --verbose; }
- buildExampleUtilitySketch() { arduino-cli compile --warnings all --fqbn $BOARD $PWD/examples/utility/$1 --verbose; }
install:
Expand All @@ -45,10 +46,6 @@ script:
if [ "$BOARD" == "arduino:avr:uno" ]; then
buildExampleSketch OBDII_PIDs;
fi
- |
if [ "$BOARD" == "arduino:avr:uno" ]; then
buildExampleSketch send_Blink_ROS;
fi
- |
if [ "$BOARD" == "arduino:avr:uno" ]; then
buildExampleSketch send_Blink;
Expand Down Expand Up @@ -85,10 +82,6 @@ script:
if [ "$BOARD" == "arduino:avr:uno" ]; then
buildExampleSketch receive_sleep;
fi
- |
if [ "$BOARD" == "Seeeduino:samd:seeed_XIAO_m0" ]; then
buildExampleSketch send_sleep;
fi
- |
if [ "$BOARD" == "Seeeduino:samd:seeed_XIAO_m0" ]; then
buildExampleSketch gpioWrite;
Expand All @@ -101,10 +94,6 @@ script:
if [ "$BOARD" == "Seeeduino:samd:seeed_XIAO_m0" ]; then
buildExampleSketch OBDII_PIDs;
fi
- |
if [ "$BOARD" == "Seeeduino:samd:seeed_XIAO_m0" ]; then
buildExampleSketch send_Blink_ROS;
fi
- |
if [ "$BOARD" == "Seeeduino:samd:seeed_XIAO_m0" ]; then
buildExampleSketch send_Blink;
Expand Down Expand Up @@ -137,10 +126,6 @@ script:
if [ "$BOARD" == "Seeeduino:samd:seeed_XIAO_m0" ]; then
buildExampleSketch set_mask_filter_recv;
fi
- |
if [ "$BOARD" == "Seeeduino:samd:seeed_XIAO_m0" ]; then
buildExampleSketch receive_sleep;
fi
notifications:
webhooks:
urls:
Expand Down
2 changes: 2 additions & 0 deletions examples/receive_sleep/receive_sleep.ino
Expand Up @@ -16,7 +16,9 @@

#include <SPI.h>
#include "mcp_can.h"
#ifdef ARDUINO_ARCH_AVR
#include <avr/sleep.h>
#endif

/*SAMD core*/
#ifdef ARDUINO_SAMD_VARIANT_COMPLIANCE
Expand Down
2 changes: 2 additions & 0 deletions examples/send_sleep/send_sleep.ino
Expand Up @@ -5,8 +5,10 @@

#include <mcp_can.h>
#include <SPI.h>
#ifdef ARDUINO_ARCH_AVR
#include <avr/sleep.h>
#include <avr/wdt.h>
#endif

/*SAMD core*/
#ifdef ARDUINO_SAMD_VARIANT_COMPLIANCE
Expand Down

0 comments on commit dc03e48

Please sign in to comment.