Wangjialin
288f4f63f0
Add UART driver
...
1. add uart.h and uart.c
2. add ESP_ERR_TIMEOUT in esp_err.h
3. add UART AHB FIFO address in uart_reg.h
4. modify xRingbufferSendFromISR return value in ringbuffer.c
5. add #include "soc/gpio_sig_map.h" in gpio.h
2016-10-24 09:17:10 +08:00
Wangjialin
e523a2532a
Modify LEDC driver
...
1. configure LEDC timer saparately
2. add peripher_crtl.c/.h
To enable the peripheral modules, we have to set/clear the control register in dport_reg.h.
These bits are disabled by default and they are all in a same register, so we need to add a lock on that.
3. add include esp_err.h in gpio.h
2016-09-28 23:20:34 +08:00
Wangjialin
516ab36bbe
Minor modification
...
1. add new line between typedefs
2. for param check functions, return bool if they are true/false
2016-09-28 12:04:15 +08:00
Wangjialin
ec45e1a593
components/driver: modify LEDC driver
...
1. modify ledc struct header: combine high speed and low speed channel
2. modify ledc init function
3. add timer control api
4. modify typo in ledc.h
2016-09-26 09:56:03 +08:00
Wangjialin
3f1c5c4d5b
1. add a macro 'GPIO_IS_VALID_OUTPUT_GPIO' and 'GPIO_IS_VALID_OUTPUT_GPIO' in gpio.h
...
2. add PIN_FUNC_GPIO in io_mux_reg.h, put the io_mux_regs in order
3. use braces around single line if statements in ledc.c and gpio.c
2016-09-23 14:52:26 +08:00
Wangjialin
85cd269ef8
add ledc driver code
2016-09-23 09:21:37 +08:00
Wangjialin
92569082c6
Remove some macros and declarations that are already in rom/gpio.h
2016-09-21 12:08:42 +08:00
Wangjialin
f7b10745be
Remove mutex from GPIO driver code. Replace uint8_t/uint16_t with uint32_t
2016-09-21 09:51:37 +08:00
Wangjialin
2be163f6cc
add gpio driver code
2016-09-19 17:33:21 +08:00