This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I have ppp working in both lwip 1.3.0 and lwip 1.3.2 and would recommend 1.3.2 | |
First you need ti init the stack and the init ppp | |
sys_sem_t sem; | |
sem = sys_sem_new(0); // Create a new semaphore. | |
tcpip_init(tcpip_init_done, &sem); | |
sys_sem_wait(sem); // Block until the lwIP stack is initialized. | |
sys_sem_free(sem); // Free the semaphore. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <lua.h> | |
#include <lauxlib.h> | |
#include <lualib.h> | |
#include <stdlib.h> | |
int map_create(lua_State *lua); | |
int map_slice(lua_State *lua); | |
int main(int argc, char **argv){ | |
lua_State *lua = lua_open(); |