Import of the watch repository from Pebble

This commit is contained in:
Matthieu Jeanson 2024-12-12 16:43:03 -08:00 committed by Katharine Berry
commit 3b92768480
10334 changed files with 2564465 additions and 0 deletions

28
src/fw/vendor/nanopb/.gitignore vendored Normal file
View file

@ -0,0 +1,28 @@
*.gcda
*.gcno
*.gcov
*.o
*.pb.c
*.pb.h
*.pb
*.pyc
*_pb2.py
*~
*.tar.gz
.sconsign.dblite
config.log
.sconf_temp
tests/build
julkaisu.txt
dist
docs/*.html
docs/generator_flow.png
examples/simple/simple
examples/network_server/client
examples/network_server/server
examples/using_double_on_avr/decode_double
examples/using_double_on_avr/encode_double
examples/using_double_on_avr/test_conversions
examples/using_union_messages/decode
examples/using_union_messages/encode
generator/nanopb_pb2.pyc

68
src/fw/vendor/nanopb/.travis.yml vendored Normal file
View file

@ -0,0 +1,68 @@
# Copyright 2024 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# Travis CI has no ability to handle 3 langauges (c, c++, python)
# and it overrides $CC/$CXX if language is set to c/c++ (only one, not both).
#
# Set language to python since at least the result of that is something useful.
language: python
python:
- "2.7"
- "3.4"
# Manage the C/C++ compiler manually
env:
- CC=gcc CXX=g++
- CC=gcc-4.8 CXX=g++-4.8
- CC=gcc-4.9 CXX=g++-4.9
- CC=gcc-5 CXX=g++-5
- CC=clang CXX=clang++
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-4.8
- g++-4.8
- gcc-4.9
- g++-4.9
- gcc-5
- g++-5
before_install:
- export PATH=$HOME/.local/bin:$HOME/protobuf/bin:$PATH
- export MAKEFLAGS=-j$(grep processor /proc/cpuinfo | wc -l)
- $CC --version
- $CXX --version
- python --version
- lsb_release -a
# Seems to be issues with concurrent builds
#cache:
# directories:
# - $HOME/protobuf
install:
- curl -L https://github.com/google/protobuf/releases/download/v3.0.0-beta-1/protobuf-python-3.0.0-alpha-4.tar.gz | tar xzf -
&& pushd protobuf-3.0.0-alpha-4
&& ./configure --prefix=$HOME/protobuf && make && make install
&& pushd python && python setup.py build && python setup.py install && popd
&& popd
script:
- pushd generator/proto && make && popd
- pushd tests && python2 $(which scons) CC=$CC CXX=$CXX && popd

53
src/fw/vendor/wscript vendored Normal file
View file

@ -0,0 +1,53 @@
def configure(conf):
if conf.is_silk():
conf.env.append_unique('DEFINES', 'STM32F412xG')
elif conf.env.MICRO_FAMILY == 'STM32F4':
conf.env.append_unique('DEFINES', 'STM32F429_439xx')
elif conf.env.MICRO_FAMILY == 'STM32F7':
conf.env.append_unique('DEFINES', 'STM32F779xx')
conf.recurse('FreeRTOS')
if conf.capability('HAS_JAVASCRIPT'):
conf.recurse('jerryscript')
def build(bld):
bld.recurse('tinymt32')
bld.recurse('FreeRTOS')
bld.recurse('nanopb')
if bld.env.MICRO_FAMILY == 'STM32F4':
if bld.is_silk():
excludes = ['**/stm32f4xx_fmc.c']
else:
excludes = ['**/stm32f4xx_fsmc.c']
stm32_sources = bld.path.ant_glob('STM32F4xx_StdPeriph_Driver/src/*.c',
excl=excludes)
stm32_includes = ['CMSIS/Include',
'CMSIS/Device/ST/STM32F4xx/Include',
'STM32F4xx_StdPeriph_Driver/inc']
elif bld.env.MICRO_FAMILY == 'STM32F2':
stm32_sources = bld.path.ant_glob('STM32F2xx_StdPeriph_Driver/src/*.c')
stm32_includes = ['CMSIS/Include',
'CMSIS/Device/ST/STM32F2xx/Include',
'STM32F2xx_StdPeriph_Driver/inc']
elif bld.env.MICRO_FAMILY == 'STM32F7':
stm32_sources = bld.path.ant_glob('stm32f7haxx_stdperiph/*.c')
stm32_includes = ['CMSIS/Include',
'CMSIS/Device/ST/STM32F7xx/Include',
'stm32f7haxx_stdperiph']
else:
bld.fatal("No microcontroller family set for this build")
bld.stlib(source=stm32_sources,
target='stm32_stdlib',
use='pblibc',
# Parent dir is included for stm32fxxx_conf.h
includes=stm32_includes + ['..'],
export_includes=stm32_includes)
# vim:filetype=python