久久久久久久999_99精品久久精品一区二区爱城_成人欧美一区二区三区在线播放_国产精品日本一区二区不卡视频_国产午夜视频_欧美精品在线观看免费

 找回密碼
 立即注冊

QQ登錄

只需一步,快速開始

搜索
查看: 1168|回復: 2
打印 上一主題 下一主題
收起左側

#include "bsp.h" 這個的文件的內容是什么?可以提供一下嗎

[復制鏈接]
跳轉到指定樓層
樓主
ID:1063881 發表于 2023-2-22 15:42 | 只看該作者 回帖獎勵 |倒序瀏覽 |閱讀模式
謝謝大家
分享到:  QQ好友和群QQ好友和群 QQ空間QQ空間 騰訊微博騰訊微博 騰訊朋友騰訊朋友
收藏收藏 分享淘帖 頂 踩
回復

使用道具 舉報

沙發
ID:230500 發表于 2023-2-26 10:29 | 只看該作者
"bsp.h"  用雙引號的 說明是用戶自編的頭文件; 即使找遍全世界都不一定能找到;除非是個開源項目!
回復

使用道具 舉報

板凳
ID:155507 發表于 2023-2-26 15:52 | 只看該作者
是不是你想要的?

  1. #ifndef __BSP_H
  2. #define __BSP_H

  3. #include <stdbool.h>
  4. #include "bspconfig.h"
  5. #if defined( BSP_STK )
  6. #include "em_usart.h"
  7. #endif

  8. #ifdef __cplusplus
  9. extern "C" {
  10. #endif

  11. /** @addtogroup BSPCOMMON API common for all kits */ /** @{ */

  12. #define BSP_STATUS_OK                 0     /**< BSP API return code, no errors. */
  13. #define BSP_STATUS_ILLEGAL_PARAM      (-1)  /**< BSP API return code, illegal input parameter. */
  14. #define BSP_STATUS_NOT_IMPLEMENTED    (-2)  /**< BSP API return code, function not implemented (dummy). */
  15. #define BSP_STATUS_UNSUPPORTED_MODE   (-3)  /**< BSP API return code, unsupported BSP mode. */

  16. /* Initialization flag bitmasks for BSP_Init(). */
  17. #define BSP_INIT_DK_SPI     0x01  /**< Mode flag for @ref BSP_Init(), init DK in SPI mode (DK3x50 only). */
  18. #define BSP_INIT_DK_EBI     0x02  /**< Mode flag for @ref BSP_Init(), init DK in EBI mode (DK3x50 only). */
  19. #define BSP_INIT_BCC        0x04  /**< Mode flag for @ref BSP_Init(), init board controller communication. */

  20. /** @} */

  21. #if defined( BSP_DK )
  22. /** @addtogroup BSP_DK API for DK's */ /** @{ */

  23. /** Display Control */
  24. typedef enum
  25. {
  26.   BSP_Display_EBI,          /**< SSD2119 TFT controller driven by EFM32 EBI interface */
  27.   BSP_Display_SPI,          /**< SSD2119 TFT controller driven by EFM32 SPI interface */
  28.   BSP_Display_BC,           /**< SSD2119 TFT controller driven by board controller (AEM) */
  29.   BSP_Display_PowerEnable,  /**< SSD2119 Enable power  */
  30.   BSP_Display_PowerDisable, /**< SSD2119 Disable power  */
  31.   BSP_Display_ResetAssert,  /**< Hold SSD2119 in reset */
  32.   BSP_Display_ResetRelease, /**< Release SSD2119 in reset */
  33.   BSP_Display_Mode8080,     /**< Configure SSD2119 for 8080 mode of operation  */
  34.   BSP_Display_ModeGeneric,  /**< Configure SSD2119 for Generic+SPI mode of operation */
  35. } BSP_Display_TypeDef;

  36. /** Bus control access mode */
  37. typedef enum
  38. {
  39.   BSP_BusControl_Undefined=0, /**< Board control mode unknown (not set) */
  40.   BSP_BusControl_OFF,         /**< Board control disable */
  41.   BSP_BusControl_DIRECT,      /**< GPIO direct drive (n/a) */
  42.   BSP_BusControl_SPI,         /**< Configure Board controller for SPI mode */
  43.   BSP_BusControl_EBI,         /**< Configure Board controller for EBI mode */
  44. } BSP_BusControl_TypeDef;

  45. #if defined( BSP_DK_3200 )                        /* Gxxx_DK */

  46. /** Peripherals control structure for Gxxx_DK's. */
  47. typedef enum
  48. {
  49.   BSP_ACCEL          = BC_PERCTRL_ACCEL,          /**< Accelerometer */
  50.   BSP_AMBIENT        = BC_PERCTRL_AMBIENT,        /**< Light sensor */
  51.   BSP_POTMETER       = BC_PERCTRL_POTMETER,       /**< Potentiometer */
  52.   BSP_RS232A         = BC_PERCTRL_RS232A,         /**< Serial port A */
  53.   BSP_RS232B         = BC_PERCTRL_RS232B,         /**< Serial port B */
  54.   BSP_SPI            = BC_PERCTRL_SPI,            /**< SPI interface */
  55.   BSP_I2C            = BC_PERCTRL_I2C,            /**< I2C interface */
  56.   BSP_IRDA           = BC_PERCTRL_IRDA,           /**< IrDA interface */
  57.   BSP_ANALOG_SE      = BC_PERCTRL_ANALOG_SE,      /**< Single ended analog input */
  58.   BSP_ANALOG_DIFF    = BC_PERCTRL_ANALOG_DIFF,    /**< Differential analog input */
  59.   BSP_AUDIO_OUT      = BC_PERCTRL_AUDIO_OUT,      /**< Audio Out */
  60.   BSP_AUDIO_IN       = BC_PERCTRL_AUDIO_IN,       /**< Audio In */
  61.   BSP_ACCEL_GSEL     = BC_PERCTRL_ACCEL_GSEL,     /**< Accelerometer range select */
  62.   BSP_ACCEL_SELFTEST = BC_PERCTRL_ACCEL_SELFTEST, /**< Accelerometer selftest mode */
  63.   BSP_RS232_SHUTDOWN = BC_PERCTRL_RS232_SHUTDOWN, /**< Disable RS232 */
  64.   BSP_IRDA_SHUTDOWN  = BC_PERCTRL_IRDA_SHUTDOWN   /**< Disable IrDA */
  65. #ifdef DOXY_DOC_ONLY
  66. } BSP_Peripheral_Typedef;                         /* Hack for doxygen doc ! */
  67. #else
  68. } BSP_Peripheral_TypeDef;
  69. #endif
  70. #endif /* BSP_DK_3200 */

  71. #if defined( BSP_DK_3201 )                        /* DK3x50 DK's */

  72. /** Peripherals control structure for DK3x50 DK's. */
  73. typedef enum
  74. {
  75.   BSP_RS232_SHUTDOWN, /**< Disable RS232 */
  76.   BSP_RS232_UART,     /**< UART control of RS232 */
  77.   BSP_RS232_LEUART,   /**< LEUART control of RS232 */
  78.   BSP_I2C,            /**< I2C interface */
  79.   BSP_ETH,            /**< Ethernet */
  80.   BSP_I2S,            /**< Audio I2S */
  81.   BSP_TRACE,          /**< ETM Trace */
  82.   BSP_TOUCH,          /**< Display touch interface */
  83.   BSP_AUDIO_IN,       /**< Audio In */
  84.   BSP_AUDIO_OUT,      /**< Audio Out */
  85.   BSP_ANALOG_DIFF,    /**< Differential analog input */
  86.   BSP_ANALOG_SE,      /**< Single ended analog input */
  87.   BSP_MICROSD,        /**< MicroSD SPI interace */
  88.   BSP_TFT,            /**< SSD2119 TFT controller */
  89. } BSP_Peripheral_TypeDef;
  90. #endif  /* BSP_DK_3201 */

  91. /** @} */
  92. #endif  /* BSP_DK */

  93. /************************** The BSP API *******************************/

  94. int             BSP_Disable                 ( void );
  95. int             BSP_Init                    ( uint32_t flags );
  96. int             BSP_LedClear                ( int ledNo );
  97. int             BSP_LedGet                  ( int ledNo );
  98. int             BSP_LedSet                  ( int ledNo );
  99. uint32_t        BSP_LedsGet                 ( void );
  100. int             BSP_LedsInit                ( void );
  101. int             BSP_LedsSet                 ( uint32_t leds );
  102. int             BSP_LedToggle               ( int ledNo );


  103. #if defined( BSP_DK )
  104. BSP_BusControl_TypeDef BSP_BusControlModeGet( void );
  105. int             BSP_BusControlModeSet       ( BSP_BusControl_TypeDef mode );
  106. uint32_t        BSP_DipSwitchGet            ( void );
  107. int             BSP_DisplayControl          ( BSP_Display_TypeDef option );
  108. int             BSP_EbiExtendedAddressRange ( bool enable );
  109. int             BSP_EnergyModeSet           ( uint16_t energyMode );
  110. int             BSP_InterruptDisable        ( uint16_t flags );
  111. int             BSP_InterruptEnable         ( uint16_t flags );
  112. int             BSP_InterruptFlagsClear     ( uint16_t flags );
  113. uint16_t        BSP_InterruptFlagsGet       ( void );
  114. uint16_t        BSP_JoystickGet             ( void );
  115. int             BSP_McuBoard_DeInit         ( void );
  116. int             BSP_McuBoard_Init           ( void );
  117. int             BSP_McuBoard_UsbStatusLedEnable ( bool enable );
  118. bool            BSP_McuBoard_UsbVbusOcFlagGet   ( void );
  119. int             BSP_McuBoard_UsbVbusPowerEnable ( bool enable );
  120. int             BSP_PeripheralAccess        ( BSP_Peripheral_TypeDef perf, bool enable );
  121. uint16_t        BSP_PushButtonsGet          ( void );
  122. uint16_t        BSP_RegisterRead            ( volatile uint16_t *addr );
  123. int             BSP_RegisterWrite           ( volatile uint16_t *addr, uint16_t data );
  124. #endif

  125. #if defined( BSP_STK )
  126. int             BSP_BccDeInit               ( void );
  127. int             BSP_BccInit                 ( void );
  128. bool            BSP_BccPacketReceive        ( BCP_Packet *pkt );
  129. int             BSP_BccPacketSend           ( BCP_Packet *pkt );
  130. void            BSP_BccPinsEnable           ( bool enable );
  131. float           BSP_CurrentGet              ( void );
  132. int             BSP_EbiDeInit               ( void );
  133. int             BSP_EbiInit                 ( void );
  134. float           BSP_VoltageGet              ( void );
  135. #endif

  136. #ifdef __cplusplus
  137. }
  138. #endif

  139. #endif  /* __BSP_H */
復制代碼
回復

使用道具 舉報

您需要登錄后才可以回帖 登錄 | 立即注冊

本版積分規則

手機版|小黑屋|51黑電子論壇 |51黑電子論壇6群 QQ 管理員QQ:125739409;技術交流QQ群281945664

Powered by 單片機教程網

快速回復 返回頂部 返回列表
主站蜘蛛池模板: 亚洲免费人成在线视频观看 | 99在线免费观看视频 | 免费国产黄网站在线观看视频 | 91麻豆精品国产91久久久久久 | 91精品国产综合久久精品 | 国产激情第一页 | 久久久久久黄 | 欧美成年人视频在线观看 | 日韩视频在线观看一区二区 | 黄色大片网 | 国产亚洲精品一区二区三区 | 911网站大全在线观看 | 求个av网址 | 在线观看日本高清二区 | 羞羞涩涩在线观看 | 国产亚洲精品精品国产亚洲综合 | 毛片在线看片 | 亚洲精品电影网在线观看 | 激情一区二区三区 | av黄色在线 | 亚洲欧美一区二区三区国产精品 | 黑人巨大精品欧美一区二区免费 | 91精品国产91久久久久久最新 | 999久久精品| 国产精品免费观看 | 伊人超碰| 奇米影视在线 | 成人免费大片黄在线播放 | 国产一级片精品 | 中国黄色在线视频 | 在线一区 | 成人一区在线观看 | 99精品网 | 黄 色 毛片免费 | 天堂一区 | 欧美精品在线播放 | 欧美日韩成人一区二区 | 黄色一级免费观看 | 久久久妇女国产精品影视 | 国产精品久久久久久久粉嫩 | 国产成人精品午夜 |