sunu

io.h

Sep 10th, 2020
107
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 18.84 KB
  1. /*
  2. https://raw.githubusercontent.com/vancegroup-mirrors/avr-libc/master/avr-libc/include/avr/io.h
  3.  
  4. https://www.nongnu.org/avr-libc/user-manual/io_8h_source.html
  5. https://www.nongnu.org/avr-libc/user-manual/io_8h.html
  6. https://www.nongnu.org/avr-libc/user-manual/group__avr__io.html
  7.  
  8.  
  9.    Copyright (c) 2002,2003,2005,2006,2007 Marek Michalkiewicz, Joerg Wunsch
  10.    Copyright (c) 2007 Eric B. Weddington
  11.    All rights reserved.
  12.  
  13.    Redistribution and use in source and binary forms, with or without
  14.    modification, are permitted provided that the following conditions are met:
  15.  
  16.    * Redistributions of source code must retain the above copyright
  17.      notice, this list of conditions and the following disclaimer.
  18.  
  19.    * Redistributions in binary form must reproduce the above copyright
  20.      notice, this list of conditions and the following disclaimer in
  21.      the documentation and/or other materials provided with the
  22.      distribution.
  23.  
  24.    * Neither the name of the copyright holders nor the names of
  25.      contributors may be used to endorse or promote products derived
  26.      from this software without specific prior written permission.
  27.  
  28.   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
  29.   AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  30.   IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  31.   ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
  32.   LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  33.   CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  34.   SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  35.   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  36.   CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  37.   ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  38.   POSSIBILITY OF SUCH DAMAGE. */
  39.  
  40. /* $Id$ */
  41.  
  42. /** \file */
  43. /** \defgroup avr_io <avr/io.h>: AVR device-specific IO definitions
  44.     \code #include <avr/io.h> \endcode
  45.  
  46.     This header file includes the apropriate IO definitions for the
  47.     device that has been specified by the <tt>-mmcu=</tt> compiler
  48.     command-line switch.  This is done by diverting to the appropriate
  49.     file <tt>&lt;avr/io</tt><em>XXXX</em><tt>.h&gt;</tt> which should
  50.     never be included directly.  Some register names common to all
  51.     AVR devices are defined directly within <tt>&lt;avr/common.h&gt;</tt>,
  52.     which is included in <tt>&lt;avr/io.h&gt;</tt>,
  53.     but most of the details come from the respective include file.
  54.  
  55.     Note that this file always includes the following files:
  56.     \code
  57.     #include <avr/sfr_defs.h>
  58.     #include <avr/portpins.h>
  59.     #include <avr/common.h>
  60.     #include <avr/version.h>
  61.     \endcode
  62.     See \ref avr_sfr for more details about that header file.
  63.  
  64.     Included are definitions of the IO register set and their
  65.     respective bit values as specified in the Atmel documentation.
  66.     Note that inconsistencies in naming conventions,
  67.     so even identical functions sometimes get different names on
  68.     different devices.
  69.  
  70.     Also included are the specific names useable for interrupt
  71.     function definitions as documented
  72.     \ref avr_signames "here".
  73.  
  74.     Finally, the following macros are defined:
  75.  
  76.     - \b RAMEND
  77.     <br>
  78.     The last on-chip RAM address.
  79.     <br>
  80.     - \b XRAMEND
  81.     <br>
  82.     The last possible RAM location that is addressable. This is equal to
  83.     RAMEND for devices that do not allow for external RAM. For devices
  84.     that allow external RAM, this will be larger than RAMEND.
  85.     <br>
  86.     - \b E2END
  87.     <br>
  88.     The last EEPROM address.
  89.     <br>
  90.     - \b FLASHEND
  91.     <br>
  92.     The last byte address in the Flash program space.
  93.     <br>
  94.     - \b SPM_PAGESIZE
  95.     <br>
  96.     For devices with bootloader support, the flash pagesize
  97.     (in bytes) to be used for the \c SPM instruction.
  98.     - \b E2PAGESIZE
  99.     <br>
  100.     The size of the EEPROM page.
  101.    
  102. */
  103.  
  104. #ifndef _AVR_IO_H_
  105. #define _AVR_IO_H_
  106.  
  107. #include <avr/sfr_defs.h>
  108.  
  109. #if defined (__AVR_AT94K__)
  110. #  include <avr/ioat94k.h>
  111. #elif defined (__AVR_AT43USB320__)
  112. #  include <avr/io43u32x.h>
  113. #elif defined (__AVR_AT43USB355__)
  114. #  include <avr/io43u35x.h>
  115. #elif defined (__AVR_AT76C711__)
  116. #  include <avr/io76c711.h>
  117. #elif defined (__AVR_AT86RF401__)
  118. #  include <avr/io86r401.h>
  119. #elif defined (__AVR_AT90PWM1__)
  120. #  include <avr/io90pwm1.h>
  121. #elif defined (__AVR_AT90PWM2__)
  122. #  include <avr/io90pwmx.h>
  123. #elif defined (__AVR_AT90PWM2B__)
  124. #  include <avr/io90pwm2b.h>
  125. #elif defined (__AVR_AT90PWM3__)
  126. #  include <avr/io90pwmx.h>
  127. #elif defined (__AVR_AT90PWM3B__)
  128. #  include <avr/io90pwm3b.h>
  129. #elif defined (__AVR_AT90PWM216__)
  130. #  include <avr/io90pwm216.h>
  131. #elif defined (__AVR_AT90PWM316__)
  132. #  include <avr/io90pwm316.h>
  133. #elif defined (__AVR_AT90PWM161__)
  134. #  include <avr/io90pwm161.h>
  135. #elif defined (__AVR_AT90PWM81__)
  136. #  include <avr/io90pwm81.h>
  137. #elif defined (__AVR_ATmega8U2__)
  138. #  include <avr/iom8u2.h>
  139. #elif defined (__AVR_ATmega16M1__)
  140. #  include <avr/iom16m1.h>
  141. #elif defined (__AVR_ATmega16U2__)
  142. #  include <avr/iom16u2.h>
  143. #elif defined (__AVR_ATmega16U4__)
  144. #  include <avr/iom16u4.h>
  145. #elif defined (__AVR_ATmega32C1__)
  146. #  include <avr/iom32c1.h>
  147. #elif defined (__AVR_ATmega32M1__)
  148. #  include <avr/iom32m1.h>
  149. #elif defined (__AVR_ATmega32U2__)
  150. #  include <avr/iom32u2.h>
  151. #elif defined (__AVR_ATmega32U4__)
  152. #  include <avr/iom32u4.h>
  153. #elif defined (__AVR_ATmega32U6__)
  154. #  include <avr/iom32u6.h>
  155. #elif defined (__AVR_ATmega64C1__)
  156. #  include <avr/iom64c1.h>
  157. #elif defined (__AVR_ATmega64M1__)
  158. #  include <avr/iom64m1.h>
  159. #elif defined (__AVR_ATmega128__)
  160. #  include <avr/iom128.h>
  161. #elif defined (__AVR_ATmega128A__)
  162. #  include <avr/iom128a.h>
  163. #elif defined (__AVR_ATmega1280__)
  164. #  include <avr/iom1280.h>
  165. #elif defined (__AVR_ATmega1281__)
  166. #  include <avr/iom1281.h>
  167. #elif defined (__AVR_ATmega1284__)
  168. #  include <avr/iom1284.h>
  169. #elif defined (__AVR_ATmega1284P__)
  170. #  include <avr/iom1284p.h>
  171. #elif defined (__AVR_ATmega128RFA1__)
  172. #  include <avr/iom128rfa1.h>
  173. #elif defined (__AVR_ATmega1284RFR2__)
  174. #  include <avr/iom1284rfr2.h>
  175. #elif defined (__AVR_ATmega128RFR2__)
  176. #  include <avr/iom128rfr2.h>
  177. #elif defined (__AVR_ATmega2564RFR2__)
  178. #  include <avr/iom2564rfr2.h>
  179. #elif defined (__AVR_ATmega256RFR2__)
  180. #  include <avr/iom256rfr2.h>
  181. #elif defined (__AVR_ATmega2560__)
  182. #  include <avr/iom2560.h>
  183. #elif defined (__AVR_ATmega2561__)
  184. #  include <avr/iom2561.h>
  185. #elif defined (__AVR_AT90CAN32__)
  186. #  include <avr/iocan32.h>
  187. #elif defined (__AVR_AT90CAN64__)
  188. #  include <avr/iocan64.h>
  189. #elif defined (__AVR_AT90CAN128__)
  190. #  include <avr/iocan128.h>
  191. #elif defined (__AVR_AT90USB82__)
  192. #  include <avr/iousb82.h>
  193. #elif defined (__AVR_AT90USB162__)
  194. #  include <avr/iousb162.h>
  195. #elif defined (__AVR_AT90USB646__)
  196. #  include <avr/iousb646.h>
  197. #elif defined (__AVR_AT90USB647__)
  198. #  include <avr/iousb647.h>
  199. #elif defined (__AVR_AT90USB1286__)
  200. #  include <avr/iousb1286.h>
  201. #elif defined (__AVR_AT90USB1287__)
  202. #  include <avr/iousb1287.h>
  203. #elif defined (__AVR_ATmega644RFR2__)
  204. #  include <avr/iom644rfr2.h>
  205. #elif defined (__AVR_ATmega64RFR2__)
  206. #  include <avr/iom64rfr2.h>
  207. #elif defined (__AVR_ATmega64__)
  208. #  include <avr/iom64.h>
  209. #elif defined (__AVR_ATmega64A__)
  210. #  include <avr/iom64a.h>
  211. #elif defined (__AVR_ATmega640__)
  212. #  include <avr/iom640.h>
  213. #elif defined (__AVR_ATmega644__) || defined (__AVR_ATmega644A__)
  214. #  include <avr/iom644.h>
  215. #elif defined (__AVR_ATmega644P__)
  216. #  include <avr/iom644p.h>
  217. #elif defined (__AVR_ATmega644PA__)
  218. #  include <avr/iom644pa.h>
  219. #elif defined (__AVR_ATmega645__) || defined (__AVR_ATmega645A__) || defined (__AVR_ATmega645P__)
  220. #  include <avr/iom645.h>
  221. #elif defined (__AVR_ATmega6450__) || defined (__AVR_ATmega6450A__) || defined (__AVR_ATmega6450P__)
  222. #  include <avr/iom6450.h>
  223. #elif defined (__AVR_ATmega649__) || defined (__AVR_ATmega649A__)
  224. #  include <avr/iom649.h>
  225. #elif defined (__AVR_ATmega6490__) || defined (__AVR_ATmega6490A__) || defined (__AVR_ATmega6490P__)
  226. #  include <avr/iom6490.h>
  227. #elif defined (__AVR_ATmega649P__)
  228. #  include <avr/iom649p.h>
  229. #elif defined (__AVR_ATmega64HVE__)
  230. #  include <avr/iom64hve.h>
  231. #elif defined (__AVR_ATmega103__)
  232. #  include <avr/iom103.h>
  233. #elif defined (__AVR_ATmega32__)
  234. #  include <avr/iom32.h>
  235. #elif defined (__AVR_ATmega32A__)
  236. #  include <avr/iom32a.h>
  237. #elif defined (__AVR_ATmega323__)
  238. #  include <avr/iom323.h>
  239. #elif defined (__AVR_ATmega324P__) || defined (__AVR_ATmega324A__)
  240. #  include <avr/iom324.h>
  241. #elif defined (__AVR_ATmega324PA__)
  242. #  include <avr/iom324pa.h>
  243. #elif defined (__AVR_ATmega325__) || defined (__AVR_ATmega325A__)
  244. #  include <avr/iom325.h>
  245. #elif defined (__AVR_ATmega325P__)
  246. #  include <avr/iom325.h>
  247. #elif defined (__AVR_ATmega325PA__)
  248. #  include <avr/iom325pa.h>  
  249. #elif defined (__AVR_ATmega3250__) || defined (__AVR_ATmega3250A__)
  250. #  include <avr/iom3250.h>
  251. #elif defined (__AVR_ATmega3250P__)
  252. #  include <avr/iom3250.h>
  253. #elif defined (__AVR_ATmega3250PA__)
  254. #  include <avr/iom3250pa.h>  
  255. #elif defined (__AVR_ATmega328P__) || defined (__AVR_ATmega328__)
  256. #  include <avr/iom328p.h>
  257. #elif defined (__AVR_ATmega329__) || defined (__AVR_ATmega329A__)
  258. #  include <avr/iom329.h>
  259. #elif defined (__AVR_ATmega329P__) || defined (__AVR_ATmega329PA__)
  260. #  include <avr/iom329.h>
  261. #elif defined (__AVR_ATmega3290__) || defined (__AVR_ATmega3290A__)
  262. #  include <avr/iom3290.h>
  263. #elif defined (__AVR_ATmega3290P__)
  264. #  include <avr/iom3290.h>
  265. #elif defined (__AVR_ATmega3290PA__)
  266. #  include <avr/iom3290pa.h>
  267. #elif defined (__AVR_ATmega32HVB__)
  268. #  include <avr/iom32hvb.h>
  269. #elif defined (__AVR_ATmega32HVBREVB__)
  270. #  include <avr/iom32hvbrevb.h>
  271. #elif defined (__AVR_ATmega406__)
  272. #  include <avr/iom406.h>
  273. #elif defined (__AVR_ATmega16__)
  274. #  include <avr/iom16.h>
  275. #elif defined (__AVR_ATmega16A__)
  276. #  include <avr/iom16a.h>
  277. #elif defined (__AVR_ATmega161__)
  278. #  include <avr/iom161.h>
  279. #elif defined (__AVR_ATmega162__)
  280. #  include <avr/iom162.h>
  281. #elif defined (__AVR_ATmega163__)
  282. #  include <avr/iom163.h>
  283. #elif defined (__AVR_ATmega164P__) || defined (__AVR_ATmega164A__)
  284. #  include <avr/iom164.h>
  285. #elif defined (__AVR_ATmega164PA__)
  286. #  include <avr/iom164pa.h>
  287. #elif defined (__AVR_ATmega165__)
  288. #  include <avr/iom165.h>
  289. #elif defined (__AVR_ATmega165A__)
  290. #  include <avr/iom165a.h>
  291. #elif defined (__AVR_ATmega165P__)
  292. #  include <avr/iom165p.h>
  293. #elif defined (__AVR_ATmega165PA__)
  294. #  include <avr/iom165pa.h>
  295. #elif defined (__AVR_ATmega168__)
  296. #  include <avr/iom168.h>
  297. #elif defined (__AVR_ATmega168A__)
  298. #  include <avr/iom168a.h>
  299. #elif defined (__AVR_ATmega168P__)
  300. #  include <avr/iom168p.h>
  301. #elif defined (__AVR_ATmega168PA__)
  302. #  include <avr/iom168pa.h>
  303. #elif defined (__AVR_ATmega169__) || defined (__AVR_ATmega169A__)
  304. #  include <avr/iom169.h>
  305. #elif defined (__AVR_ATmega169P__)
  306. #  include <avr/iom169p.h>
  307. #elif defined (__AVR_ATmega169PA__)
  308. #  include <avr/iom169pa.h>
  309. #elif defined (__AVR_ATmega8HVA__)
  310. #  include <avr/iom8hva.h>
  311. #elif defined (__AVR_ATmega16HVA__)
  312. #  include <avr/iom16hva.h>
  313. #elif defined (__AVR_ATmega16HVA2__)
  314. #  include <avr/iom16hva2.h>
  315. #elif defined (__AVR_ATmega16HVB__)
  316. #  include <avr/iom16hvb.h>
  317. #elif defined (__AVR_ATmega16HVBREVB__)
  318. #  include <avr/iom16hvbrevb.h>
  319. #elif defined (__AVR_ATmega8__)
  320. #  include <avr/iom8.h>
  321. #elif defined (__AVR_ATmega8A__)
  322. #  include <avr/iom8a.h>
  323. #elif defined (__AVR_ATmega48__)
  324. #  include <avr/iom48.h>
  325. #elif defined (__AVR_ATmega48A__)
  326. #  include <avr/iom48a.h>
  327. #elif defined (__AVR_ATmega48PA__)
  328. #  include <avr/iom48pa.h>
  329. #elif defined (__AVR_ATmega48P__)
  330. #  include <avr/iom48p.h>
  331. #elif defined (__AVR_ATmega88__)
  332. #  include <avr/iom88.h>
  333. #elif defined (__AVR_ATmega88A__)
  334. #  include <avr/iom88a.h>
  335. #elif defined (__AVR_ATmega88P__)
  336. #  include <avr/iom88p.h>
  337. #elif defined (__AVR_ATmega88PA__)
  338. #  include <avr/iom88pa.h>
  339. #elif defined (__AVR_ATmega8515__)
  340. #  include <avr/iom8515.h>
  341. #elif defined (__AVR_ATmega8535__)
  342. #  include <avr/iom8535.h>
  343. #elif defined (__AVR_AT90S8535__)
  344. #  include <avr/io8535.h>
  345. #elif defined (__AVR_AT90C8534__)
  346. #  include <avr/io8534.h>
  347. #elif defined (__AVR_AT90S8515__)
  348. #  include <avr/io8515.h>
  349. #elif defined (__AVR_AT90S4434__)
  350. #  include <avr/io4434.h>
  351. #elif defined (__AVR_AT90S4433__)
  352. #  include <avr/io4433.h>
  353. #elif defined (__AVR_AT90S4414__)
  354. #  include <avr/io4414.h>
  355. #elif defined (__AVR_ATtiny22__)
  356. #  include <avr/iotn22.h>
  357. #elif defined (__AVR_ATtiny26__)
  358. #  include <avr/iotn26.h>
  359. #elif defined (__AVR_AT90S2343__)
  360. #  include <avr/io2343.h>
  361. #elif defined (__AVR_AT90S2333__)
  362. #  include <avr/io2333.h>
  363. #elif defined (__AVR_AT90S2323__)
  364. #  include <avr/io2323.h>
  365. #elif defined (__AVR_AT90S2313__)
  366. #  include <avr/io2313.h>
  367. #elif defined (__AVR_ATtiny4__)
  368. #  include <avr/iotn4.h>
  369. #elif defined (__AVR_ATtiny5__)
  370. #  include <avr/iotn5.h>
  371. #elif defined (__AVR_ATtiny9__)
  372. #  include <avr/iotn9.h>
  373. #elif defined (__AVR_ATtiny10__)
  374. #  include <avr/iotn10.h>
  375. #elif defined (__AVR_ATtiny20__)
  376. #  include <avr/iotn20.h>
  377. #elif defined (__AVR_ATtiny40__)
  378. #  include <avr/iotn40.h>
  379. #elif defined (__AVR_ATtiny2313__)
  380. #  include <avr/iotn2313.h>
  381. #elif defined (__AVR_ATtiny2313A__)
  382. #  include <avr/iotn2313a.h>
  383. #elif defined (__AVR_ATtiny13__)
  384. #  include <avr/iotn13.h>
  385. #elif defined (__AVR_ATtiny13A__)
  386. #  include <avr/iotn13a.h>
  387. #elif defined (__AVR_ATtiny25__)
  388. #  include <avr/iotn25.h>
  389. #elif defined (__AVR_ATtiny4313__)
  390. #  include <avr/iotn4313.h>
  391. #elif defined (__AVR_ATtiny45__)
  392. #  include <avr/iotn45.h>
  393. #elif defined (__AVR_ATtiny85__)
  394. #  include <avr/iotn85.h>
  395. #elif defined (__AVR_ATtiny24__)
  396. #  include <avr/iotn24.h>
  397. #elif defined (__AVR_ATtiny24A__)
  398. #  include <avr/iotn24a.h>
  399. #elif defined (__AVR_ATtiny44__)
  400. #  include <avr/iotn44.h>
  401. #elif defined (__AVR_ATtiny44A__)
  402. #  include <avr/iotn44a.h>
  403. #elif defined (__AVR_ATtiny84__)
  404. #  include <avr/iotn84.h>
  405. #elif defined (__AVR_ATtiny84A__)
  406. #  include <avr/iotn84a.h>  
  407. #elif defined (__AVR_ATtiny261__)
  408. #  include <avr/iotn261.h>
  409. #elif defined (__AVR_ATtiny261A__)
  410. #  include <avr/iotn261a.h>
  411. #elif defined (__AVR_ATtiny461__)
  412. #  include <avr/iotn461.h>
  413. #elif defined (__AVR_ATtiny461A__)
  414. #  include <avr/iotn461a.h>
  415. #elif defined (__AVR_ATtiny861__)
  416. #  include <avr/iotn861.h>
  417. #elif defined (__AVR_ATtiny861A__)
  418. #  include <avr/iotn861a.h>
  419. #elif defined (__AVR_ATtiny43U__)
  420. #  include <avr/iotn43u.h>
  421. #elif defined (__AVR_ATtiny48__)
  422. #  include <avr/iotn48.h>
  423. #elif defined (__AVR_ATtiny88__)
  424. #  include <avr/iotn88.h>
  425. #elif defined (__AVR_ATtiny828__)
  426. #  include <avr/iotn828.h>
  427. #elif defined (__AVR_ATtiny87__)
  428. #  include <avr/iotn87.h>
  429. #elif defined (__AVR_ATtiny167__)
  430. #  include <avr/iotn167.h>
  431. #elif defined (__AVR_ATtiny1634__)
  432. #  include <avr/iotn1634.h>
  433. #elif defined (__AVR_AT90SCR100__)
  434. #  include <avr/io90scr100.h>
  435. #elif defined (__AVR_ATxmega16A4__)
  436. #  include <avr/iox16a4.h>
  437. #elif defined (__AVR_ATxmega16A4U__)
  438. #  include <avr/iox16a4u.h>
  439. #elif defined (__AVR_ATxmega16C4__)
  440. #  include <avr/iox16c4.h>
  441. #elif defined (__AVR_ATxmega16D4__)
  442. #  include <avr/iox16d4.h>
  443. #elif defined (__AVR_ATxmega32A4__)
  444. #  include <avr/iox32a4.h>
  445. #elif defined (__AVR_ATxmega32A4U__)
  446. #  include <avr/iox32a4u.h>
  447. #elif defined (__AVR_ATxmega32C4__)
  448. #  include <avr/iox32c4.h>
  449. #elif defined (__AVR_ATxmega32D4__)
  450. #  include <avr/iox32d4.h>
  451. #elif defined (__AVR_ATxmega64A1__)
  452. #  include <avr/iox64a1.h>
  453. #elif defined (__AVR_ATxmega64A1U__)
  454. #  include <avr/iox64a1u.h>
  455. #elif defined (__AVR_ATxmega64A3__)
  456. #  include <avr/iox64a3.h>
  457. #elif defined (__AVR_ATxmega64A3U__)
  458. #  include <avr/iox64a3u.h>
  459. #elif defined (__AVR_ATxmega64A4U__)
  460. #  include <avr/iox64a4u.h>
  461. #elif defined (__AVR_ATxmega64B1__)
  462. #  include <avr/iox64b1.h>
  463. #elif defined (__AVR_ATxmega64B3__)
  464. #  include <avr/iox64b3.h>
  465. #elif defined (__AVR_ATxmega64C3__)
  466. #  include <avr/iox64c3.h>
  467. #elif defined (__AVR_ATxmega64D3__)
  468. #  include <avr/iox64d3.h>
  469. #elif defined (__AVR_ATxmega64D4__)
  470. #  include <avr/iox64d4.h>
  471. #elif defined (__AVR_ATxmega128A1__)
  472. #  include <avr/iox128a1.h>
  473. #elif defined (__AVR_ATxmega128A1U__)
  474. #  include <avr/iox128a1u.h>
  475. #elif defined (__AVR_ATxmega128A4U__)
  476. #  include <avr/iox128a4u.h>
  477. #elif defined (__AVR_ATxmega128A3__)
  478. #  include <avr/iox128a3.h>
  479. #elif defined (__AVR_ATxmega128A3U__)
  480. #  include <avr/iox128a3u.h>
  481. #elif defined (__AVR_ATxmega128B1__)
  482. #  include <avr/iox128b1.h>
  483. #elif defined (__AVR_ATxmega128B3__)
  484. #  include <avr/iox128b3.h>
  485. #elif defined (__AVR_ATxmega128C3__)
  486. #  include <avr/iox128c3.h>
  487. #elif defined (__AVR_ATxmega128D3__)
  488. #  include <avr/iox128d3.h>
  489. #elif defined (__AVR_ATxmega128D4__)
  490. #  include <avr/iox128d4.h>
  491. #elif defined (__AVR_ATxmega192A3__)
  492. #  include <avr/iox192a3.h>
  493. #elif defined (__AVR_ATxmega192A3U__)
  494. #  include <avr/iox192a3u.h>
  495. #elif defined (__AVR_ATxmega192C3__)
  496. #  include <avr/iox192c3.h>
  497. #elif defined (__AVR_ATxmega192D3__)
  498. #  include <avr/iox192d3.h>
  499. #elif defined (__AVR_ATxmega256A3__)
  500. #  include <avr/iox256a3.h>
  501. #elif defined (__AVR_ATxmega256A3U__)
  502. #  include <avr/iox256a3u.h>
  503. #elif defined (__AVR_ATxmega256A3B__)
  504. #  include <avr/iox256a3b.h>
  505. #elif defined (__AVR_ATxmega256A3BU__)
  506. #  include <avr/iox256a3bu.h>
  507. #elif defined (__AVR_ATxmega256C3__)
  508. #  include <avr/iox256c3.h>
  509. #elif defined (__AVR_ATxmega256D3__)
  510. #  include <avr/iox256d3.h>
  511. #elif defined (__AVR_ATxmega384C3__)
  512. #  include <avr/iox384c3.h>
  513. #elif defined (__AVR_ATxmega384D3__)
  514. #  include <avr/iox384d3.h>
  515. #elif defined (__AVR_ATA5790__)
  516. #  include <avr/ioa5790.h>
  517. #elif defined (__AVR_ATA5272__)
  518. #  include <avr/ioa5272.h>
  519. #elif defined (__AVR_ATA5505__)
  520. #  include <avr/ioa5505.h>
  521. #elif defined (__AVR_ATA5795__)
  522. #  include <avr/ioa5795.h>
  523. #elif defined (__AVR_ATA6285__)
  524. #  include <avr/ioa6285.h>
  525. #elif defined (__AVR_ATA6286__)
  526. #  include <avr/ioa6286.h>
  527. #elif defined (__AVR_ATA6289__)
  528. #  include <avr/ioa6289.h>
  529. /* avr1: the following only supported for assembler programs */
  530. #elif defined (__AVR_ATtiny28__)
  531. #  include <avr/iotn28.h>
  532. #elif defined (__AVR_AT90S1200__)
  533. #  include <avr/io1200.h>
  534. #elif defined (__AVR_ATtiny15__)
  535. #  include <avr/iotn15.h>
  536. #elif defined (__AVR_ATtiny12__)
  537. #  include <avr/iotn12.h>
  538. #elif defined (__AVR_ATtiny11__)
  539. #  include <avr/iotn11.h>
  540. #elif defined (__AVR_M3000__)
  541. #  include <avr/iom3000.h>
  542. #elif defined (__AVR_DEV_LIB_NAME__)
  543. #  define __concat__(a,b) a##b
  544. #  define __header1__(a,b) __concat__(a,b)
  545. #  define __AVR_DEVICE_HEADER__ <avr/__header1__(io,__AVR_DEV_LIB_NAME__).h>
  546. #  include __AVR_DEVICE_HEADER__
  547. #else
  548. #  if !defined(__COMPILING_AVR_LIBC__)
  549. #    warning "device type not defined"
  550. #  endif
  551. #endif
  552.  
  553. #include <avr/portpins.h>
  554.  
  555. #include <avr/common.h>
  556.  
  557. #include <avr/version.h>
  558.  
  559. #if __AVR_ARCH__ >= 100
  560. #  include <avr/xmega.h>
  561. #endif
  562.  
  563. /* Include fuse.h after individual IO header files. */
  564. #include <avr/fuse.h>
  565.  
  566. /* Include lock.h after individual IO header files. */
  567. #include <avr/lock.h>
  568.  
  569. #endif /* _AVR_IO_H_ */
  570.  
RAW Paste Data Copied