Merged nuttx/nuttx into master
This commit is contained in:
commit
358c22c122
@ -49,13 +49,13 @@
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************************************/
|
||||
|
||||
#define STM32_ADC1_BASE_OFFSET 0x0000
|
||||
#define STM32_ADC2_BASE_OFFSET 0x0100
|
||||
#define STM32_ADC12_BASE_OFFSET 0x0300
|
||||
#define STM32_ADC1_OFFSET 0x0000
|
||||
#define STM32_ADC2_OFFSET 0x0100
|
||||
#define STM32_ADC12_CMN_OFFSET 0x0300
|
||||
|
||||
#define STM32_ADC1_BASE (STM32_ADC1_BASE_OFFSET+STM32_ADC12_BASE) /* ADC1 Master ADC */
|
||||
#define STM32_ADC2_BASE (STM32_ADC1_BASE_OFFSET+STM32_ADC12_BASE) /* ADC2 Slave ADC */
|
||||
#define STM32_ADC12_BASE (STM32_ADC1_BASE_OFFSET+STM32_ADC12_BASE) /* ADC1, ADC2 common */
|
||||
#define STM32_ADC1_BASE (STM32_ADC1_OFFSET+STM32_ADC12_BASE) /* ADC1 Master ADC */
|
||||
#define STM32_ADC2_BASE (STM32_ADC2_OFFSET+STM32_ADC12_BASE) /* ADC2 Slave ADC */
|
||||
#define STM32_ADC12_CMN_BASE (STM32_ADC12_CMN_OFFSET+STM32_ADC12_BASE) /* ADC1, ADC2 common */
|
||||
|
||||
/* Register Offsets *********************************************************************************/
|
||||
|
||||
@ -151,9 +151,9 @@
|
||||
#define STM32_ADC2_DIFSEL (STM32_ADC2_BASE+STM32_ADC_DIFSEL_OFFSET)
|
||||
#define STM32_ADC2_CALFACT (STM32_ADC2_BASE+STM32_ADC_CALFACT_OFFSET)
|
||||
|
||||
#define STM32_ADC12_CSR (STM32_ADC12_BASE+STM32_ADC_CSR_OFFSET)
|
||||
#define STM32_ADC12_CCR (STM32_ADC12_BASE+STM32_ADC_CCR_OFFSET)
|
||||
#define STM32_ADC12_CDR (STM32_ADC12_BASE+STM32_ADC_CDR_OFFSET)
|
||||
#define STM32_ADC12_CSR (STM32_ADC12_CMN_BASE+STM32_ADC_CSR_OFFSET)
|
||||
#define STM32_ADC12_CCR (STM32_ADC12_CMN_BASE+STM32_ADC_CCR_OFFSET)
|
||||
#define STM32_ADC12_CDR (STM32_ADC12_CMN_BASE+STM32_ADC_CDR_OFFSET)
|
||||
|
||||
/* Register Bitfield Definitions ********************************************************************/
|
||||
/* ADC interrupt and status register (ISR) and ADC interrupt enable register (IER) */
|
||||
|
@ -519,6 +519,11 @@ configs/p112
|
||||
Dave Brooks was successfully funded through Kickstarter for and another
|
||||
run of P112 boards in November of 2012.
|
||||
|
||||
configs/photon
|
||||
A configuration for the Photon Wifi board from Particle Devices
|
||||
(https://www.particle.io). This board features the STM32F205RGY6 MCU from
|
||||
STMicro.
|
||||
|
||||
configs/pic32mx-starterkit
|
||||
This directory contains the port of NuttX to the Microchip PIC32 Ethernet
|
||||
Starter Kit (DM320004) with the Multimedia Expansion Board (MEB, DM320005).
|
||||
|
@ -20,25 +20,43 @@ Board Support
|
||||
|
||||
The following peripherals are available in this configuration.
|
||||
|
||||
- LEDs: show the sytem status
|
||||
- LEDs: Show the sytem status
|
||||
|
||||
- Buttons: TAMPER-button, WKUP-button, J1-Joystick (consists of RIGHT-,
|
||||
UP-, LEFT-, DOWN-, and CENTER-button). Built in app
|
||||
'buttons' works.
|
||||
UP-, LEFT-, DOWN-, and CENTER-button).
|
||||
|
||||
- ADC: ADC1 samples the red trim potentiometer AN_TR
|
||||
Built in app 'adc' works.
|
||||
|
||||
- USB-FS-OTG: There is a USB-A-connector (host) connected to the full
|
||||
speed STM32 inputs.
|
||||
speed STM32 OTG inputs.
|
||||
|
||||
- USB-HS-OTG: The other connector (device) is connected to the high speed
|
||||
STM32 inputs.
|
||||
STM32 OTG inputs.
|
||||
|
||||
- CAN: Built in app 'can' works, but apart from that not really tested.
|
||||
- CAN: Built in app 'can' works, but apart from that not really
|
||||
tested.
|
||||
|
||||
- Ethernet: Ping to other station on the network works.
|
||||
|
||||
- microSD: Not fully functional. See below.
|
||||
|
||||
- LCD: Nokia 6610. This is similar the Nokia 6100 LCD used on other
|
||||
Olimex boards. There is a driver for that LCD at
|
||||
drivers/lcd/nokia6100.c, however, it is not properly
|
||||
integrated. It uses a 9-bit SPI interface which is difficult
|
||||
to get working properly.
|
||||
|
||||
- External Support is included for the onboard SRAM. It uses SRAM
|
||||
SRAM: settings from another board that might need to be tweaked.
|
||||
Difficult to test because the SRAM conflicts with both
|
||||
RS232 ports.
|
||||
|
||||
- Other: Buzzer, Camera, Temperature sensor, audio have not been
|
||||
tested.
|
||||
|
||||
If so, then it requires a 9-bit
|
||||
|
||||
microSD Card Interface
|
||||
======================
|
||||
|
||||
@ -205,6 +223,13 @@ OTGFS Host
|
||||
CONFIG_EXAMPLES_HIDKBD_DEVNAME="/dev/kbda"
|
||||
CONFIG_EXAMPLES_HIDKBD_STACKSIZE=1024
|
||||
|
||||
STATUS: The MSC configurations seems fully functional. The HIDKBD seems rather
|
||||
flaky. Sometimes the LEDs become very bright (indicating that it is being
|
||||
swamped with interrupts). Data input is not clean with apps/examples/hidkbd:
|
||||
There are missing characters and sometimes duplicated characters. This implies
|
||||
some logic issues, probably in drivers/usbhost/usbhost_hidkbd, with polling and
|
||||
data filtering.
|
||||
|
||||
Configurations
|
||||
==============
|
||||
|
||||
@ -404,7 +429,7 @@ STATUS
|
||||
feature configurations.
|
||||
|
||||
CCM memory is not included in the heap (CONFIG_STM32_CCMEXCLUDE=y) because
|
||||
it does no suport DMA, leaving only 128KiB for program usage.
|
||||
it does not suport DMA, leaving only 128KiB for program usage.
|
||||
|
||||
2107-01-23: Added the the knsh configuration and support for the PROTECTED
|
||||
build mode.
|
||||
|
@ -1,7 +1,7 @@
|
||||
/************************************************************************************
|
||||
* configs/photon/include/board.h
|
||||
*
|
||||
* Copyright (C) 2013, 2016 Gregory Nutt. All rights reserved.
|
||||
* Copyright (C) 2017 Gregory Nutt. All rights reserved.
|
||||
* Author: Simon Piriou <spiriou31@gmail.com>
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
@ -163,7 +163,8 @@
|
||||
#undef EXTERN
|
||||
#if defined(__cplusplus)
|
||||
#define EXTERN extern "C"
|
||||
extern "C" {
|
||||
extern "C"
|
||||
{
|
||||
#else
|
||||
#define EXTERN extern
|
||||
#endif
|
||||
@ -171,6 +172,7 @@ extern "C" {
|
||||
/************************************************************************************
|
||||
* Public Function Prototypes
|
||||
************************************************************************************/
|
||||
|
||||
/************************************************************************************
|
||||
* Name: stm32_boardinitialize
|
||||
*
|
||||
@ -181,7 +183,7 @@ extern "C" {
|
||||
*
|
||||
************************************************************************************/
|
||||
|
||||
EXTERN void stm32_boardinitialize(void);
|
||||
void stm32_boardinitialize(void);
|
||||
|
||||
#undef EXTERN
|
||||
#if defined(__cplusplus)
|
||||
@ -189,5 +191,4 @@ EXTERN void stm32_boardinitialize(void);
|
||||
#endif
|
||||
|
||||
#endif /* __ASSEMBLY__ */
|
||||
|
||||
#endif /* __CONFIG_PHOTON_INCLUDE_BOARD_H */
|
||||
|
@ -1,7 +1,7 @@
|
||||
############################################################################
|
||||
# configs/photon/nsh/Make.defs
|
||||
#
|
||||
# Copyright (C) 2011-2012 Gregory Nutt. All rights reserved.
|
||||
# Copyright (C) 2017 Gregory Nutt. All rights reserved.
|
||||
# Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
@ -114,4 +114,3 @@ HOSTCC = gcc
|
||||
HOSTINCLUDES = -I.
|
||||
HOSTCFLAGS = -Wall -Wstrict-prototypes -Wshadow -Wundef -g -pipe
|
||||
HOSTLDFLAGS =
|
||||
|
||||
|
@ -16,7 +16,7 @@ CONFIG_HOST_LINUX=y
|
||||
#
|
||||
# Build Configuration
|
||||
#
|
||||
CONFIG_APPS_DIR="../apps"
|
||||
# CONFIG_APPS_DIR="../apps"
|
||||
CONFIG_BUILD_FLAT=y
|
||||
# CONFIG_BUILD_2PASS is not set
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
# configs/photon/nsh/setenv.sh
|
||||
#
|
||||
# Copyright (C) 2011-2012 Gregory Nutt. All rights reserved.
|
||||
# Copyright (C) 2017 Gregory Nutt. All rights reserved.
|
||||
# Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
@ -55,7 +55,7 @@ fi
|
||||
# This is the Cygwin path to the location where I installed the CodeSourcery
|
||||
# toolchain under windows. You will also have to edit this if you install
|
||||
# the CodeSourcery toolchain in any other location
|
||||
export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/CodeSourcery/Sourcery G++ Lite/bin"
|
||||
# export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/CodeSourcery/Sourcery G++ Lite/bin"
|
||||
#export TOOLCHAIN_BIN="/cygdrive/c/Users/MyName/MentorGraphics/Sourcery_CodeBench_Lite_for_ARM_EABI/bin"
|
||||
|
||||
# This is the location where I installed the ARM "GNU Tools for ARM Embedded Processors"
|
||||
@ -70,6 +70,10 @@ export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/CodeSourcery/Sourcery G++
|
||||
#export TOOLCHAIN_BIN="/usr/bin:/cygdrive/c/Program Files (x86)/Atollic/TrueSTUDIO for ARM Pro 2.3.0/ARMTools/bin"
|
||||
#export TOOLCHAIN_BIN="/usr/bin:/cygdrive/c/Program Files (x86)/Atollic/TrueSTUDIO for STMicroelectronics STM32 Lite 2.3.0/ARMTools/bin"
|
||||
|
||||
# This is the location where I installed the ARM "GNU Tools for ARM Embedded Processors"
|
||||
# You can this free toolchain here https://launchpad.net/gcc-arm-embedded
|
||||
export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/GNU Tools ARM Embedded/4.9 2015q2/bin"
|
||||
|
||||
# This is the Cygwin path to the location where I build the buildroot
|
||||
# toolchain.
|
||||
#export TOOLCHAIN_BIN="${WD}/../buildroot/build_arm_nofpu/staging_dir/bin"
|
||||
|
@ -1,7 +1,7 @@
|
||||
/****************************************************************************
|
||||
* configs/photon/scripts/ld.script
|
||||
*
|
||||
* Copyright (C) 2011-2012 Gregory Nutt. All rights reserved.
|
||||
* Copyright (C) 2017 Gregory Nutt. All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
@ -43,8 +43,8 @@
|
||||
|
||||
MEMORY
|
||||
{
|
||||
flash (rx) : ORIGIN = 0x08000000, LENGTH = 1024K
|
||||
sram (rwx) : ORIGIN = 0x20000000, LENGTH = 112K
|
||||
flash (rx) : ORIGIN = 0x08000000, LENGTH = 1024K
|
||||
sram (rwx) : ORIGIN = 0x20000000, LENGTH = 112K
|
||||
}
|
||||
|
||||
OUTPUT_ARCH(arm)
|
||||
|
@ -1,7 +1,7 @@
|
||||
/****************************************************************************
|
||||
* configs/photon/scripts/photon_dfu.ld
|
||||
*
|
||||
* Copyright (C) 2011-2012 Gregory Nutt. All rights reserved.
|
||||
* Copyright (C) 2017 Gregory Nutt. All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
@ -40,8 +40,8 @@
|
||||
|
||||
MEMORY
|
||||
{
|
||||
flash (rx) : ORIGIN = 0x08020000, LENGTH = 896K
|
||||
sram (rwx) : ORIGIN = 0x20000000, LENGTH = 112K
|
||||
flash (rx) : ORIGIN = 0x08020000, LENGTH = 896K
|
||||
sram (rwx) : ORIGIN = 0x20000000, LENGTH = 112K
|
||||
}
|
||||
|
||||
OUTPUT_ARCH(arm)
|
||||
|
@ -1,7 +1,7 @@
|
||||
############################################################################
|
||||
# configs/photon/src/Makefile
|
||||
#
|
||||
# Copyright (C) 2011-2013, 2015-2016 Gregory Nutt. All rights reserved.
|
||||
# Copyright (C) 2017 Gregory Nutt. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
|
@ -1,7 +1,7 @@
|
||||
/****************************************************************************
|
||||
* configs/photon/src/dfu_signature.c
|
||||
*
|
||||
* Copyright (C) 2011-2012, 2015-2016 Gregory Nutt. All rights reserved.
|
||||
* Copyright (C) 2017 Gregory Nutt. All rights reserved.
|
||||
* Author: Simon Piriou <spiriou31@gmail.com>
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
@ -40,28 +40,38 @@
|
||||
#include <stdint.h>
|
||||
|
||||
/****************************************************************************
|
||||
* Private Data
|
||||
* Private Types
|
||||
****************************************************************************/
|
||||
|
||||
__attribute__((packed)) struct dfu_signature
|
||||
{
|
||||
uint32_t linker_start_address;
|
||||
uint32_t linker_end_address;
|
||||
uint8_t reserved[4];
|
||||
uint16_t board_id;
|
||||
uint8_t firmware_type1;
|
||||
uint8_t firmware_type2;
|
||||
uint8_t reserved2[8];
|
||||
};
|
||||
|
||||
/****************************************************************************
|
||||
* Public Data
|
||||
****************************************************************************/
|
||||
|
||||
extern uint32_t _firmware_start;
|
||||
extern uint32_t _firmware_end;
|
||||
|
||||
__attribute__((packed)) struct dfu_signature {
|
||||
uint32_t linker_start_address;
|
||||
uint32_t linker_end_address;
|
||||
uint8_t reserved[4];
|
||||
uint16_t board_id;
|
||||
uint8_t firmware_type1;
|
||||
uint8_t firmware_type2;
|
||||
uint8_t reserved2[8];
|
||||
};
|
||||
/****************************************************************************
|
||||
* Private Data
|
||||
****************************************************************************/
|
||||
|
||||
__attribute__((externally_visible, section(".dfu_signature"))) \
|
||||
const struct dfu_signature dfu_sign = {
|
||||
(uint32_t)&_firmware_start, /* Flash image start address */
|
||||
(uint32_t)&_firmware_end, /* Flash image end address */
|
||||
{0, 0, 0, 0}, /* reserved */
|
||||
6, /* Current board is photon */
|
||||
4, 1, /* Firmware is "system-part1" */
|
||||
{0, 0, 0, 0, 0, 0, 0, 0} /* reserved */
|
||||
__attribute__((externally_visible, section(".dfu_signature")))
|
||||
const struct dfu_signature dfu_sign =
|
||||
{
|
||||
(uint32_t)&_firmware_start, /* Flash image start address */
|
||||
(uint32_t)&_firmware_end, /* Flash image end address */
|
||||
{0, 0, 0, 0}, /* reserved */
|
||||
6, /* Current board is photon */
|
||||
4, 1, /* Firmware is "system-part1" */
|
||||
{0, 0, 0, 0, 0, 0, 0, 0} /* reserved */
|
||||
};
|
||||
|
@ -1,7 +1,7 @@
|
||||
/****************************************************************************
|
||||
* configs/photon/src/photon.h
|
||||
*
|
||||
* Copyright (C) 2011-2012, 2015-2016 Gregory Nutt. All rights reserved.
|
||||
* Copyright (C) 2017 Gregory Nutt. All rights reserved.
|
||||
* Author: Simon Piriou <spiriou31@gmail.com>
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
@ -47,7 +47,6 @@
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
/* Configuration *************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Public Types
|
||||
|
@ -1,7 +1,7 @@
|
||||
/****************************************************************************
|
||||
* config/photon/src/stm32_appinit.c
|
||||
*
|
||||
* Copyright (C) 2012, 2014, 2016 Gregory Nutt. All rights reserved.
|
||||
* Copyright (C) 2017 Gregory Nutt. All rights reserved.
|
||||
* Author: Simon Piriou <spiriou31@gmail.com>
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
|
@ -1,7 +1,7 @@
|
||||
/************************************************************************************
|
||||
* configs/photon/src/stm32_boot.c
|
||||
*
|
||||
* Copyright (C) 2011-2012, 2015 Gregory Nutt. All rights reserved.
|
||||
* Copyright (C) 2017 Gregory Nutt. All rights reserved.
|
||||
* Author: Simon Piriou <spiriou31@gmail.com>
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -92,11 +92,9 @@
|
||||
|
||||
#ifdef NRF24L01_DEBUG
|
||||
# define werr(format, ...) _err(format, ##__VA_ARGS__)
|
||||
# define werr(format, ...) _err(format, ##__VA_ARGS__)
|
||||
# define winfo(format, ...) _info(format, ##__VA_ARGS__)
|
||||
#else
|
||||
# define werr(x...)
|
||||
# define werr(x...)
|
||||
# define winfo(x...)
|
||||
#endif
|
||||
|
||||
|
@ -57,6 +57,7 @@ function showusage {
|
||||
echo " -s Use C++ unsigned long size_t in new operator. Default unsigned int"
|
||||
echo " -a <appsdir> provides the relative path to the apps/ directory. Default ../apps"
|
||||
echo " -n <nxdir> provides the relative path to the NxWidgets/ directory. Default ../NxWidgets"
|
||||
echo " -d enables script debug output"
|
||||
echo " -h will show this help test and terminate"
|
||||
echo " <testlist-file> selects the list of configurations to test. No default"
|
||||
echo ""
|
||||
@ -80,6 +81,9 @@ while [ ! -z "$1" ]; do
|
||||
host=windows
|
||||
wenv=cygwin
|
||||
;;
|
||||
-d )
|
||||
set -x
|
||||
;;
|
||||
-u )
|
||||
host=windows
|
||||
wenv=ubuntu
|
||||
|
Loading…
Reference in New Issue
Block a user