mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-25 20:28:27 +00:00
Make tests work on public repo as well
PUBLISHED_FROM=78acb18d597b6f47f31da13087fa6685f21ce445
This commit is contained in:
1 parent
3eb4eb8074
commit
7bf5144e62
145 files changed
+30660
-16
No files matched your search
@@ -0,0 +1,32 @@
|
||||
/*
|
||||
* Copyright (c) 2015 Cesanta Software Limited
|
||||
* All rights reserved
|
||||
*
|
||||
*
|
||||
* Stub template.
|
||||
*/
|
||||
|
||||
#include <inttypes.h>
|
||||
#include <string.h>
|
||||
#include "slip.h"
|
||||
|
||||
/* Define the args vector and put it into the ".params" section. */
|
||||
uint32_t params[3] __attribute__((section(".params")));
|
||||
|
||||
/* Define a function called stub_main. Do not return or reboot.
|
||||
* Use send_packet to communicate to the host. */
|
||||
|
||||
const char *hello = "Hello";
|
||||
|
||||
static char buf[1024];
|
||||
extern uint32_t _bss_start, _bss_end;
|
||||
|
||||
void stub_main(void) {
|
||||
uint32_t greeting = 0x4941484f;
|
||||
SLIP_send(&greeting, 4);
|
||||
memset(&_bss_start, 0, (&_bss_end - &_bss_start));
|
||||
buf[1] = 123;
|
||||
SLIP_send(hello, 5);
|
||||
while (1) {
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user