Ben Gamari
fa47bb80d5
lpc43xx/uart: Fix TER register definition
I'm not sure why bit 7 and offset 0x30 were used previously. Revision
1.6 of UM10503 claims that the TXEN bit is bit 0 in all UARTs' TER
registers.
12 years ago
Ben Gamari
dbf9c3bc39
lpc43xx/uart: Kill _BITMASK definitions for single-bit fields
12 years ago
Ben Gamari
b0550ce0bf
lpc43xx/uart: Uncomment register definitions
12 years ago
Ben Gamari
8201703e64
lpc43xx/ssp: Fix duplicate function definition from merge
12 years ago
Ben Gamari
e8af7a98ee
lpc43xx/ssp: Add ssp_transfer
12 years ago
Ben Gamari
0d29b1d2d6
lpc43: Use uint*_t instead of u*
12 years ago
Ben Gamari
fa9fa986df
lpc43xx/uart: Add missing BEGIN/END_DECLS
12 years ago
TitanMKD
0dec187fee
lpc43xx basic IPC for multicore M4 & M0 (with basic examples for hackrf jellybean).
12 years ago
TitanMKD
439957155b
Added SGPIO structure for faster/better code generation (especially when optimized with -O2/-O3).
This structure is compliant with LPC43xx User Manual UM10503 Rev.1.4 - 3 September 2012.
12 years ago
Jared Boone
f4e45e74bc
Add a duty cycle count argument to i2c0_init() to adjust for changes in APB1 clock.
12 years ago
Jared Boone
18bcbc3d28
Consolidate ssp_read and ssp_write into a single function, ssp_transfer. SSP bus transfers are bi-directional -- when bytes are written, they are also read.
12 years ago
Jared Boone
df922b9021
Corrected GPDMA_INTSTAT #define name typo.
12 years ago
Jared Boone
b44631f3b1
Removed #defines for GPDMA channel base addresses, changed "API" on other #defines to accept an ordinal instead.
12 years ago
Jared Boone
78884cef16
Changed GPDMA_CHANNELx #defines to use correct ("GPDMA_BASE") value as peripheral base address.
12 years ago
Jared Boone
0dc4443e26
Renamed DMA_BASE to GPDMA_BASE to match peripheral name (and #defines in gpdma.h).
12 years ago
Jared Boone
518b97efb6
Added generated headers and hand-crafted #defines for register fields common across many register sets.
12 years ago
Jared Boone
8abefef07d
Rename indexed #define macros for channel-specific GPDMA registers, to match documentation and avoid conflict with the GPDMA_CONFIG register name.
12 years ago
Jared Boone
b1e5c77e1d
New SGPIO field #defines, generated from sgpio.csv.
12 years ago
Jared Boone
733c117c53
Added generalized #defines for USB0 ENDPTCTRL register fields.
12 years ago
Michael Ossmann
4112a3c723
finished GPIO registers
12 years ago
Jared Boone
0323d020d0
USB controller in-memory structure #defines/typedefs for dTD and dQH.
12 years ago
Jared Boone
96ea1a35a3
#defines for making USB structure definitions a bit simpler.
12 years ago
Michael Ossmann
029bf6cbcc
typo fix in eventrouter.h
12 years ago
Jared Boone
b5ba6451af
Fixed typo from user manual.
12 years ago
Jared Boone
28df3a2e12
Tweaked #defines of USB0_ENDPTCTRLx to use an indexed #define, which will be handy in other places...
12 years ago
Jared Boone
24d8d81b43
Add generated bit/shift/mask #defines for CGU, CREG, RGU, USB (USB0 only) peripherals.
Added script used to generate #defines above.
Fixed one small change in the #define naming scheme in i2c0_init().
12 years ago
Michael Ossmann
a0624ecd21
creg.h updates from newer data sheet
12 years ago
TitanMKD
f8542c09a6
UART driver and Example code for JellyBean.
13 years ago
Piotr Esden-Tempski
2f425af647
[Style] A small coding style fixing session.
12 years ago
Piotr Esden-Tempski
beeb9c3f65
[Style] Do not declare new types if not really necessary.
12 years ago
Piotr Esden-Tempski
647b878031
[Style] Coding style fixes.
* No trailing white spaces
* No sapces before tabs
* "int *var" and not "int * var"
12 years ago
BuFran
035c67ced6
Add preliminary support for Cryptographic coprocessor on stm32 F2 and F4
12 years ago
BuFran
3bc5a249a1
Added support for BitBand I/O
12 years ago
Piotr Esden-Tempski
fb5c86db07
Spellchecking fixes.
12 years ago
Piotr Esden-Tempski
169dbd6c08
Dropped raw option on github file archive links.
12 years ago
Piotr Esden-Tempski
e4a86e269e
Replaced goo.gl links with links to our new file archive at github.
https://github.com/libopencm3/libopencm3-archive
12 years ago
Piotr Esden-Tempski
cabbd21329
Reverted the __packed and __aligned change.
We should not add compiler extensions, it is not our job. We are not a
selfcontained project as kernel is so we should not introduce things
like this.
If we need to add some abstraction for this in the future to support
compilers doing these things differently then we will do that the same
way we dealt with the depricated attribute.
12 years ago
Piotr Esden-Tempski
8da7fbd71e
Changed to use accessors instead of casting to volatile pointers.
In places where we were defining memory mapped peripheral buffers we
were using directly a cast to "volatile int_type *". For consistency we
should use dereferenced accessor like: &MMIO32(address)
12 years ago
Piotr Esden-Tempski
39fa9e4c58
Stile fixes run, 80 char boundry.
12 years ago
Piotr Esden-Tempski
34de1e776e
Changed to use stdint types.
12 years ago
Piotr Esden-Tempski
7df63fcae0
First coarse run to fix coding style in locm3.
Added --terse and --mailback options to the make stylecheck target. It
also does continue even if it enounters a possible error.
We decided on two exceptions from the linux kernel coding standard:
- Empty wait while loops may end with ; on the same line.
- All blocks after while, if, for have to be in brackets even if they
only contain one statement. Otherwise it is easy to introduce an
error.
Checkpatch needs to be adapted to reflect those changes.
12 years ago
Ben Gamari
80824ea22c
stm32f1/adc: Kill redundant ADC_SMPR macros
12 years ago
Ben Gamari
e8182a39ab
stm32f4/adc: Kill redundant ADC_SMPR macros
12 years ago
Ben Gamari
e5a3a582fd
stm32/f4/adc: Fix SMPR_SMP values
These were brought over (incorrectly) from the F1.
12 years ago
Piotr Esden-Tempski
99a909dba0
Fixed "function declaration isn't a prototype" warning introduced by the last patch.
12 years ago
Mikhail Avkhimenia
15e35d5bc1
[stm32] Added basic support for hash processor
Added hash processor register definitions and main functions. Hash
processor is supported in stm32f21, stm32f41 and stm32f43 and can be
used to calculate Md5 and Sha1.
12 years ago
Ken Sarkies
f5c9bdfe61
Changes to doxygen markup to solve a few problems that upset
doxygen, and to correct minor errors.
12 years ago
Paul Fleischer
b876b72b39
lm4f: Add control over UART FIFOs
12 years ago
Gareth McMullin
662a2cb8fa
sam: Add convenience function for clock setup using internal 4MHz.
12 years ago
Gareth McMullin
ce3e3dc39b
Split sam3x/sam3n support.
12 years ago