aboutsummaryrefslogtreecommitdiff
path: root/cc3200/telnet
diff options
context:
space:
mode:
authordanicampora2015-02-22 17:31:26 +0100
committerdanicampora2015-02-22 17:50:50 +0100
commit33ddb566a7565b4fba4a68939d43bcdb5f132836 (patch)
treebd348fd647ca26de8e05b18e411bcf7323a09a8c /cc3200/telnet
parent5c047b97f2e41b51f8314f6ee06788b1d9246dbf (diff)
cc3200: Remove dependencies from FreeRTOS.
Use the simplelink wrappers instead. This is one step further towards having a single module for the cc3200 and the cc3100.
Diffstat (limited to 'cc3200/telnet')
-rw-r--r--cc3200/telnet/telnet.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/cc3200/telnet/telnet.c b/cc3200/telnet/telnet.c
index 6ed97cc0e..7d11df913 100644
--- a/cc3200/telnet/telnet.c
+++ b/cc3200/telnet/telnet.c
@@ -447,10 +447,8 @@ static void telnet_parse_input (uint8_t *str, int16_t *len) {
static bool telnet_send_with_retries (int16_t sd, const void *pBuf, int16_t len) {
int32_t retries = 0;
-#ifdef USE_FREERTOS
// abort sending if we happen to be within interrupt context
- if ((portNVIC_INT_CTRL_REG & portVECTACTIVE_MASK) == 0) {
-#endif
+ if ((HAL_NVIC_INT_CTRL_REG & HAL_VECTACTIVE_MASK) == 0) {
do {
_i16 result = sl_Send(sd, pBuf, len, 0);
if (result > 0) {
@@ -461,11 +459,10 @@ static bool telnet_send_with_retries (int16_t sd, const void *pBuf, int16_t len)
}
HAL_Delay (TELNET_WAIT_TIME_MS);
} while (++retries <= TELNET_TX_RETRIES_MAX);
-#ifdef USE_FREERTOS
- } else {
+ }
+ else {
// TODO: blink the BLD
}
-#endif
return false;
}