mbed.h 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. /* mbed Microcontroller Library
  2. * Copyright (c) 2006-2013 ARM Limited
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. #ifndef MBED_H
  17. #define MBED_H
  18. #include "platform/mbed_version.h"
  19. #if MBED_CONF_RTOS_PRESENT
  20. #include "rtos/rtos.h"
  21. #endif
  22. #if MBED_CONF_NSAPI_PRESENT
  23. #include "netsocket/nsapi.h"
  24. #include "netsocket/nsapi_ppp.h"
  25. #endif
  26. #if MBED_CONF_EVENTS_PRESENT
  27. #include "events/mbed_events.h"
  28. #endif
  29. #if MBED_CONF_FILESYSTEM_PRESENT
  30. #include "filesystem/mbed_filesystem.h"
  31. #endif
  32. #include "platform/mbed_toolchain.h"
  33. #include "platform/platform.h"
  34. #include "platform/mbed_application.h"
  35. // Useful C libraries
  36. #include <math.h>
  37. #include <time.h>
  38. // mbed Debug libraries
  39. #include "platform/mbed_error.h"
  40. #include "platform/mbed_interface.h"
  41. #include "platform/mbed_assert.h"
  42. #include "platform/mbed_debug.h"
  43. // mbed Peripheral components
  44. #include "drivers/DigitalIn.h"
  45. #include "drivers/DigitalOut.h"
  46. #include "drivers/DigitalInOut.h"
  47. #include "drivers/BusIn.h"
  48. #include "drivers/BusOut.h"
  49. #include "drivers/BusInOut.h"
  50. #include "drivers/PortIn.h"
  51. #include "drivers/PortInOut.h"
  52. #include "drivers/PortOut.h"
  53. #include "drivers/AnalogIn.h"
  54. #include "drivers/AnalogOut.h"
  55. #include "drivers/PwmOut.h"
  56. #include "drivers/Serial.h"
  57. #include "drivers/SPI.h"
  58. #include "drivers/SPISlave.h"
  59. #include "drivers/I2C.h"
  60. #include "drivers/I2CSlave.h"
  61. #include "drivers/Ethernet.h"
  62. #include "drivers/CAN.h"
  63. #include "drivers/RawSerial.h"
  64. #include "drivers/UARTSerial.h"
  65. #include "drivers/FlashIAP.h"
  66. #include "drivers/MbedCRC.h"
  67. // mbed Internal components
  68. #include "drivers/Timer.h"
  69. #include "drivers/Ticker.h"
  70. #include "drivers/Timeout.h"
  71. #include "drivers/LowPowerTimeout.h"
  72. #include "drivers/LowPowerTicker.h"
  73. #include "drivers/LowPowerTimer.h"
  74. #include "platform/LocalFileSystem.h"
  75. #include "drivers/InterruptIn.h"
  76. #include "platform/mbed_wait_api.h"
  77. #include "hal/sleep_api.h"
  78. #include "platform/mbed_power_mgmt.h"
  79. #include "platform/mbed_rtc_time.h"
  80. #include "platform/mbed_poll.h"
  81. #include "platform/ATCmdParser.h"
  82. #include "platform/FileSystemHandle.h"
  83. #include "platform/FileHandle.h"
  84. #include "platform/DirHandle.h"
  85. #include "platform/CriticalSectionLock.h"
  86. #include "platform/DeepSleepLock.h"
  87. #include "platform/mbed_stats.h"
  88. // mbed Non-hardware components
  89. #include "platform/Callback.h"
  90. #include "platform/FunctionPointer.h"
  91. #include "platform/ScopedLock.h"
  92. using namespace mbed;
  93. using namespace std;
  94. #endif