-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
247d055
commit 52bb149
Showing
7,270 changed files
with
817,891 additions
and
0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
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,30 @@ | ||
name: Release Asset Upload Workflow | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
upload-release-asset: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.x' | ||
|
||
- name: Install Dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install requests | ||
- name: Run Release Script | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
REPO: ${{ github.repository }} | ||
TAG_NAME: ${{ github.event.release.tag_name }} | ||
run: python scripts/package_assets.py ${{ secrets.GITHUB_TOKEN }} ${{ github.repository }} ${{ github.event.release.tag_name }} | ||
|
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,39 @@ | ||
/* Project name: | ||
Button_Test (Sample usage of Button() function) | ||
* Copyright: | ||
(c) Mikroelektronika, 2019. | ||
* Description: | ||
Simple demonstration on usage of the Button() function. | ||
* Test configuration: | ||
Device: STM32F767ZG | ||
https://www.st.com/resource/en/datasheet/stm32f767zg.pdf | ||
Dev.Board: Fusion for ARM v8 | ||
https://www.mikroe.com/fusion-for-arm | ||
Oscillator: HSE-PLL, 216.000MHz | ||
Ext. Modules: None. | ||
SW: NECTO Studio | ||
https://mikroe.com/necto | ||
* NOTES: | ||
- Turn on LEDs on PORTD at SW4.4 (board specific). | ||
- Pull-down PA0 (board specific). | ||
- Turn ON button press level for PORTA/L at SW3.1 (board specific). | ||
- Pressing PA0 button should togle LEDs on PORTD. | ||
*/ | ||
|
||
unsigned int oldstate; | ||
|
||
void main() { | ||
|
||
GPIO_Digital_Input(&GPIOA_IDR, _GPIO_PINMASK_0); // Set PA0 as digital input | ||
GPIO_Digital_Output(&GPIOD_ODR, _GPIO_PINMASK_ALL); // Set PORTD as digital output | ||
oldstate = 0; | ||
|
||
do { | ||
if (Button(&GPIOA_IDR, 0, 1, 1)) // Detect logical one on PA0 pin | ||
oldstate = 1; | ||
if (oldstate && Button(&GPIOA_IDR, 0, 1, 0)) { // Detect one-to-zero transition on PA0 pin | ||
GPIOD_ODR = ~GPIOD_ODR; // Invert PORTD value | ||
oldstate = 0; | ||
} | ||
} while(1); // Endless loop | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,8 @@ | ||
{ | ||
"name": "Button", | ||
"description": "Simple demonstration on usage of the Button() function", | ||
"image" : "io_group.png", | ||
"toolchain": ["mikrocarm"], | ||
"hw" : ["Fusion for ARM"], | ||
"category" : ["mikroC legacy ARM"] | ||
} |
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,20 @@ | ||
|
||
uses: { | ||
MikroC.System | ||
MikroC.Button | ||
} | ||
|
||
depends: { | ||
MikroC.System | ||
MikroC.Button | ||
} | ||
|
||
type: executable | ||
|
||
sources: { | ||
Button.c | ||
} | ||
|
||
others: { | ||
|
||
} |
262 changes: 262 additions & 0 deletions
262
packages/ARM/Examples/Fusion_for_ARM_v8/Button/setup/setup.json
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,262 @@ | ||
{ | ||
"board": { | ||
"category": "Development board", | ||
"icon": "images/fusion-for-arm-v8.png", | ||
"mikrobus_count": 5, | ||
"name": "Fusion for ARM v8", | ||
"tft_display": null, | ||
"version": "" | ||
}, | ||
"display": { | ||
"icon": ":/block_icon", | ||
"init_code": null, | ||
"name": "No display" | ||
}, | ||
"mcu": { | ||
"architecture": "ARM Cortex-M7", | ||
"device_id": "STM32F767ZG|144|Tx", | ||
"family": "STM32", | ||
"flash": "1024KB", | ||
"icon": "images/stm.png", | ||
"isMCUCard": false, | ||
"max_speed": "216MHz", | ||
"name": "STM32F767ZG", | ||
"pin_count": "144", | ||
"ram": "512KB", | ||
"settings": { | ||
"clock": 216, | ||
"config_registers": [ | ||
{ | ||
"fields": [ | ||
{ | ||
"key": "HSION", | ||
"value": "00000001" | ||
}, | ||
{ | ||
"key": "HSEON", | ||
"value": "00000000" | ||
}, | ||
{ | ||
"key": "HSEBYP", | ||
"value": "00000000" | ||
}, | ||
{ | ||
"key": "CSSON", | ||
"value": "00000000" | ||
}, | ||
{ | ||
"key": "PLLON", | ||
"value": "01000000" | ||
}, | ||
{ | ||
"key": "PLLI2SON", | ||
"value": "00000000" | ||
}, | ||
{ | ||
"key": "HSITRIM", | ||
"value": "00000080" | ||
}, | ||
{ | ||
"key": "PLLSAION", | ||
"value": "00000000" | ||
} | ||
], | ||
"key": "RCC_CR" | ||
}, | ||
{ | ||
"fields": [ | ||
{ | ||
"key": "PLLM", | ||
"value": "00000010" | ||
}, | ||
{ | ||
"key": "PLLN", | ||
"value": "00005400" | ||
}, | ||
{ | ||
"key": "PLLP", | ||
"value": "00000000" | ||
}, | ||
{ | ||
"key": "PLLSRC", | ||
"value": "00000000" | ||
}, | ||
{ | ||
"key": "PLLQ", | ||
"value": "07000000" | ||
}, | ||
{ | ||
"key": "PLLR", | ||
"value": "20000000" | ||
} | ||
], | ||
"key": "RCC_PLLCFGR" | ||
}, | ||
{ | ||
"fields": [ | ||
{ | ||
"key": "SW", | ||
"value": "00000002" | ||
}, | ||
{ | ||
"key": "HPRE", | ||
"value": "00000000" | ||
}, | ||
{ | ||
"key": "PPRE1", | ||
"value": "00001400" | ||
}, | ||
{ | ||
"key": "PPRE2", | ||
"value": "00008000" | ||
}, | ||
{ | ||
"key": "RTCPRE", | ||
"value": "00000000" | ||
}, | ||
{ | ||
"key": "MCO1", | ||
"value": "00000000" | ||
}, | ||
{ | ||
"key": "I2SSRC", | ||
"value": "00000000" | ||
}, | ||
{ | ||
"key": "MCO1PRE", | ||
"value": "00000000" | ||
}, | ||
{ | ||
"key": "MCO2PRE", | ||
"value": "00000000" | ||
}, | ||
{ | ||
"key": "MCO2", | ||
"value": "00000000" | ||
} | ||
], | ||
"key": "RCC_CFGR" | ||
}, | ||
{ | ||
"fields": [ | ||
{ | ||
"key": "VRANGE", | ||
"value": "00000003" | ||
} | ||
], | ||
"key": "SVRANGE" | ||
} | ||
], | ||
"mcu": "STM32F767ZG", | ||
"package": "Tx" | ||
}, | ||
"vendor": "STMicroelectronics" | ||
}, | ||
"name": "Fusion for ARM v8 STM32F767ZG", | ||
"prog": { | ||
"description": "CODEGRIP Suite is a powerful software tool. It is used to intelligently manage programming tasks, as well as various other options and settings of the CODEGRIP.", | ||
"icon": "icon.png", | ||
"name": "CODEGRIP", | ||
"planet_debug_compatible": "Yes", | ||
"settings": { | ||
"auto_start_local_gdb": true, | ||
"control_port": "1235", | ||
"ip_address": "127.0.0.1", | ||
"port": "1234", | ||
"remote_addresses": [], | ||
"remote_password": "", | ||
"selected_device": null, | ||
"selected_options": { | ||
"Connection": { | ||
"group": "Target Connection", | ||
"value": "Normal" | ||
}, | ||
"Erase Type": { | ||
"group": "Target Operation", | ||
"value": "Sector erase" | ||
}, | ||
"Halt on Connect": { | ||
"group": "Target Connection", | ||
"value": "Disabled" | ||
}, | ||
"Protocol": { | ||
"group": "Target Connection", | ||
"value": "SWD" | ||
}, | ||
"Reset Type": { | ||
"group": "Target Connection", | ||
"value": "Hardware reset" | ||
}, | ||
"Speed": { | ||
"group": "Target Connection", | ||
"value": "4 MHz" | ||
}, | ||
"Verify Type": { | ||
"group": "Target Operation", | ||
"value": "CRC" | ||
}, | ||
"Verify after Write": { | ||
"group": "Target Operation", | ||
"value": "Enabled" | ||
} | ||
} | ||
}, | ||
"uid": "codegrip" | ||
}, | ||
"sdk": { | ||
"families": [ | ||
"STM32", | ||
"MSP432", | ||
"CEC", | ||
"Stellaris", | ||
"Tiva", | ||
"Kinetis K Series", | ||
"Kinetis V Series" | ||
], | ||
"icon": "Resources/icon.png", | ||
"legacy": true, | ||
"name": "mikroC for ARM Legacy", | ||
"sdk_development_kit": false, | ||
"uuid": "sdk.mikroc.legacy.arm", | ||
"version": "6.2.0" | ||
}, | ||
"toolchain": { | ||
"icon": "mikroC_arm.png", | ||
"language": "MikroC", | ||
"name": "mikroC AI for ARM", | ||
"settings": { | ||
"actions": { | ||
"build": { | ||
"steps": [ | ||
{ | ||
"class_name": "ProjectManagerModule::MeMakeStep", | ||
"value": { | ||
"arguments": "--build all", | ||
"enabled": true | ||
} | ||
} | ||
] | ||
}, | ||
"clean": { | ||
"steps": [ | ||
{ | ||
"class_name": "ProjectManagerModule::MeMakeStep", | ||
"value": { | ||
"arguments": "--clean", | ||
"enabled": true | ||
} | ||
} | ||
] | ||
} | ||
}, | ||
"memake.settings": { | ||
"BOARD_NAME": "BOARD_FUSION_FOR_ARM_V8" | ||
}, | ||
"output_path": "" | ||
}, | ||
"uid": "mikrocarm", | ||
"vendor": "MikroElektronika", | ||
"version": "1.1.0" | ||
}, | ||
"uid": "7695d1d1-f11c-40c8-a8e8-5efe24b673d5" | ||
} |
Oops, something went wrong.