Motorola and Research in Motion have come to a settlement that will end all pending litigation between them, the companies announced Friday.

The long-term agreement involves standards such as 2G, 3G, 4G and 802.11, as well as wireless email, according to a brief statement. Motorola and RIM will also give each other certain patents.

In addition, Motorola will receive an undisclosed payment and ongoing royalties, according to the statement. No other details were immediately available.

A patent-infringement complaint Motorola filed against RIM earlier this year with the US International Trade Commission is apparently among the legal entanglements that will be settled under the pact.

The patents in question related to areas including WiFi access, power management and user interface technology.