RTOS safe UART driver for ATmega2560

Hello,

Does anyone know where I can find a serial (UART) drives that are RTOS safe. Preferable arduinno port of hardware serial library.

What is RTOS?

I seem to recall from way back that it used to mean Real Time Operating System - but that doesn't seem relevant to your question.

...R

Yes that is exactly what it means. I am not sure if you understand my question. But I need a driver for the USART ports on the ATmega2560. I am trying to avoid writing them my self. Preferable with TX and RX ISR.

But what RTOS?
What is safe for one is not for others.

Most RTOS that are written should follow guide lines. Generic drives for RTOS should have function pointers so the user can declare timers,semaphore handlers or mutex handlers and so on. So that a port can be as simple. Most the user has to write is the ISR. I have written my own RTOS. So I am looking for drivers. This is not the first time I am porting it to a different MCU. I have implemented multiple CPU in FPGA and ported my RTOS there.

I know Xilinx writes there drivers very structured so it was an easy port when I have run it on a microBlaze using a spartan 6 fpga.