wojtek327

Untitled

Jun 6th, 2017
108
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #define setPinInput(port, pin) port.DIRCLR |= pin
  2. #define setPinOutput(port, pin) port.DIRSET |= pin
  3. #define setPinHigh(port, pin) port.OUTSET = pin
  4. #define setPinLow(port, pin) port.OUTCLR = pin
  5.  
  6. setPinInput(RX_PORT, RX_PIN);
  7. setPinOutput(TX_PORT, TX_PIN);
  8. setPinHigh(TX_PORT, TX_PIN);
  9. setPinOutput(RE_DE_PORT, RE_DE_PIN);
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×