Skip to content
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

Restructure directory layout to better match emerging structure #2266

Closed
wants to merge 18 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
4cf123d
[restructure] Moved target code in hal to top-level target folder
geky Jul 27, 2016
027f4c1
[restructure] Removed metadata files in hal
geky Jul 27, 2016
38fcc29
[restructure] Moved hal to drivers+platform
geky Jul 27, 2016
977bfc1
[restructure] Moved central mbed header to top-level directory
geky Jul 27, 2016
50e0486
[restructure] Moved stdio-config into platform
geky Jul 27, 2016
c11b96a
[restructure] Moved libraries to features/unsupported
geky Jul 27, 2016
700a7c9
[restructure] Fixed include bug in features/unsupported/net/lwip
geky Jul 27, 2016
8d0833a
[restructure] Updated tools to point to restructured modules
geky Jul 27, 2016
00e1bb6
[restructure] Fixed issues with misplaced mbed.h file in build scripts
geky Jul 27, 2016
63aca8f
[restructure] Moved hal to top-level directory
geky Jul 27, 2016
58dae89
[restructure] Moved stdio-config into platform namespace
geky Jul 27, 2016
d8f31ce
[restructure] Moved unused metadata files out of top-level directory
geky Jul 27, 2016
bc61170
[restructure] Worked around dropped namespaces in build_travis
geky Jul 27, 2016
0668287
[restructure] Fixed relative path issue related to mbed.h
geky Jul 27, 2016
cc34a65
Prefix drivers.h and platform.h with mbed
c1728p9 Jul 27, 2016
2df8089
add templates for issues and pull requests. Moved from previous repo …
sg- Jul 27, 2016
913ced7
[restructure] Fixed small include error due to indirect dependency
geky Jul 28, 2016
0541e19
[restructure] Moved tools related metadata into tools directory
geky Aug 4, 2016
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
File renamed without changes.
9 changes: 9 additions & 0 deletions .github/issue_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
### Description
- Type: <Bug | Enhancement | Question>
- Related Issue: <#abc>
- Priority: <Blocker | Major | Minor>

---------------------------------------------------------------
## Details

<About the issue here>
15 changes: 15 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
## Status
**<READY | IN DEVELOPMENT | HOLD>**

## Migrations
<YES | NO>
Steps:

## Description
<About the change>


## Todos
- [ ] Tests
- [ ] Reviews
- [ ] Documentation
3 changes: 0 additions & 3 deletions MANIFEST.in

This file was deleted.

3 changes: 1 addition & 2 deletions hal/common/AnalogIn.cpp → drivers/AnalogIn.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@
* limitations under the License.
*/

#include "mbed.h"

#include "AnalogIn.h"
#include "SingletonPtr.h"

#if DEVICE_ANALOGIN

Expand Down
2 changes: 1 addition & 1 deletion hal/api/AnalogIn.h → drivers/AnalogIn.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#ifndef MBED_ANALOGIN_H
#define MBED_ANALOGIN_H

#include "platform.h"
#include "PlatformMutex.h"

#if DEVICE_ANALOGIN

Expand Down
2 changes: 1 addition & 1 deletion hal/api/AnalogOut.h → drivers/AnalogOut.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#ifndef MBED_ANALOGOUT_H
#define MBED_ANALOGOUT_H

#include "platform.h"
#include "PlatformMutex.h"

#if DEVICE_ANALOGOUT

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion hal/api/BusIn.h → drivers/BusIn.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#ifndef MBED_BUSIN_H
#define MBED_BUSIN_H

#include "platform.h"
#include "PlatformMutex.h"
#include "DigitalIn.h"
#include "PlatformMutex.h"

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion hal/api/CAN.h → drivers/CAN.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#ifndef MBED_CAN_H
#define MBED_CAN_H

#include "platform.h"
#include "PlatformMutex.h"

#if DEVICE_CAN

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion hal/api/DigitalIn.h → drivers/DigitalIn.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#ifndef MBED_DIGITALIN_H
#define MBED_DIGITALIN_H

#include "platform.h"
#include "PlatformMutex.h"

#include "gpio_api.h"
#include "critical.h"
Expand Down
2 changes: 1 addition & 1 deletion hal/api/DigitalInOut.h → drivers/DigitalInOut.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#ifndef MBED_DIGITALINOUT_H
#define MBED_DIGITALINOUT_H

#include "platform.h"
#include "PlatformMutex.h"

#include "gpio_api.h"
#include "critical.h"
Expand Down
2 changes: 1 addition & 1 deletion hal/api/DigitalOut.h → drivers/DigitalOut.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#ifndef MBED_DIGITALOUT_H
#define MBED_DIGITALOUT_H

#include "platform.h"
#include "PlatformMutex.h"
#include "gpio_api.h"
#include "critical.h"

Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion hal/api/Ethernet.h → drivers/Ethernet.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#ifndef MBED_ETHERNET_H
#define MBED_ETHERNET_H

#include "platform.h"
#include "PlatformMutex.h"

#if DEVICE_ETHERNET

Expand Down
File renamed without changes.
4 changes: 1 addition & 3 deletions hal/api/FileBase.h → drivers/FileBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,7 @@ typedef long off_t;
# include <sys/syslimits.h>
#endif

#include "platform.h"
#include "SingletonPtr.h"
#include "PlatformMutex.h"
#include "mbed_platform.h"

namespace mbed {

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion hal/api/FilePath.h → drivers/FilePath.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#ifndef MBED_FILEPATH_H
#define MBED_FILEPATH_H

#include "platform.h"
#include "PlatformMutex.h"

#include "FileSystemLike.h"
#include "FileLike.h"
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion hal/api/FileSystemLike.h → drivers/FileSystemLike.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#ifndef MBED_FILESYSTEMLIKE_H
#define MBED_FILESYSTEMLIKE_H

#include "platform.h"
#include "PlatformMutex.h"

#include "FileBase.h"
#include "FileHandle.h"
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion hal/api/I2C.h → drivers/I2C.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#ifndef MBED_I2C_H
#define MBED_I2C_H

#include "platform.h"
#include "PlatformMutex.h"

#if DEVICE_I2C

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion hal/api/I2CSlave.h → drivers/I2CSlave.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#ifndef MBED_I2C_SLAVE_H
#define MBED_I2C_SLAVE_H

#include "platform.h"
#include "PlatformMutex.h"

#if DEVICE_I2CSLAVE

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion hal/api/InterruptIn.h → drivers/InterruptIn.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#ifndef MBED_INTERRUPTIN_H
#define MBED_INTERRUPTIN_H

#include "platform.h"
#include "PlatformMutex.h"

#if DEVICE_INTERRUPTIN

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion hal/api/LocalFileSystem.h → drivers/LocalFileSystem.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#ifndef MBED_LOCALFILESYSTEM_H
#define MBED_LOCALFILESYSTEM_H

#include "platform.h"
#include "PlatformMutex.h"

#if DEVICE_LOCALFILESYSTEM

Expand Down
2 changes: 1 addition & 1 deletion hal/api/LowPowerTicker.h → drivers/LowPowerTicker.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#ifndef MBED_LOWPOWERTICKER_H
#define MBED_LOWPOWERTICKER_H

#include "platform.h"
#include "PlatformMutex.h"
#include "Ticker.h"

#if DEVICE_LOWPOWERTIMER
Expand Down
2 changes: 1 addition & 1 deletion hal/api/LowPowerTimeout.h → drivers/LowPowerTimeout.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#ifndef MBED_LOWPOWERTIMEOUT_H
#define MBED_LOWPOWERTIMEOUT_H

#include "platform.h"
#include "PlatformMutex.h"

#if DEVICE_LOWPOWERTIMER

Expand Down
2 changes: 1 addition & 1 deletion hal/api/LowPowerTimer.h → drivers/LowPowerTimer.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#ifndef MBED_LOWPOWERTIMER_H
#define MBED_LOWPOWERTIMER_H

#include "platform.h"
#include "PlatformMutex.h"
#include "Timer.h"

#if DEVICE_LOWPOWERTIMER
Expand Down
2 changes: 1 addition & 1 deletion hal/api/PortIn.h → drivers/PortIn.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#ifndef MBED_PORTIN_H
#define MBED_PORTIN_H

#include "platform.h"
#include "PlatformMutex.h"

#if DEVICE_PORTIN

Expand Down
2 changes: 1 addition & 1 deletion hal/api/PortInOut.h → drivers/PortInOut.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#ifndef MBED_PORTINOUT_H
#define MBED_PORTINOUT_H

#include "platform.h"
#include "PlatformMutex.h"

#if DEVICE_PORTINOUT

Expand Down
2 changes: 1 addition & 1 deletion hal/api/PortOut.h → drivers/PortOut.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#ifndef MBED_PORTOUT_H
#define MBED_PORTOUT_H

#include "platform.h"
#include "PlatformMutex.h"

#if DEVICE_PORTOUT

Expand Down
2 changes: 1 addition & 1 deletion hal/api/PwmOut.h → drivers/PwmOut.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#ifndef MBED_PWMOUT_H
#define MBED_PWMOUT_H

#include "platform.h"
#include "PlatformMutex.h"

#if DEVICE_PWMOUT
#include "pwmout_api.h"
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion hal/api/RawSerial.h → drivers/RawSerial.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#ifndef MBED_RAW_SERIAL_H
#define MBED_RAW_SERIAL_H

#include "platform.h"
#include "PlatformMutex.h"

#if DEVICE_SERIAL

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion hal/api/SPI.h → drivers/SPI.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#ifndef MBED_SPI_H
#define MBED_SPI_H

#include "platform.h"
#include "PlatformMutex.h"

#if DEVICE_SPI

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion hal/api/SPISlave.h → drivers/SPISlave.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#ifndef MBED_SPISLAVE_H
#define MBED_SPISLAVE_H

#include "platform.h"
#include "PlatformMutex.h"

#if DEVICE_SPISLAVE

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion hal/api/Serial.h → drivers/Serial.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#ifndef MBED_SERIAL_H
#define MBED_SERIAL_H

#include "platform.h"
#include "PlatformMutex.h"

#if DEVICE_SERIAL

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion hal/api/SerialBase.h → drivers/SerialBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#ifndef MBED_SERIALBASE_H
#define MBED_SERIALBASE_H

#include "platform.h"
#include "PlatformMutex.h"

#if DEVICE_SERIAL

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion hal/api/Stream.h → drivers/Stream.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#ifndef MBED_STREAM_H
#define MBED_STREAM_H

#include "platform.h"
#include "PlatformMutex.h"
#include "FileLike.h"
#include <cstdarg>

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion hal/api/Timer.h → drivers/Timer.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#ifndef MBED_TIMER_H
#define MBED_TIMER_H

#include "platform.h"
#include "PlatformMutex.h"
#include "ticker_api.h"

namespace mbed {
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion hal/api/Transaction.h → drivers/Transaction.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#ifndef MBED_TRANSACTION_H
#define MBED_TRANSACTION_H

#include "platform.h"
#include "PlatformMutex.h"
#include "FunctionPointer.h"

namespace mbed {
Expand Down
File renamed without changes.
31 changes: 3 additions & 28 deletions hal/api/mbed.h → drivers/mbed_drivers.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,30 +13,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef MBED_H
#define MBED_H
#ifndef MBED_DRIVERS_H
#define MBED_DRIVERS_H

#define MBED_LIBRARY_VERSION 122

#if MBED_CONF_RTOS_PRESENT
#include "rtos/rtos.h"
#endif

#if MBED_CONF_NSAPI_PRESENT
#include "network-socket/nsapi.h"
#endif

#include "toolchain.h"
#include "platform.h"

// Useful C libraries
#include <math.h>
#include <time.h>

// mbed Debug libraries
#include "mbed_error.h"
#include "mbed_interface.h"
#include "mbed_assert.h"

// mbed Peripheral components
#include "DigitalIn.h"
Expand Down Expand Up @@ -73,11 +52,7 @@
#include "sleep_api.h"
#include "rtc_time.h"

// mbed Non-hardware components
#include "Callback.h"
#include "FunctionPointer.h"

using namespace mbed;
using namespace std;


#endif
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.
File renamed without changes.
Loading