Skip to content

Commit

Permalink
Merge pull request riot-appstore#38 from MrKevinWeiss/pr/addinterface
Browse files Browse the repository at this point in the history
feature(interface): Updates protocol and adds an interface/shell wrapper
  • Loading branch information
MrKevinWeiss authored Apr 23, 2019
2 parents 6d06a02 + d0bdc2e commit c8ce74d
Show file tree
Hide file tree
Showing 62 changed files with 8,865 additions and 900 deletions.
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,12 @@ NUCLEOF103RB/

# Docs
Docs/

# Python compiled files
*.pyc
dist/
build/
*.egg-info
*.eggs
__pycache__
.pytest_cache
63 changes: 37 additions & 26 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,42 @@
# travis build configuration for stm32plus
# travis build configuration for philip
matrix:
include:
- language: python
python:
- "3.5"
- "3.6"

language: c
sudo: false
install:
- "pip install flake8"
script:
- flake8

addons:
apt:
packages:
- libc6-i386
- doxygen
- language: c
sudo: false

cache:
directories:
- $HOME/gcc-arm-none-eabi-7-2017-q4-major
addons:
apt:
packages:
- libc6-i386
- doxygen

install:
- export GCC_DIR=$HOME/gcc-arm-none-eabi-7-2017-q4-major
- export GCC_ARCHIVE=$HOME/gcc-arm-none-eabi-7-2017-q4-major-linux.tar.bz2
- export GCC_URL=https://developer.arm.com/-/media/Files/downloads/gnu-rm/7-2017q4/gcc-arm-none-eabi-7-2017-q4-major-linux.tar.bz2?revision=375265d4-e9b5-41c8-bf23-56cbe927e156?product=GNU%20Arm%20Embedded%20Toolchain,64-bit,,Linux,7-2017-q4-major
- if [ ! -e $GCC_DIR/bin/arm-none-eabi-gcc ]; then wget $GCC_URL -O $GCC_ARCHIVE; tar xfj $GCC_ARCHIVE -C $HOME; fi
- export PATH=$PATH:$GCC_DIR/bin
cache:
directories:
- $HOME/gcc-arm-none-eabi-7-2017-q4-major

script:
- cd FW
- make
- make clean
- BOARD=BLUEPILL make
- BOARD=BLUEPILL make clean
- BOARD=NUCLEOF103RB make
- BOARD=NUCLEOF103RB make clean
- make doc
install:
- export GCC_DIR=$HOME/gcc-arm-none-eabi-7-2017-q4-major
- export GCC_ARCHIVE=$HOME/gcc-arm-none-eabi-7-2017-q4-major-linux.tar.bz2
- export GCC_URL=https://developer.arm.com/-/media/Files/downloads/gnu-rm/7-2017q4/gcc-arm-none-eabi-7-2017-q4-major-linux.tar.bz2?revision=375265d4-e9b5-41c8-bf23-56cbe927e156?product=GNU%20Arm%20Embedded%20Toolchain,64-bit,,Linux,7-2017-q4-major
- if [ ! -e $GCC_DIR/bin/arm-none-eabi-gcc ]; then wget $GCC_URL -O $GCC_ARCHIVE; tar xfj $GCC_ARCHIVE -C $HOME; fi
- export PATH=$PATH:$GCC_DIR/bin

script:
- cd FW
- make
- make clean
- BOARD=BLUEPILL make
- BOARD=BLUEPILL make clean
- BOARD=NUCLEOF103RB make
- BOARD=NUCLEOF103RB make clean
- make doc
6 changes: 6 additions & 0 deletions FW/Inc/port.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@
#define DUT_DAC_Pin GPIO_PIN_9
#define DUT_DAC_GPIO_Port GPIOB

#define LED_OFF GPIO_PIN_SET

#define GPIO_NSS_CTS_IRQ EXTI15_10_IRQn
#define GPIO_DEBUG0_IRQ EXTI0_IRQn
#define GPIO_DEBUG1_IRQ EXTI1_IRQn
Expand Down Expand Up @@ -165,6 +167,8 @@
#define DUT_SDA_Pin GPIO_PIN_9
#define DUT_SDA_GPIO_Port GPIOB

#define LED_OFF GPIO_PIN_RESET

#define GPIO_NSS_CTS_IRQ EXTI15_10_IRQn
#define GPIO_DEBUG0_IRQ EXTI3_IRQn
#define GPIO_DEBUG1_IRQ EXTI4_IRQn
Expand Down Expand Up @@ -232,6 +236,8 @@
#define DUT_SCL DUT_SCL_GPIO_Port, DUT_SCL_Pin
#define DUT_SDA DUT_SDA_GPIO_Port, DUT_SDA_Pin



void init_periphs(void);
void init_clock(void);

Expand Down
8 changes: 6 additions & 2 deletions FW/Inc/uart.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,12 @@
#define UART_H_

/* Defines -------------------------------------------------------------------*/
/** @brief Size allocated for uart buffers */
#define UART_BUF_SIZE (256 + 128)
/** @brief Size allocated for if uart buffer */
#define UART_IF_BUF_SIZE (1024)

/** @brief Size allocated for dut uart buffer */
#define UART_DUT_BUF_SIZE (128)


/* Function prototypes -------------------------------------------------------*/
/**
Expand Down
24 changes: 9 additions & 15 deletions FW/MMM/PHiLIP_access.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
* @file PHiLIP_access.c
* @author Kevin Weiss
* @version 0.0.2
* @date 2019-03-22
* @date 2019-04-21
* @}
* @details Generated from the memory map manager
* @details Generated from the memory map manager version 0.0.9
******************************************************************************
*/

Expand Down Expand Up @@ -71,9 +71,9 @@ const uint8_t MAP_T_ACCESS[] = {
0x00, 0x00, 0x00, 0x00, /* uart_res */
0x01, /* rtc_mode */
0x00, /* rtc_second */
0x01, /* rtc_minute */
0x01, /* rtc_hour */
0x01, 0x01, /* rtc_day */
0x00, /* rtc_minute */
0x00, /* rtc_hour */
0x00, 0x00, /* rtc_day */
0x01, /* rtc_set_second */
0x01, /* rtc_set_minute */
0x01, /* rtc_set_hour */
Expand All @@ -98,25 +98,19 @@ const uint8_t MAP_T_ACCESS[] = {
0x00, /* dac_status */
0x01, 0x01, /* dac_level */
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* dac_res */
0x01, /* tmr_mode */
0x01, 0x01, /* tmr_error_code */
0x01, /* tmr_duty */
0x01, 0x01, 0x01, 0x01, /* tmr_freq */
0x01, 0x01, 0x01, 0x01, /* tmr_hi_us */
0x01, 0x01, 0x01, 0x01, /* tmr_lo_us */
0x00, 0x00, /* gpio_0_mode */
0x01, 0x01, /* gpio_0_mode */
0x00, /* gpio_0_status */
0x00, /* gpio_0_res */
0x00, 0x00, /* gpio_1_mode */
0x01, 0x01, /* gpio_1_mode */
0x00, /* gpio_1_status */
0x00, /* gpio_1_res */
0x00, 0x00, /* gpio_2_mode */
0x01, 0x01, /* gpio_2_mode */
0x00, /* gpio_2_status */
0x00, /* gpio_2_res */
0x00, 0x00, 0x00, 0x00, /* trace_index */
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* trace_tick_div */
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* trace_source */
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* trace_value */
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* trace_tick */
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 /* res */
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 /* res */
};/**< access array total size 1024 */
Loading

0 comments on commit c8ce74d

Please sign in to comment.