Mercurial > public > hwos_code
comparison src/ports.inc @ 560:b7eb98dbd800
bump to 2.96beta (REFACTORED VERSION)
| author | heinrichsweikamp |
|---|---|
| date | Wed, 31 Jan 2018 19:39:37 +0100 |
| parents | 4b93354b7738 |
| children | ca4556fb60b9 |
comparison
equal
deleted
inserted
replaced
| 559:9cb967d844f0 | 560:b7eb98dbd800 |
|---|---|
| 17 ; PORTB | 17 ; PORTB |
| 18 #DEFINE switch_left1 PORTB,1 ; Switch | 18 #DEFINE switch_left1 PORTB,1 ; Switch |
| 19 #DEFINE switch_right2 PORTB,0 ; Switch | 19 #DEFINE switch_right2 PORTB,0 ; Switch |
| 20 #DEFINE mcp_power PORTB,2 ; RX Power supply | 20 #DEFINE mcp_power PORTB,2 ; RX Power supply |
| 21 #DEFINE s8_npower PORTB,3 ; Powers S8 Bulkhead (inverted) | 21 #DEFINE s8_npower PORTB,3 ; Powers S8 Bulkhead (inverted) |
| 22 #DEFINE LEDg PORTB,4 ; LED green | 22 #DEFINE LEDg PORTB,4 ; LED green / active_reset_ostc_rx (<- Do no longer use this LED unless for debugging) |
| 23 #DEFINE tft_power PORTB,5 ; via P-MOSFET (Inverted) | 23 #DEFINE tft_power PORTB,5 ; via P-MOSFET (Inverted) |
| 24 #DEFINE icsp_clk PORTB,6 ; ICSP | 24 #DEFINE icsp_clk PORTB,6 ; ICSP |
| 25 #DEFINE icsp_dat PORTB,7 ; ICSP | 25 #DEFINE icsp_dat PORTB,7 ; ICSP |
| 26 ; TRIS=b'00001011' | 26 ; TRIS=b'00001011' |
| 27 | 27 |
| 30 #DEFINE SOSC_RC1 PORTC,1 ; SOSC | 30 #DEFINE SOSC_RC1 PORTC,1 ; SOSC |
| 31 #DEFINE TFT_PWM PORTC,2 ; TFT Backlight | 31 #DEFINE TFT_PWM PORTC,2 ; TFT Backlight |
| 32 #DEFINE I2C_RC3 PORTC,3 ; I²C | 32 #DEFINE I2C_RC3 PORTC,3 ; I²C |
| 33 #DEFINE I2C_RC4 PORTC,4 ; I²C | 33 #DEFINE I2C_RC4 PORTC,4 ; I²C |
| 34 #DEFINE MS5541_mosi PORTC,5 ; MS5541 | 34 #DEFINE MS5541_mosi PORTC,5 ; MS5541 |
| 35 #DEFINE uart1_RC6 PORTC,6 ; UART1 (USB) | 35 #DEFINE uart1_RC6 PORTC,6 ; UART1 (USB/BLE) |
| 36 #DEFINE uart1_RC7 PORTC,7 ; UART1 (USB) | 36 #DEFINE uart1_RC7 PORTC,7 ; UART1 (USB/BLE) |
| 37 ; TRIS=b'10011010' | 37 ; TRIS=b'10011010' |
| 38 | 38 |
| 39 ; PORTD | 39 ; PORTD |
| 40 #DEFINE tft_cs PORTD,0 ; /CS | 40 #DEFINE tft_cs PORTD,0 ; /CS |
| 41 #DEFINE tft_rs PORTD,1 ; RS | 41 #DEFINE tft_rs PORTD,1 ; RS |
| 80 #DEFINE RJ1_unused PORTJ,1 ; unused | 80 #DEFINE RJ1_unused PORTJ,1 ; unused |
| 81 #DEFINE CHRG_OUT PORTJ,2 ; CHRG_OUT | 81 #DEFINE CHRG_OUT PORTJ,2 ; CHRG_OUT |
| 82 #DEFINE CHRG_IN PORTJ,3 ; CHRG_IN | 82 #DEFINE CHRG_IN PORTJ,3 ; CHRG_IN |
| 83 #DEFINE vusb_in PORTJ,4 ; external power supply detect, USB enumerated | 83 #DEFINE vusb_in PORTJ,4 ; external power supply detect, USB enumerated |
| 84 #DEFINE power_sw1 PORTJ,5 ; Power supply for switch2 circuit | 84 #DEFINE power_sw1 PORTJ,5 ; Power supply for switch2 circuit |
| 85 #DEFINE MS5541_clk PORTJ,6 ; MS5541 mH | 85 #DEFINE MS5541_clk PORTJ,6 ; MS5541 |
| 86 #DEFINE MS5541_miso PORTJ,7 ; MS5541 mH | 86 #DEFINE MS5541_miso PORTJ,7 ; MS5541 |
| 87 ; TRIS=b'10010000' | 87 ; TRIS=b'10010000' |
| 88 | 88 |
