mirror of
https://github.com/nodemcu/nodemcu-firmware.git
synced 2025-01-16 20:52:57 +08:00
49733f6f6d
As with the last commit this rolls up the follwowing, but include the various review comments on the PR. - **Documentation changes**. I've added the taks FAQ as a stub new Extension developer FAQ, and split the old FAQ into a Lua Developer FAQ and a Hardware FAQ. - **Tasking I/F**. New `app/task/Makefile`, `app/task/task.c`, `app/include/task/task.h` and `app/Makefile` as per previous commit. Cascade changes to `app/driver/uart.c`, `app/include/driver/uart.h`, `app/user/user_main.c` and `app/modules/node.c` - **GPIO Rework** to `app/modules/gpio.c` and `pin_map.[hc]`, `platform.[hc]` in `app/platform` - **Other Optimisations** Move the `platform_*_exists()` from `app/platform/common.c` to static inline declarations in `platform.h` as this generates faster, smaller code. Move lgc.a routines out of iram0.
24 lines
510 B
C
24 lines
510 B
C
|
|
#ifndef __PIN_MAP_H__
|
|
#define __PIN_MAP_H__
|
|
|
|
#include "c_types.h"
|
|
#include "user_config.h"
|
|
#include "gpio.h"
|
|
|
|
#define GPIO_PIN_NUM 13
|
|
#define GPIO_PIN_NUM_INV 17
|
|
|
|
extern uint32_t pin_mux[GPIO_PIN_NUM];
|
|
extern uint8_t pin_num[GPIO_PIN_NUM];
|
|
extern uint8_t pin_func[GPIO_PIN_NUM];
|
|
#ifdef GPIO_INTERRUPT_ENABLE
|
|
extern uint8_t pin_num_inv[GPIO_PIN_NUM_INV];
|
|
extern uint8_t pin_int_type[GPIO_PIN_NUM];
|
|
extern uint8_t pin_trigger[GPIO_PIN_NUM];
|
|
#endif
|
|
|
|
void get_pin_map(void);
|
|
|
|
#endif // #ifndef __PIN_MAP_H__
|