Skip to content

cpu/esp32: additional _ removed from __uart_* in static symbols#11272

Closed
gschorcht wants to merge 5 commits intoRIOT-OS:masterfrom
gschorcht:cpu/esp32/periph/uart/renaming
Closed

cpu/esp32: additional _ removed from __uart_* in static symbols#11272
gschorcht wants to merge 5 commits intoRIOT-OS:masterfrom
gschorcht:cpu/esp32/periph/uart/renaming

Conversation

@gschorcht
Copy link
Contributor

Contribution description

This PR removes the additional _ for static symbols that has been added by mistake. This will make future merging with the reimplementation of ESP8266 easier.

Testing procedure

Successful compilation of application tests/uart should be enough.

If it more testing is required, compile and flash the tests/uart application for a board that defines UART_DEV(1), e.g., esp32-wroom-32:

make BOARD=esp32-wroom-32 -C tests/periph_uart flash

Connect GPIO9 and GPIO10 and execute the following test in terminal program

init 1 9600
send 1 test

You should be able to observe the following output:

> init 1 9600
Success: Initialized UART_DEV(1) at BAUD 9600
UARD_DEV(1): test uart_poweron() and uart_poweroff()  ->  [OK]
> 
> send 1 test
UART_DEV(1) TX: test
> 
> Success: UART_DEV(1) RX: [test]\n

Issues/PRs references

An additional _ for static symbols has been added by mistake and should be removed. This will make future merging with the reimplementation of ESP8266 easier.
For consistency reasons, internal function _uart_config was moved to the section of internal functions.
For consistency reasons, external functions were moved to the section of external functions.
The interrupt handler is only used internally and declared to be static.
Function uart_set_baudrate which is only used internally was made static and renamed to _uart_set_baudrate to indicate that it is an internal function. Furthermore, an additional waiting for flushed TX FIFO added. The reconfiguration is now handled as critical section.
@gschorcht gschorcht closed this Mar 26, 2019
@gschorcht gschorcht deleted the cpu/esp32/periph/uart/renaming branch March 26, 2019 09:02
@gschorcht
Copy link
Contributor Author

Closed by intention since the PR contains more cleanups than just renaming. Reopened with a new branch as PR #11276.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant