diff options
author | Ming Wei | 2015-11-16 14:12:33 -0600 |
---|---|---|
committer | Ming Wei | 2015-11-16 14:12:33 -0600 |
commit | 884adf7ad5662b30f011bfcbd28d40725b72ef43 (patch) | |
tree | c7658c66268cdc0af150e4931d4dea5aef3d641c | |
parent | 0f2543690063531aab9c785b5a5472631464a8b2 (diff) | |
download | mcsdk-platform-884adf7ad5662b30f011bfcbd28d40725b72ef43.tar.gz mcsdk-platform-884adf7ad5662b30f011bfcbd28d40725b72ef43.tar.xz mcsdk-platform-884adf7ad5662b30f011bfcbd28d40725b72ef43.zip |
mcsdk-platform:
add include path for YOCTO build
update the platform.h
Signed-off-by: Ming Wei <mwei@ti.com>
-rw-r--r-- | .gitignore | 17 | ||||
-rw-r--r-- | evmk2g/makefile | 2 | ||||
-rwxr-xr-x | platform.h | 35 |
3 files changed, 35 insertions, 19 deletions
diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 3213653..0000000 --- a/.gitignore +++ /dev/null | |||
@@ -1,17 +0,0 @@ | |||
1 | *.obj | ||
2 | *.out | ||
3 | *.map | ||
4 | *.lkf | ||
5 | *.paf2 | ||
6 | *.lib | ||
7 | *.log | ||
8 | *.bak | ||
9 | *.CDX | ||
10 | *.DBF | ||
11 | *.FPT | ||
12 | *.sbl | ||
13 | *.pp | ||
14 | html/* | ||
15 | */Debug/* | ||
16 | .git | ||
17 | .settings \ No newline at end of file | ||
diff --git a/evmk2g/makefile b/evmk2g/makefile index 2224c49..b1727e5 100644 --- a/evmk2g/makefile +++ b/evmk2g/makefile | |||
@@ -14,7 +14,7 @@ | |||
14 | export LIBDIR ?= platform_lib/lib | 14 | export LIBDIR ?= platform_lib/lib |
15 | 15 | ||
16 | # INCLUDE Directory for platform library | 16 | # INCLUDE Directory for platform library |
17 | export LIB_INCDIR := platform_lib/include;../../..;../;../../csl;$(XDC_INSTALL_PATH)/packages;$(PDK_INSTALL_PATH)/.;$(C6X_GEN_INSTALL_PATH)/include;$(ROOTDIR) | 17 | export LIB_INCDIR := platform_lib/include;../../..;../;../../csl;$(XDC_INSTALL_PATH)/packages;$(PDK_INSTALL_PATH)/.;$(C6X_GEN_INSTALL_PATH)/include;$(ROOTDIR);$(PDK_INSTALL_PATH)/ti/csl; |
18 | 18 | ||
19 | # Common Macros used in make | 19 | # Common Macros used in make |
20 | 20 | ||
@@ -665,7 +665,18 @@ typedef struct | |||
665 | uint8_t write_mode; | 665 | uint8_t write_mode; |
666 | } PLATFORM_QSPI_Params; | 666 | } PLATFORM_QSPI_Params; |
667 | 667 | ||
668 | #endif | 668 | /** |
669 | * @brief Define how platform_read should behave. | ||
670 | * These write types can be set in the init structure | ||
671 | */ | ||
672 | typedef enum { | ||
673 | PLATFORM_READ_UART, | ||
674 | /** <Read from the UART */ | ||
675 | PLATFORM_READ_SCANF | ||
676 | /** <Read from scanf -- CCS console */ | ||
677 | } READ_info; | ||
678 | |||
679 | #endif /* #ifdef DEVICE_K2G */ | ||
669 | 680 | ||
670 | /** | 681 | /** |
671 | * @brief Opens a device for use | 682 | * @brief Opens a device for use |
@@ -996,6 +1007,28 @@ Platform_STATUS platform_uart_write(uint8_t chr); | |||
996 | void platform_write(const char *fmt, ...); | 1007 | void platform_write(const char *fmt, ...); |
997 | WRITE_info platform_write_configure (WRITE_info write_type); | 1008 | WRITE_info platform_write_configure (WRITE_info write_type); |
998 | 1009 | ||
1010 | /** | ||
1011 | * \brief Reads input from scanf or UART or both | ||
1012 | * | ||
1013 | * This function uses the same configuration as platform_write which is | ||
1014 | * set using platform_write_configure() | ||
1015 | * | ||
1016 | * \param data [OUT] Buffer to store the user input | ||
1017 | * \param length [IN] Number of bytes to read | ||
1018 | * | ||
1019 | * \return - Platform_EOK on Success or error code | ||
1020 | */ | ||
1021 | Platform_STATUS platform_read(uint8_t *data, uint16_t length); | ||
1022 | |||
1023 | /** | ||
1024 | * \brief Connfigures the input source for platform_read | ||
1025 | * | ||
1026 | * \param rdype [IN] Input source for read | ||
1027 | * | ||
1028 | * \return - Input source for read before applying new configuration | ||
1029 | */ | ||
1030 | READ_info platform_read_configure (READ_info rdype); | ||
1031 | |||
999 | /*@}*/ /* defgroup */ | 1032 | /*@}*/ /* defgroup */ |
1000 | 1033 | ||
1001 | /** | 1034 | /** |