Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: common/platform.h
- Revision:
- 5:0728bde67bdb
- Parent:
- 1:63dd03580de4
- Child:
- 9:dc77fcfa7eba
--- a/common/platform.h Tue Jun 04 10:09:11 2019 +0000
+++ b/common/platform.h Wed Jun 05 05:39:15 2019 +0000
@@ -1,8 +1,8 @@
#ifndef __PLATFORM_H__
#define __PLATFORM_H__
-#include "adi_sense_api.h"
-#include "adi_sense_1000/adi_sense_1000_api.h"
+#include "admw_api.h"
+#include "admw1001/admw1001_api.h"
#if defined (__MBED__)
@@ -14,8 +14,7 @@
# define PLATFORM_SPI_SCK SPI_SCK
# define PLATFORM_SPI_CS D9
# define PLATFORM_GPIO_RESET D6
-# define PLATFORM_GPIO_ERROR D2
-# define PLATFORM_GPIO_ALERT D3
+# define PLATFORM_GPIO_ALERT_ERROR D3
# define PLATFORM_GPIO_DATAREADY D4
# define PLATFORM_LOG_TX D1
# define PLATFORM_LOG_RX D0
@@ -25,8 +24,7 @@
# define PLATFORM_SPI_SCK SPI0_SCLK
# define PLATFORM_SPI_CS D10
# define PLATFORM_GPIO_RESET D6
-# define PLATFORM_GPIO_ERROR D3
-# define PLATFORM_GPIO_ALERT D4
+# define PLATFORM_GPIO_ALERT_ERROR D3
# define PLATFORM_GPIO_DATAREADY D5
# define PLATFORM_LOG_TX D0
# define PLATFORM_LOG_RX D1
@@ -36,7 +34,7 @@
# define PLATFORM_CONNECTION_INFO \
{ \
- .type = ADI_SENSE_CONNECTION_TYPE_SPI, \
+ .type = ADMW_CONNECTION_TYPE_SPI, \
.spi = { \
.mosiPin = PLATFORM_SPI_MOSI, \
.misoPin = PLATFORM_SPI_MISO, \
@@ -46,8 +44,7 @@
}, \
.gpio = { \
.resetPin = PLATFORM_GPIO_RESET, \
- .errorPin = PLATFORM_GPIO_ERROR, \
- .alertPin = PLATFORM_GPIO_ALERT, \
+ .alertErrorPin = PLATFORM_GPIO_ALERT_ERROR, \
.datareadyPin = PLATFORM_GPIO_DATAREADY,\
}, \
.log = { \