forked from rogerclarkmelbourne/Arduino_STM32
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add files via upload * Add files via upload * Add files via upload * Add files via upload * Increment size of emulated EEPROM Defines paremeter Pages for use more than one page per bank on emulated EEPROM. * Create TestCompile.yml Initial version * Update TestCompile.yml * Changed Ethernet.h to Ethernet_STM.h This was forgotten for this example * Adding Adafruit Gfx library, excluding errorneous examples * included libs excluded examples, removed debug * more exludes * excluded OLED_I2C examples * Compatibility with current HEAD versions of Adafruit GFX and Adafruit BusIO. * Adafruit_GFX_AS: Use a macro to achieve s/textsize/textsize_x/. * Fix mistaken cast of wrong argument. * STM32F4 backup domain registers and backup domain sram STM32F4: update bkp.h, bkp.c add support for backup registers and backup sram. added example in STM32F4/libraries/RTClock/examples/BkpTest * STM32F4: RTClock - prevent clobbering if run on LSE and VBAT updated RTClock.begin() skip initialization of RTC running on LSE if it is already running so that the time maintained on VBAT would not be reset note that the change only prevents resetting RTC on LSE as only that is assured when running on VBAT * STM32F4 RTClock minor fix in begin() change: if(!lse_ison && RTCSEL_LSE) { to: if(!lse_ison) that RTCSEL_LSE is redundant. it suffice to test that lse_ison * F1: fix for rogerclarkmelbourne#852: added function definition into pgmsapce.h * USBComposite library updates: MIDI sysex support; bug fixes * fix maple_upload dfu_address set to {runtime.ide.path} instead of {upload.dfuse_addr} or nothing rogerclarkmelbourne#854 * F1: Wire: add wire(const uint8*, int) to WireBase.h * USB Composite 1.06 merge * Delete unneeded file * Update WireBase.h added return value to write(const uint8* buf, int nr) * Added blackpill_f411 variant * added build options for the abilirty to select HSI clock source without a crystal - generic F103C8 only so far. * Fix incorrect upload method for F411 * fixes rogerclarkmelbourne#883 random() without parameter like in standard Arduino API is missing. * update USBComposite to 1.0.7 * Added workflow_dispatch for manual build check This is a very handy feature :-) * Using ln -s instead of cp * Using ln -s instead of cp * Fixing error: 'utoa' was not declared in this scope - see rogerclarkmelbourne#884 * Update README.md removed invalid link to Gitter * fix HardwareCANexample.ino * Update wirish_digital.cpp - fix rogerclarkmelbourne#859 * fix boardPWMpins table for generic gdf103c variant * fix boardPWMpins for generic F103c variant * fix boardPWMpins table for generic F103C variant * fix BOARD_NR_PWM_PIN for generic F103C variant * Update SPI.cpp remove some obsolete flags * F1: DMA transfer setup function - changed parameter definition * F1: SPI rework * Update Print.cpp added serial PRINTF and DBG_PRINTF * F1: fixed generic F103 board PWM pins * F1: added function to check if spi is in master mode * Update SPI.cpp - fixed DMA wait for completion in slave mode - limited text columns to 120 * F1: SPI dmaTransferRepeat() got 2 optional parmaeters * Rename hid-flash to hid_flash rogerclarkmelbourne#895 * systick allows up to 4 callbacks * F4: added PRINTF * F4: added soft-reset nvic_sys_reset() * F4: optimized ring_buffer * renamed tools/macosx/hid_flash * F4: fix heap start address for F411 boards * F4: Wire support of alternative pins * F4: added I2S library * Update SPI.h * F4: removed arduino_uip library (not used) * F4: added Adafruit_ILI9341_STM library * Delete AdvancedChatServer.ino * F4: allow output pin speed selection * F4: small changes * F1: small changes in Adafruit_ILI9341_STM * F1: small changes in Serasidis_VS1003B lib * F1: removed timer setup from board init * F1: SPI settings get initialized when creating the instance * Update wirish.h * Delete c_cpp_properties.json * Update .gitignore * Update rcc_private.h * small fixes after previous merge * Update SPI.h * remove some not needed files --------- Co-authored-by: Phonog <[email protected]> Co-authored-by: Roger Clark <[email protected]> Co-authored-by: svmac <[email protected]> Co-authored-by: Armin <[email protected]> Co-authored-by: Kiki Lamb <[email protected]> Co-authored-by: ag88 <ag88@github> Co-authored-by: arpruss <[email protected]> Co-authored-by: Tomas kovacik <[email protected]> Co-authored-by: board707 <[email protected]> Co-authored-by: purewack <[email protected]>
- Loading branch information
1 parent
ae25e64
commit 85f22c4
Showing
70 changed files
with
3,198 additions
and
327 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
# TestCompile.yml | ||
# Github workflow script to test compile all examples of an Arduino core repository. | ||
# | ||
# Copyright (C) 2020 Armin Joachimsmeyer | ||
# https://github.com/ArminJo/Github-Actions | ||
# | ||
|
||
# This is the name of the workflow, visible on GitHub UI. | ||
name: TestCompile | ||
on: | ||
workflow_dispatch: # To run it manually | ||
description: 'manual build check' | ||
push: # see: https://help.github.com/en/actions/reference/events-that-trigger-workflows#pull-request-event-pull_request | ||
paths: | ||
- '**.ino' | ||
- '**.cpp' | ||
- '**.h' | ||
- '**TestCompile.yml' | ||
pull_request: | ||
jobs: | ||
build: | ||
name: Test compiling examples for Arduino_STM32 | ||
runs-on: ubuntu-latest | ||
env: | ||
# PLATFORM_DEFAULT_URL: http://dan.drown.org/stm32duino/package_STM32duino_index.json | ||
# Comma separated list without double quotes around the list. | ||
REQUIRED_LIBRARIES: SdFat,Streaming,Adafruit GFX Library,Adafruit SSD1306,Adafruit STMPE610,Adafruit TouchScreen,SD | ||
|
||
strategy: | ||
matrix: | ||
# The matrix will produce one job for each configuration parameter of type `arduino-boards-fqbn` | ||
# In the Arduino IDE, the fqbn is printed in the first line of the verbose output for compilation as parameter -fqbn=... for the "arduino-builder -dump-prefs" command | ||
# | ||
# Examples: arduino:avr:uno, arduino:avr:leonardo, arduino:avr:nano, arduino:avr:mega | ||
# arduino:sam:arduino_due_x, arduino:samd:arduino_zero_native" | ||
# ATTinyCore:avr:attinyx5:chip=85,clock=1internal, digistump:avr:digispark-tiny, digistump:avr:digispark-pro | ||
# STM32:stm32:GenF1:pnum=BLUEPILL_F103C8 | ||
# esp8266:esp8266:huzzah:eesz=4M3M,xtal=80, esp32:esp32:featheresp32:FlashFreq=80 | ||
# You may add a suffix behind the fqbn with "|" to specify one board for e.g. different compile options like arduino:avr:uno|trace | ||
############################################################################################################# | ||
arduino-boards-fqbn: | ||
- stm32duino:STM32F1:genericSTM32F103C | ||
#- stm32duino:STM32F1:nucleo_f103rb | ||
#- stm32duino:STM32F1:mapleMini | ||
|
||
# Specify parameters for each board. | ||
# With sketches-exclude you may exclude specific examples for a board. Use a comma separated list. | ||
############################################################################################################# | ||
include: | ||
- arduino-boards-fqbn: stm32duino:STM32F1:genericSTM32F103C | ||
# errors: BOARD_BUTTON_PIN not defined, 'textsize' was not declared in this scope, 'A0' was not declared in this scope, 'BOARD_LED_PIN' was not declared in this scope, no matching function for call to 'SPIClass::transfer(uint8_t*&, size_t&) | ||
sketches-exclude: Debounce,StateChangeDetection,Button,QASlave,InteractiveTest,WhileStatementConditional,HardwareTimerOnePulseMode,HardwareTimerPWMInput,StringEx_Parsing,hello_STM,MIDI_Classic_Mode,JeeUdp,multipacketSD,udpListener,etherNode,SingleChannelContinuousConversion,OLED_I2C_NumberFonts,OLED_I2C_TinyFont_View,OLED_I2C_Scrolling_Text,OLED_I2C_Bitmap,OLED_I2C_3D_Cube,OLED_I2C_ViewFont,OLED_I2C_Graph_Demo,OLED_I2C_Brightness,OLED_I2C_NumberFonts,OLED_I2C_TinyFont_View,coos_display_blink,rtos_blink,rtos_display_blink,Twitter_Serial_GW,XivelyClientString,XivelyClient,ssd1306_128x64_i2c_STM32,breakouttouchpaint,graphicstest,stm32_graphicstest,TFT_Rainbow_ILI9341,TFT_Clock_ILI9341,TFT_Clock_Digital_ILI9341,TFT_Show_Font_ILI9341,graphicstest,stm32_graphicstest,onoffbutton_breakout,onoffbutton_breakout,onoffbutton,spitftbitmap,ssd1306_128x64_spi,ssd1306_128x32_i2c,ssd1306_128x32_spi,sdreader | ||
|
||
#- arduino-boards-fqbn: stm32duino:STM32F1:nucleo_f103rb | ||
# Examples to exclude because of ... | ||
#sketches-exclude: WiiClassicJoystick,BasicUsage,DigisparkOLED,SoftPwm13Pins,TinySoftPwmDemo,DigiUSB2LCD,DigisparkUSBDemo,ArduinoNunchukDemo,DigisparkJoystickDemo | ||
|
||
# Do not cancel all jobs / architectures if one job fails | ||
fail-fast: false | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@master | ||
|
||
- name: Use this repo as Arduino core | ||
run: | | ||
mkdir --parents $HOME/.arduino15/packages/stm32duino/hardware/STM32F1/0.0.7 # dummy release number | ||
# cannot move, since we want to compile the examples in the library subfolder :-) | ||
ln -s $GITHUB_WORKSPACE/STM32F1/* $HOME/.arduino15/packages/stm32duino/hardware/STM32F1/0.0.7 | ||
#cp --recursive $GITHUB_WORKSPACE/STM32F1/* $HOME/.arduino15/packages/stm32duino/hardware/STM32F1/0.0.7/ | ||
#ls -l --dereference --recursive --all $HOME/.arduino15/packages/stm32duino/hardware/STM32F1/0.0.7/ | ||
- name: Compile all examples | ||
uses: ArminJo/arduino-test-compile@master | ||
with: | ||
required-libraries: ${{ env.REQUIRED_LIBRARIES }} | ||
arduino-board-fqbn: ${{ matrix.arduino-boards-fqbn }} | ||
arduino-platform: stm32duino:STM32F1,arduino:sam # we require the C compiler from it. See dependencies of package_STM32duino_index.json | ||
#platform-default-url: ${{ env.PLATFORM_DEFAULT_URL }} | ||
#platform-url: ${{ matrix.platform-url }} | ||
sketches-exclude: ${{ matrix.sketches-exclude }} | ||
build-properties: ${{ toJson(matrix.build-properties) }} | ||
sketch-names: "*.ino" | ||
sketch-names-find-start: STM32F1/libraries/*/examples/ | ||
#debug-install: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -439,6 +439,7 @@ typedef enum rcc_clk_id { | |
RCC_TIMER12, | ||
RCC_TIMER13, | ||
RCC_TIMER14, | ||
RCC_CAN, | ||
} rcc_clk_id; | ||
|
||
/** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.