Skip to content
This repository was archived by the owner on Sep 16, 2024. It is now read-only.

Commit 99ab8f1

Browse files
author
Daniel Campora
committed
pycom-micropython: New repo with Sigfox libraries.
0 parents  commit 99ab8f1

File tree

2,821 files changed

+822065
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,821 files changed

+822065
-0
lines changed

.gitattributes

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Per default everything gets normalized and gets LF line endings on checkout.
2+
* text eol=lf
3+
4+
# These will always have CRLF line endings on checkout.
5+
*.vcxproj text eol=crlf
6+
*.props text eol=crlf
7+
*.bat text eol=crlf
8+
9+
# These are binary so should never be modified by git.
10+
*.png binary
11+
*.jpg binary
12+
*.dxf binary
13+
*.a binary
14+
*.bin binary
15+
*.pdf binary
16+
*.ttf binary
17+
*.svg binary
18+
*.gif binary
19+
20+
# These should also not be modified by git.
21+
tests/basics/string_cr_conversion.py -text
22+
tests/basics/string_crlf_conversion.py -text
23+
stmhal/startup_stm32f40xx.s -text
24+
stmhal/pybcdc.inf_template -text
25+
stmhal/usbd_* -text
26+
stmhal/boards/*/stm32f4xx_hal_conf.h -text
27+
stmhal/cmsis/** -text
28+
stmhal/hal/** -text
29+
stmhal/usbdev/** -text
30+
stmhal/usbhost/** -text
31+
cc3200/hal/aes.c -text
32+
cc3200/hal/aes.h -text
33+
cc3200/hal/des.c -text
34+
cc3200/hal/i2s.c -text
35+
cc3200/hal/i2s.h -text
36+
cc3200/version.h -text
37+
lib/fatfs/** -text

.github/ISSUE_TEMPLATE.md

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
Please include the following information when submitting a bug report:
2+
3+
* The Pycom board you are using (e.g. WiPy 2.0, LoPy).
4+
* The firmware version you are using. You can get it by executing the following Python code at the REPL:
5+
```
6+
import os
7+
os.uname()
8+
```
9+
The output will look similar to this:
10+
```
11+
(sysname='LoPy', nodename='LoPy', release='0.9.4.b1', version='bc42ea7 on 2016-11-14', machine='LoPy with ESP32')
12+
```
13+
* Exact steps to cause this issue
14+
1. First I did this...
15+
2. Then, I did that...
16+
* What you expected
17+
* e.g. I expected *abc* to *xyz*
18+
* What happened instead
19+
* e.g. Instead, I got *zyx*
20+
21+
Thank you!

.gitignore

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Compiled Sources
2+
###################
3+
*.o
4+
*.a
5+
*.elf
6+
*.bin
7+
*.map
8+
*.hex
9+
*.dis
10+
*.exe
11+
12+
# Packages
13+
############
14+
15+
# Logs and Databases
16+
######################
17+
*.log
18+
19+
# VIM Swap Files
20+
######################
21+
*.swp
22+
23+
# Build directory
24+
######################
25+
build/
26+
27+
# Test failure outputs
28+
######################
29+
tests/*.exp
30+
tests/*.out
31+
32+
# Python cache files
33+
######################
34+
__pycache__/
35+
*.pyc
36+
37+
# Customized Makefile/project overrides
38+
######################
39+
GNUmakefile
40+
user.props

.gitmodules

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[submodule "lib/axtls"]
2+
path = lib/axtls
3+
url = https://github.com/pfalcon/axtls
4+
branch = micropython
5+
[submodule "lib/libffi"]
6+
path = lib/libffi
7+
url = https://github.com/atgreen/libffi
8+
[submodule "lib/lwip"]
9+
path = lib/lwip
10+
url = http://git.savannah.gnu.org/r/lwip.git
11+
[submodule "lib/berkeley-db-1.xx"]
12+
path = lib/berkeley-db-1.xx
13+
url = https://github.com/pfalcon/berkeley-db-1.xx

.travis.yml

+65
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
sudo: required
2+
dist: trusty
3+
language: c
4+
compiler:
5+
- gcc
6+
cache:
7+
directories:
8+
- "${HOME}/persist"
9+
10+
before_script:
11+
# Extra CPython versions
12+
# - sudo add-apt-repository -y ppa:fkrull/deadsnakes
13+
# Extra gcc versions
14+
# - sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
15+
- sudo add-apt-repository -y ppa:terry.guo/gcc-arm-embedded
16+
- sudo dpkg --add-architecture i386
17+
- sudo apt-get update -qq || true
18+
- sudo apt-get install -y python3 gcc-multilib pkg-config libffi-dev libffi-dev:i386 qemu-system gcc-mingw-w64
19+
- sudo apt-get install -y --force-yes gcc-arm-none-eabi
20+
# For teensy build
21+
- sudo apt-get install realpath
22+
# For coverage testing
23+
- sudo pip install cpp-coveralls
24+
- gcc --version
25+
- arm-none-eabi-gcc --version
26+
- python3 --version
27+
28+
script:
29+
- make -C mpy-cross
30+
- make -C minimal CROSS=1 build/firmware.bin
31+
- ls -l minimal/build/firmware.bin
32+
- tools/check_code_size.sh
33+
- mkdir -p ${HOME}/persist
34+
# Save new firmware for reference, but only if building a main branch, not a pull request
35+
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then cp minimal/build/firmware.bin ${HOME}/persist/; fi'
36+
- make -C unix deplibs
37+
- make -C unix
38+
- make -C unix nanbox
39+
- make -C bare-arm
40+
- make -C qemu-arm test
41+
- make -C stmhal
42+
- make -C stmhal -B MICROPY_PY_WIZNET5K=1 MICROPY_PY_CC3K=1
43+
- make -C stmhal BOARD=STM32F4DISC
44+
- make -C teensy
45+
- make -C cc3200 BTARGET=application BTYPE=release
46+
- make -C cc3200 BTARGET=bootloader BTYPE=release
47+
- make -C windows CROSS_COMPILE=i686-w64-mingw32-
48+
49+
# run tests without coverage info
50+
#- (cd tests && MICROPY_CPYTHON3=python3.4 ./run-tests)
51+
#- (cd tests && MICROPY_CPYTHON3=python3.4 ./run-tests --emit native)
52+
53+
# run tests with coverage info
54+
- make -C unix coverage
55+
- (cd tests && MICROPY_CPYTHON3=python3.4 MICROPY_MICROPYTHON=../unix/micropython_coverage ./run-tests)
56+
- (cd tests && MICROPY_CPYTHON3=python3.4 MICROPY_MICROPYTHON=../unix/micropython_coverage ./run-tests -d thread)
57+
- (cd tests && MICROPY_CPYTHON3=python3.4 MICROPY_MICROPYTHON=../unix/micropython_coverage ./run-tests --emit native)
58+
- (cd tests && MICROPY_CPYTHON3=python3.4 MICROPY_MICROPYTHON=../unix/micropython_coverage ./run-tests --via-mpy -d basics)
59+
60+
after_success:
61+
- (cd unix && coveralls --root .. --build-root . --gcov $(which gcov) --gcov-options '\-o build-coverage/' --include py --include extmod)
62+
63+
after_failure:
64+
- (cd tests && for exp in *.exp; do testbase=$(basename $exp .exp); echo -e "\nFAILURE $testbase"; diff -u $testbase.exp $testbase.out; done)
65+
- (grep "FAIL" qemu-arm/build/console.out)

0 commit comments

Comments
 (0)