mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-21 19:51:50 +00:00
CC3220: Exception handling, NWP init
Also make CC3200 use newer ARM compiler, generates slightly smaller code. PUBLISHED_FROM=a0be49d7ea864a95886f7110887a59f6f11802d7
This commit is contained in:
1 parent
6fe9cae62a
commit
0a93e301c9
5 files changed
+26
-28
No files matched your search
-22
@@ -12505,28 +12505,6 @@ time_t HOSTtime() {
|
||||
|
||||
#endif /* __TI_COMPILER_VERSION__ */
|
||||
|
||||
#ifndef __TI_COMPILER_VERSION__
|
||||
int _gettimeofday_r(struct _reent *r, struct timeval *tp, void *tz) {
|
||||
#else
|
||||
int gettimeofday(struct timeval *tp, void *tz) {
|
||||
#endif
|
||||
unsigned long sec;
|
||||
unsigned short msec;
|
||||
MAP_PRCMRTCGet(&sec, &msec);
|
||||
tp->tv_sec = sec;
|
||||
tp->tv_usec = ((unsigned long) msec) * 1000;
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifndef __TI_COMPILER_VERSION__
|
||||
int settimeofday(const struct timeval *tv, const struct timezone *tz) {
|
||||
#else
|
||||
int settimeofday(const struct timeval *tv, const void *tz) {
|
||||
#endif
|
||||
MAP_PRCMRTCSet(tv->tv_sec, tv->tv_usec / 1000);
|
||||
return 0;
|
||||
}
|
||||
|
||||
void fprint_str(FILE *fp, const char *str) {
|
||||
while (*str != '\0') {
|
||||
if (*str == '\n') MAP_UARTCharPut(CONSOLE_UART, '\r');
|
||||
|
||||
Reference in new issue
Block a user