# Streamlining code for Digital I/O in LPC2000

Status
Not open for further replies.

#### kender

Colleagues,

I’m new to ARMs (the usual disclaimer). Could anyone recommend a convenient library or methodology for streamlining the simple digital I/O. I’m concerned more about code maintainability than the speed of execution. Here’s how it’s done in the IAR examples. I think it’s a lot of code for just being able to toggle a pin high or low.

Code:
// file: board.h
#define USB_LINK_LED_FIO    FIO1PIN
Of course, it’s not hard to write such library, or make an automatic code generator. But I’d like not to reinvent this wheel if possible.

- Nick

Status
Not open for further replies.