Skip to content

Rearrange the docs repo folders and add CI config scritps for this repo #55

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Nov 14, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Python CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-python/ for more details
#
version: 2
jobs:
build:
docker:
- image: circleci/python:3.6.1
working_directory: ~/repo
steps:
- checkout:
path: work/sinppet/TESTS
- run: mv work/sinppet/TESTS/mbed-os.lib work/
- run: wget -q https://developer.arm.com/-/media/Files/downloads/gnu-rm/6_1-2017q1/gcc-arm-none-eabi-6-2017-q1-update-linux.tar.bz2
- run: tar -xjf gcc-arm-none-eabi-6-2017-q1-update-linux.tar.bz2
- run: echo 'export PATH=~/repo/gcc-arm-none-eabi-6-2017-q1-update/bin:$PATH' >> $BASH_ENV
- run: sudo pip install mbed-cli
- run: git clone https://github.com/ARMmbed/mbed-os.git work/mbed-os
- run: sudo pip install -r work/mbed-os/requirements.txt
- run: |
cd work
mbed config root .
mbed update
mbed test --compile -m K64F -t GCC_ARM -n sinppet-* --app-config=sinppet/TESTS/test.json -v

2 changes: 2 additions & 0 deletions .mbedignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.circleci
.git
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

#include "BufferedBlockDevice.h"
#include "HeapBlockDevice.h"
#include <stdlib.h>
#include <cstdio>

int main()
{
Expand All @@ -29,7 +29,7 @@ int main()
int err = buf_bd.init();

uint8_t buf[8];
for (uint i = 0; i < sizeof(buf); i++) {
for (uint8_t i = 0; i < sizeof(buf); i++) {
buf[i] = i;
}

Expand Down
File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion Alarm/mbed-os.lib

This file was deleted.

1 change: 0 additions & 1 deletion CellularTCP/mbed-os.lib

This file was deleted.

1 change: 0 additions & 1 deletion DeviceKey/mbed-os.lib

This file was deleted.

1 change: 0 additions & 1 deletion Direct-Register-Blinky/mbed-os.lib

This file was deleted.

1 change: 0 additions & 1 deletion EventFlags/mbed-os.lib

This file was deleted.

1 change: 0 additions & 1 deletion Flow-Control/Busy-Wait-Button/mbed-os.lib

This file was deleted.

1 change: 0 additions & 1 deletion Flow-Control/Busy-Wait/mbed-os.lib

This file was deleted.

1 change: 0 additions & 1 deletion Flow-Control/Interrupt-Button/mbed-os.lib

This file was deleted.

1 change: 0 additions & 1 deletion Flow-Control/Thread/mbed-os.lib

This file was deleted.

1 change: 0 additions & 1 deletion Flow-Control/Ticker/mbed-os.lib

This file was deleted.

1 change: 0 additions & 1 deletion IdleLoop/mbed-os.lib

This file was deleted.

1 change: 0 additions & 1 deletion QSPI/mbed-os.lib

This file was deleted.

1 change: 0 additions & 1 deletion Queue/mbed-os.lib

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "mbed.h"

DigitalIn button(SW1); // Change to match your board
DigitalIn button(BUTTON1); // Change to match your board
DigitalOut led(LED1);

#define BUTTON_PRESS 0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "mbed.h"

InterruptIn button(SW1);
InterruptIn button(BUTTON1);
DigitalOut led(LED1);
DigitalOut heartbeat(LED2);

Expand Down
File renamed without changes.
1 change: 0 additions & 1 deletion USB/USBCDC_ECM/mbed-os.lib

This file was deleted.

1 change: 0 additions & 1 deletion blockdevices/BlockDevice/mbed-os.lib

This file was deleted.

1 change: 0 additions & 1 deletion blockdevices/BufferedBlockDevice/mbed-os.lib

This file was deleted.

1 change: 0 additions & 1 deletion blockdevices/FlashIAPBlockDevice/mbed-os.lib

This file was deleted.

1 change: 0 additions & 1 deletion blockdevices/FlashSimBlockDevice/mbed-os.lib

This file was deleted.

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion blockdevices/ProfilingBlockDevice/mbed-os.lib

This file was deleted.

1 change: 0 additions & 1 deletion blockdevices/SDBlockDevice/mbed-os.lib

This file was deleted.

1 change: 0 additions & 1 deletion blockdevices/SPIFBlockDevice/mbed-os.lib

This file was deleted.

1 change: 0 additions & 1 deletion blockdevices/SlicingBlockDevice/mbed-os.lib

This file was deleted.

This file was deleted.

2 changes: 2 additions & 0 deletions mbed-os.lib
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
https://github.com/ARMmbed/mbed-os/#679d24833acf0a0b5b0d528576bb37c70863bc4e

12 changes: 12 additions & 0 deletions test.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"target_overrides": {
"K64F":{
"target.components_add" : ["SPIF"],
"spif-driver.SPI_MOSI" : "D11",
"spif-driver.SPI_MISO" : "D12",
"spif-driver.SPI_CLK" : "D13",
"spif-driver.SPI_CS" : "D10"

}
}
}